Re: hosed IBOutlets
Re: hosed IBOutlets
- Subject: Re: hosed IBOutlets
- From: "John C. Randolph" <email@hidden>
- Date: Sun, 20 Feb 2005 02:36:49 -0800
On Feb 20, 2005, at 12:00 AM, Paul Forgey wrote:
Somebody else kindly pointed that out off the list.
Whoops! I'd intended to reply on the list, but I hit the "reply"
instead of the "reply-all" button.
Apparently the nib unarchiver tries to use accessor functions, and so
my IBOutlet progress and method setProgress: were clashing. That
also explains the weird messages regarding the NSProgressIndicator
while it was loading. My setProgress: method took an NSString *
argument!
Anyhow, what I'd told Paul was:
Something else that might have tripped you up here, is that when
unarchiving, the AppKit will use accessor methods if possible. So if
you have an outlet "foo", and there's a method named "-setFoo:", the
unarchiver will send a -setFoo: message rather than writing to the
"foo" ivar directly. This is a legacy from the days when the accessor
methods were manadatory, and they were the only way that unarchiving
could make connections called for in the .nib file.
-jcr
John C. Randolph <email@hidden> (408) 974-8819
Sr. Cocoa Software Engineer,
Apple Worldwide Developer Relations
http://developer.apple.com/cocoa/index.html
_______________________________________________
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