Re: some nib connections not surviving nib load
Re: some nib connections not surviving nib load
- Subject: Re: some nib connections not surviving nib load
- From: Vince DeMarco <email@hidden>
- Date: Mon, 11 Aug 2003 20:45:31 -0700
Just to clear things, up the IB Runtime in the AppKit doesn't actually
use keyvalue coding (this could be considered a bug).
But if the outlet is called _foo
it will look for a method called
set_foo:
before trying to just set the instance variable directly.
vince
On Thursday, August 7, 2003, at 11:29 PM, Aaron Tuller wrote:
sorry, I meant it was a bug in your code, not Apple's. it's caught me
many times, like why is this outlet nil?!?!?
I usually append the type, so setYourOutletString: or something like
that.
-aaron
At 1:00 AM -0400 8/8/03, Brent Gulanowski wrote:
On Friday, August 8, 2003, at 12:28 AM, Aaron Tuller wrote:
do you happen to have methods called setYourOutlet: (for an outlet
called yourOutlet)
if so, those are getting called to set the outlets and it's not
actually setting them. It's a nasty bug and really frustrating.
Oh, yeah, I didn't even think of that! NSKeyValueCoding at work! Of
course it's my fault, and unless you are referring to something else,
it is not a bug -- the setXXX methods never set the outlets, that's
not what they are for -- they set stuff in NSUserDefaults. Doh! What
da heck should I call those methods, I wonder?
Thanks!
No one really knows enough to be a pessimist. -- William Blake
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.