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

Displaying a window?


  • Subject: Displaying a window?
  • From: Dylan Barrie <email@hidden>
  • Date: Wed, 22 May 2002 16:12:30 -0700

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.

Anyone have any ideas?

Dylan Barrie
_______________________________________________
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.

  • Follow-Ups:
    • Re: Displaying a window?
      • From: Don Murta <email@hidden>
    • Re: Displaying a window?
      • From: Andy Lee <email@hidden>
  • Prev by Date: Re: Flame retardant
  • Next by Date: Re: Flame retardant
  • Previous by thread: /usr/bin/cal Wrapper
  • Next by thread: Re: Displaying a window?
  • Index(es):
    • Date
    • Thread