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: Jay Reynolds Freeman <email@hidden>
- Date: Sat, 19 Jun 2010 19:21:12 -0700
On Jun 19, 2010, at 5:20 PM, Jens Alfke wrote:
>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.)
That is indeed what I am doing.
>> IBOutlet NSTextField *ExpectStuff;
>
> Not directly relevant, but as a matter of Obj-C coding style,
> instance variables should not be capitalized.
That's why they call it "style" ... :-)
—Jens
-- Jay Reynolds Freeman
---------------------
email@hidden
http://web.mac.com/jay_reynolds_freeman (personal web site)
_______________________________________________
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