• 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: Subclass of NSWindowController doesn't initialize correctly from initWithWindowNibName
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Subclass of NSWindowController doesn't initialize correctly from initWithWindowNibName


  • Subject: Re: Subclass of NSWindowController doesn't initialize correctly from initWithWindowNibName
  • From: Matt Neuburg <email@hidden>
  • Date: Fri, 18 Aug 2006 16:46:53 -0700
  • Thread-topic: Subclass of NSWindowController doesn't initialize correctly from initWithWindowNibName

On Fri, 18 Aug 2006 11:13:11 -0700, Alan Condit <email@hidden> said:
>I have subclassed NSWindowController.
>The call to create and initialize my custom controller is this:
> aPriorityController = [[PriorityController alloc]
>initWithWindowNibName:@"Priority" andAPriority:CurPriority];

>awakeFromNib is called twice

Perhaps you are instantiating PriorityController twice - once in the code
above, and once somewhere else (e.g. you might have instantiated in your
main nib). That's assuming that the above code is not itself called twice
(have you checked?).

There were a number of other curious things about your code, by the way.

m.

--
matt neuburg, phd = email@hidden, <http://www.tidbits.com/matt/>
A fool + a tool + an autorelease pool = cool!
AppleScript: the Definitive Guide - Second Edition!
<http://www.amazon.com/gp/product/0596102119>



 _______________________________________________
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

  • Prev by Date: Re: Where to properly call [NSPersistentStoreCoordinator persistentStores] ?
  • Next by Date: Funny Panther issue with [NSArray -componentsJoinedByString]
  • Previous by thread: Re: hex string for long
  • Next by thread: Funny Panther issue with [NSArray -componentsJoinedByString]
  • Index(es):
    • Date
    • Thread