Re: Creating NSViewController with -init.
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