Re: Outlets not allowing direct access...
Re: Outlets not allowing direct access...
- Subject: Re: Outlets not allowing direct access...
- From: Matt Neuburg <email@hidden>
- Date: Sat, 05 Mar 2005 09:36:14 -0800
On Sat, 5 Mar 2005 12:39:45 +1100, Aaron Wallis <email@hidden>
said:
>Im having trouble getting a controller to directly communicate with a
>NSView...
>Basially, I am creating a toolbar controller that will create a toolbar
>on launch of the application.
>the toolbar class has three outlets:
> myWindow - which is bound to the apps main window
> mySearchView - which is bound to a NSView with a searchfield inside
> myActionView - another NSView with some drop downs
>
>all seems to be running good and well untill I attempt to reference the
>views and window from within Xcode.
>all the outlets are present and such, but if I were to add this line of
>code:
> NSLog ( @"Window - %s\n", myWindow );
>it returns null
Nil outlets are frequently caused by having e.g. an outlet myWindow and a
method setMyWindow:. If you have such a method, rename it. (If not, then
this answer won't help you :)
m.
--
matt neuburg, phd = email@hidden, <http://www.tidbits.com/matt/>
A fool + a tool + an autorelease pool = cool!
AppleScript: the Definitive Guide
<http://www.amazon.com/exec/obidos/ASIN/0596005571/somethingsbymatt>
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden