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

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

  • Follow-Ups:
    • Re: NSViewController
      • From: koko <email@hidden>
References: 
 >NSViewController (From: koko <email@hidden>)

  • Prev by Date: Re: Embedding resources in Static Cocoa Library
  • Next by Date: Re: dropping alias file on NSPathControl with App Sandbox
  • Previous by thread: Re: NSViewController
  • Next by thread: Re: NSViewController
  • Index(es):
    • Date
    • Thread