• 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: initForReadingWithData, nil and outlets don't get set
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: initForReadingWithData, nil and outlets don't get set


  • Subject: Re: initForReadingWithData, nil and outlets don't get set
  • From: Matt Neuburg <email@hidden>
  • Date: Tue, 19 Apr 2005 14:25:28 -0700

On Tue, 19 Apr 2005 11:14:23 -0400, Michael Hanna <email@hidden> 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@hidden, <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>



 _______________________________________________
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: NSBrowser action
  • Next by Date: Re: NSBrowser action
  • Previous by thread: initForReadingWithData, nil and outlets don't get set
  • Next by thread: [ANN]Defaulter 1.0
  • Index(es):
    • Date
    • Thread