Re: Xcode / Interface Builder creates nil binding of an NSTextField instance ...
Re: Xcode / Interface Builder creates nil binding of an NSTextField instance ...
- Subject: Re: Xcode / Interface Builder creates nil binding of an NSTextField instance ...
- From: Jens Alfke <email@hidden>
- Date: Sat, 19 Jun 2010 17:20:12 -0700
On Jun 19, 2010, at 4:15 PM, Jay Reynolds Freeman wrote:
> In IB, I drag an instance of NSTextField from the library onto my
> window, and use control-drag to hook it up to as instance of
> NSTextField in a controller, the instance being declared in that
> controller's header file.
Which nib file is it? What is the object you’re wiring the textfield to?
(It sounds like it should be the MainMenu.xib, and you should be wiring it to the object identified as the NSApplication’s delegate, i.e. the object that’s wired up as the ‘delegate’ outlet of the NSApplication in the xib.)
> IBOutlet NSTextField *ExpectStuff;
Not directly relevant, but as a matter of Obj-C coding style, instance variables should not be capitalized.
—Jens _______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden