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

Re: -[NSWindowController window] fails


  • Subject: Re: -[NSWindowController window] fails
  • From: j o a r <email@hidden>
  • Date: Fri, 28 Nov 2008 10:46:42 -0800


On Nov 28, 2008, at 9:12 PM, Alexander Shmelev wrote:

I cut off code after [self window], originally it looks like following:


I suspected that you might have. In the future, please indicate this more clearly.


I tried to call [NSWindowController window] outside init, but it fails.


Where and when did you make that call, and what do you mean with "fails"? Returns "nil" instead of the window?


Then I tried to replace NSWindowController and initWithWindowNibName with NSObject and [NSBundle loadNibNamed:owner:] but it fails too.

I tried to use NIB 2.x instead XIB 3.x, but it still fails.


Again, what does "fail" mean here? Have you made sure to connect the window outlet from the window controller to the window in the nib file? That's a *very* common source of problems.

In my experience window controllers are very robust and predictable. I'm surprised to hear that you have problems. I suspect that we will figure out what's wrong, and that you will be able to fix it easily and then move on.


j o a r


_______________________________________________

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: -[NSWindowController window] fails
      • From: Alexander Shmelev <email@hidden>
References: 
 >-[NSWindowController window] fails (From: Alexander Shmelev <email@hidden>)
 >Re: -[NSWindowController window] fails (From: j o a r <email@hidden>)
 >Re: -[NSWindowController window] fails (From: Alexander Shmelev <email@hidden>)

  • Prev by Date: Re: Using a string as filepath
  • Next by Date: Re: -[NSWindowController window] fails
  • Previous by thread: Re: -[NSWindowController window] fails
  • Next by thread: Re: -[NSWindowController window] fails
  • Index(es):
    • Date
    • Thread