FROM : Cathy Shive
DATE : Mon Mar 24 17:06:29 2008
Hi,
Have you tried using the "FirstResponder" for this?
Add an action to the preferences window's nib's "FirstResponder"
called "setWindowBackgroundColor". Then connect the color well to
the first responder and connect to that action.
If the window controller of the other window implements that action,
it should hook up correctly through the responder chain.
Best,
Cathy
On Mar 24, 2008, at 5:02 PM, Lincoln Green wrote:
> Alright, I have been searching archives, following tutorials, and
> looking at source code for several hours, and I cannot figure out
> the answer to my problem.
>
> Is there a way to programmatically connect to a NIB file and read
> it's outlets without changing my File's Owner? I have a color well
> in one NIB (My Prefs NIB) and a window in another. I want the color
> well to change the window's background. I have an action called
> setColor:, but I cannot figure out how to access the window outlet
> from the NIB containing the window. Please help!
>
> LG
> _______________________________________________
>
> Cocoa-dev mailing list (<email_removed>)
>
> Please do not post admin requests or moderator comments to the list.
> Contact the moderators at cocoa-dev-admins(at)lists.apple.com
>
> Help/Unsubscribe/Update your Subscription:
> http://lists.apple.com/mailman/options/cocoa-dev/<email_removed>
>
> This email sent to <email_removed>
DATE : Mon Mar 24 17:06:29 2008
Hi,
Have you tried using the "FirstResponder" for this?
Add an action to the preferences window's nib's "FirstResponder"
called "setWindowBackgroundColor". Then connect the color well to
the first responder and connect to that action.
If the window controller of the other window implements that action,
it should hook up correctly through the responder chain.
Best,
Cathy
On Mar 24, 2008, at 5:02 PM, Lincoln Green wrote:
> Alright, I have been searching archives, following tutorials, and
> looking at source code for several hours, and I cannot figure out
> the answer to my problem.
>
> Is there a way to programmatically connect to a NIB file and read
> it's outlets without changing my File's Owner? I have a color well
> in one NIB (My Prefs NIB) and a window in another. I want the color
> well to change the window's background. I have an action called
> setColor:, but I cannot figure out how to access the window outlet
> from the NIB containing the window. Please help!
>
> LG
> _______________________________________________
>
> Cocoa-dev mailing list (<email_removed>)
>
> Please do not post admin requests or moderator comments to the list.
> Contact the moderators at cocoa-dev-admins(at)lists.apple.com
>
> Help/Unsubscribe/Update your Subscription:
> http://lists.apple.com/mailman/options/cocoa-dev/<email_removed>
>
> This email sent to <email_removed>
| Related mails | Author | Date |
|---|---|---|
| Lincoln Green | Mar 24, 17:02 | |
| Cathy Shive | Mar 24, 17:06 | |
| Sherm Pendley | Mar 24, 17:11 | |
| Jonathan Hess | Mar 24, 20:37 | |
| Bertil Holmberg | Mar 24, 22:39 | |
| Gerd Knops | Mar 24, 23:27 | |
| Steve Weller | Mar 25, 01:58 | |
| Lincoln Green | Mar 28, 19:27 | |
| Steve Weller | Mar 29, 16:31 |






Cocoa mail archive

