• 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: NSWindowController window returns nil
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSWindowController window returns nil


  • Subject: Re: NSWindowController window returns nil
  • From: email@hidden
  • Date: Wed, 7 Jul 2010 17:28:18 -0600

Yeah, I remembered all those things after I posted ... sorry for wasting bandwidth!

-koko

On Jul 7, 2010, at 5:23 PM, Kyle Sluder wrote:

On Wed, Jul 7, 2010 at 3:54 PM, <email@hidden> wrote:
- (id) initWithWindowNibName:(NSString*)windowNibName
andBFileName:(BFilename*)bfilename
{
       self = [super initWithWindowNibName:windowNibName];
       if (self != nil)
       {
               m_panel = [self window];
               Design *cv = [m_panel contentView];
               cv->m_BFilename = bfilename;
               [m_panel setDelegate:self];
               [m_panel makeKeyAndOrderFront:self];
       }
       return self;
}



Im the above, the call [self window] returns nil. This does not seem
correct. Can some one help me?

Well, for starters, your window controller initializer probably shouldn't put up the window.

Did you remember to hook up the window in the nib to File's Owner's
window outlet? Did you remember to change the class identity of File's
Owner to your NSWindowController subclass?

--Kyle Sluder


_______________________________________________

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: 
 >NSWindowController window returns nil (From: email@hidden)
 >Re: NSWindowController window returns nil (From: Kyle Sluder <email@hidden>)

  • Prev by Date: Re: NSWindowController window returns nil
  • Next by Date: Re: Pass-by value… warning
  • Previous by thread: Re: NSWindowController window returns nil
  • Next by thread: Re: NSWindowController window returns nil
  • Index(es):
    • Date
    • Thread