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: Kyle Sluder <email@hidden>
- Date: Sat, 16 Feb 2013 18:24:50 -0800
On Feb 16, 2013, at 5:31 PM, Jerry Krinock <email@hidden> wrote:
> In an app running in Mac OS X 10.8, I have set a drawer's delegate to be its window controller, in the window controller's -awakeFromNib…
>
> - (void)awakeFromNib {
> …
> [drawer setDelegate:self] ;
> …
> }
Any reason you didn't do this in the nib itself? 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.
--Kyle Sluder
_______________________________________________
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