• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: NSDrawer not always sending -drawerDidOpen: to delegate
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: NSDrawer not always sending -drawerDidOpen: to delegate
      • From: Jerry Krinock <email@hidden>
    • Re: NSDrawer not always sending -drawerDidOpen: to delegate
      • From: Kyle Sluder <email@hidden>
References: 
 >NSDrawer not always sending -drawerDidOpen: to delegate (From: Jerry Krinock <email@hidden>)
 >Re: NSDrawer not always sending -drawerDidOpen: to delegate (From: Kyle Sluder <email@hidden>)

  • Prev by Date: Re: NSDrawer not always sending -drawerDidOpen: to delegate
  • Next by Date: Re: NSDrawer not always sending -drawerDidOpen: to delegate
  • Previous by thread: Re: NSDrawer not always sending -drawerDidOpen: to delegate
  • Next by thread: Re: NSDrawer not always sending -drawerDidOpen: to delegate
  • Index(es):
    • Date
    • Thread