Skip navigation.
 
mlRe: initForReadingWithData, nil and outlets don't get set
FROM : Matt Neuburg
DATE : Tue Apr 19 23:25:28 2005

On Tue, 19 Apr 2005 11:14:23 -0400, Michael Hanna <<email_removed>> said:
>hello, when my action method gets called the first time, I get
>
>*** -initForReadingWithData: nil argument
>
>- (IBAction)openPreferencesMenuAction:(id)sender
>{
> if(!preferencesController)
> {
>  preferencesController = [[TaoPreferencesController alloc] init];

> }
> [preferencesController showWindow:self];
>
>}
>
>with NSLog statements, it turns out I get the exception at:
>
>[preferencesController showWindow:self];
>
>a subsequent attempt and the error does not appear and the action
>'takes'(the preferences window opens).
>
>Also, in my NSWindowController subclass, TaoPreferencesController


RTFM on [NSWindowController window]. Basically, the window does not load,
and therefore cannot be shown, until you explicitly cause it to load by
mentioning the window. m.

--
matt neuburg, phd = <email_removed>, <http://www.tidbits.com/matt/>
A fool + a tool + an autorelease pool = cool!
AppleScript: the Definitive Guide
<http://www.amazon.com/exec/obidos/ASIN/0596005571/somethingsbymatt>

Related mailsAuthorDate
mlinitForReadingWithData, nil and outlets don't get set Michael Hanna Apr 19, 17:14
mlRe: initForReadingWithData, nil and outlets don't get set Matt Neuburg Apr 19, 23:25