Re: Subclass of NSWindowController doesn't initialize correctly from initWithWindowNibName
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