Re: NSViewController
Re: NSViewController
- Subject: Re: NSViewController
- From: BlueBoy <email@hidden>
- Date: Sat, 06 Oct 2012 09:14:34 +0100
Shouldn't that be:
m_SNPreferencesViewController = [[SNPreferencesViewController alloc] initWithNibName:@"SNPreferencesViewController" bundle:nil];
Why the cast?
Surely it's NSViewController's initWithNibName:bundle: that's being called in your code.
On 06 Oct 2012, at 04:38, koko wrote:
> Ok, I have done this:
>
> m_SNPreferencesViewController = (SNPreferencesViewController*)[[NSViewController alloc] initWithNibName:@"SNPreferencesViewController.xib" bundle:nil];
>
> and this
> m_SNPreferencesViewController = (SNPreferencesViewController*)[[NSViewController alloc] initWithNibName:@"SNPreferencesViewController" bundle:nil];
>
> and stepping over I get a value in m_SNPreferencesViewController but its initWithNibName:bundle: is not called.
>
> How can this be?
>
> -koko
>
>
> _______________________________________________
>
> 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
_______________________________________________
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