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

Re: NSWindowController confusion redux


  • Subject: Re: NSWindowController confusion redux
  • From: Sherm Pendley <email@hidden>
  • Date: Tue, 23 May 2006 11:46:07 -0400

On May 23, 2006, at 6:53 AM, Mike Abdullah wrote:

You don't want to use the owner expression. The owner of the NIB file should be the window controller you are creating, not the class you are creating the window controller with.

That is incorrect. The owner of a nib may be an instance of any class, so long as it defines the expected outlets & actions. Quite often it's an NSWindowController (or subclass thereof), but that's not a requirement.


I think the real issue here is the error message about failing to load the nib file. Are you sure that:

* The "File's Owner" of the nib is NSWindowController

It doesn't have to be.

* The "File's Owner" has it's window outlet connected to the window

That's only necessary if the owner is an instance of NSWindowController.

* The name of your nib file in the code is correct

... and the nib has been copied to the appropriate subfolder in your .app, and that its not been corrupted in some way.


You've missed the mark on some of the details, but I think you have the right idea. I think the file's owner is a red herring, and a clue to the problem can be found in that "failed to load window nib file" message. Figuring out why the nib won't load is key to solving this.

sherm--

Cocoa programming in Perl: http://camelbones.sourceforge.net
Hire me! My resume: http://www.dot-app.org

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: NSWindowController confusion redux
      • From: Ken Tozier <email@hidden>
References: 
 >NSWindowController confusion (From: Ken Tozier <email@hidden>)
 >Re: NSWindowController confusion (From: Sherm Pendley <email@hidden>)
 >Re: NSWindowController confusion (From: Ken Tozier <email@hidden>)
 >Re: NSWindowController confusion redux (From: Ken Tozier <email@hidden>)
 >Re: NSWindowController confusion redux (From: mmalcolm crawford <email@hidden>)
 >Re: NSWindowController confusion redux (From: Ken Tozier <email@hidden>)
 >Re: NSWindowController confusion redux (From: Mike Abdullah <email@hidden>)

  • Prev by Date: Re: NSWindowController confusion redux
  • Next by Date: Re: Menu and views
  • Previous by thread: Re: NSWindowController confusion redux
  • Next by thread: Re: NSWindowController confusion redux
  • Index(es):
    • Date
    • Thread