• 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: Creating NSViewController with -init.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Creating NSViewController with -init.


  • Subject: Re: Creating NSViewController with -init.
  • From: Seth Willits <email@hidden>
  • Date: Tue, 25 Mar 2014 08:46:17 -0700

On Mar 25, 2014, at 12:50 AM, Uli Kusterer <email@hidden> wrote:

> On 25 Mar 2014, at 02:36, Seth Willits <email@hidden> wrote:
>> 2. Either call initWithNibName:bundle: or override nibName. Don't rely on NSVC being smart and appropriately grabbing a file with the desired name. Offhand, I believe this is documented to be supported on iOS, but no such documentation or feature exists on OS X. I've (accidentally) experienced it picking a nib automatically on OS X, but it was always picking the wrong nib.
>
> IIRC OS X just picks the last nib loaded before the view controller was created and loads it again. Makes for hilarious behaviour in cases where it doesn’t crash right away.

I believe that's what I always saw too. Someone on the AppKit team having a good laugh, I suppose. ;-)


--
Seth Willits

_______________________________________________

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


References: 
 >Re: Creating NSViewController with -init. (From: Kyle Sluder <email@hidden>)
 >Re: Creating NSViewController with -init. (From: Seth Willits <email@hidden>)
 >Re: Creating NSViewController with -init. (From: Uli Kusterer <email@hidden>)

  • Prev by Date: Re: Creating NSViewController with -init.
  • Next by Date: GIF frame duration
  • Previous by thread: Re: Creating NSViewController with -init.
  • Next by thread: Re: Creating NSViewController with -init.
  • Index(es):
    • Date
    • Thread