• 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: Displaying a window?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

References: 
 >Displaying a window? (From: Dylan Barrie <email@hidden>)

  • Prev by Date: Re: Flame retardant
  • Next by Date: Re: Dynamic Languages [was: Re: why Obj-C]
  • Previous by thread: Re: Displaying a window?
  • Next by thread: Re: Dynamic Languages [was: Re: why Obj-C]
  • Index(es):
    • Date
    • Thread