Re: NSDrawer not always sending -drawerDidOpen: to delegate
Re: NSDrawer not always sending -drawerDidOpen: to delegate
- Subject: Re: NSDrawer not always sending -drawerDidOpen: to delegate
- From: Jerry Krinock <email@hidden>
- Date: Sat, 16 Feb 2013 18:50:45 -0800
On 2013 Feb 16, at 18:24, Kyle Sluder <email@hidden> wrote:
> ;Any reason you didn't do this in the nib itself?
Probably because I generally find it more enjoyable to write code rather than click and poke my way through Interface Builder.
> I'm wondering if you're hitting that caveat from the resource Programming Guide where AppKit cannot guarantee that -awakeFromNib is sent to File's Owner last, and there's some ordering issue with respect to -setDelegate: and the drawer receiving -awakeFromNib for which IB has a hack to work around.
OK, upon re-reading the warning in -awakeFromNib documentation I see what you mean, if the drawer is considered to be "in the hierarchy".
So I changed my project to wire up the delegate in the nib instead of -awakeFromNib.
Quick Result:
First launch: It worked.
Second launched: It failed.
I'm going to do some more debugging while it's in this state.
Thank you, Kyle.
Jerry
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden