Re: Displaying a window?
Re: Displaying a window?
- Subject: Re: Displaying a window?
- From: Don Murta <email@hidden>
- Date: Wed, 22 May 2002 17:39:04 -0600
Try setting your class that runs the window as the delegate to your main
nib file (its in the file owner), then override
- (void)applicationDidFinishLaunching:(NSNotification *)aNotification
to open your window instead of awakeFromNib. See NSApplication's
"Methods Implemented By the Delegate". I think your on the right track
with the modal window though.
don
On Wednesday, May 22, 2002, at 05:12 PM, Dylan Barrie wrote:
What would be the best way of going about displaying a window when the
application is opened (a window that isn't the main app window)?
What I want to do is have a "Welcome to my app" window be displayed
when my app is first run, and while it is displayed, the user should
not be able to click behind it (modal, I think is the word). I've
figured out how to make the window show up with:
[NSApp runModalForWindow:myWindow];
But since I'm running this from within my awakeFromNib function, the
window is displayed before the menu bar changes to reflect that my app
is now in the foreground, which is not what I want.
_______________________________________________
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.