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 (Cocoa-dev@lists.apple.com) > > 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: > https://lists.apple.com/mailman/options/cocoa-dev/blue.buconero%40virgin.net > > This email sent to blue.bucon...@virgin.net _______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) 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: https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com