• 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: loadNibNamed instantiating too many of my objects
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: loadNibNamed instantiating too many of my objects


  • Subject: Re: loadNibNamed instantiating too many of my objects
  • From: Dave Camp <email@hidden>
  • Date: Mon, 12 Aug 2002 14:42:58 -0700

Never mind... stupid user mistake. Someone else on the project hooked up the File's Owner thingy incorrectly to the wrong object. Maybe if I knew more about Cocoa I'd have noticed that sooner...

Dave

On Monday, August 12, 2002, at 02:16 PM, Dave Camp wrote:

I've got an app with two nib files, a main window and a preferences
window. The main window nib has an instance of a mainWindowController
class, and the preferences window nib has an instance of a
preferencesWindowController class.

When I create the preferences window from the mainWindowController
using:

[NSBundle loadNibNamed:@"Preferences.nib" owner:self];

a second copy of my mainWindowController is instantiated (in addition
to the preferencesWindowController). The two classes are not related at
all, and do not show up in the other's nib files. The classes don't
reference each other at all.

Any thoughts on why this is happening?

Since I'm new to Cocoa, this is probably something I'm doing wrong, any
tips would be appreciated.

Thanks,
Dave
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

References: 
 >loadNibNamed instantiating too many of my objects (From: Dave Camp <email@hidden>)

  • Prev by Date: Re: AuthorizationExecuteWithoutPrivileges?
  • Next by Date: NSTask taking too long...
  • Previous by thread: loadNibNamed instantiating too many of my objects
  • Next by thread: NSRulerView Follies Redux
  • Index(es):
    • Date
    • Thread