• 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: Open dialog at launch time
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Open dialog at launch time


  • Subject: Re: Open dialog at launch time
  • From: Uli Kusterer <email@hidden>
  • Date: Thu, 13 Sep 2007 10:37:30 +0200

On 13.09.2007, at 04:40, 太田 憲男 wrote:
I'd like my app to show the Open dialog at launch time instead of opening new document window.
Would you tell me how?

Register for an NSApplicationDidFinishLaunching notification and send the same message as the "open" menu command is connected to to the first responder at that time. You may also have to implement that shouldOpenUntitledWindow: method (not 100% sure on the name) in your delegate to suppress the creation of a new document at that time.


Cheers,
-- M. Uli Kusterer
http://www.zathras.de



_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >Open dialog at launch time (From: 太田 憲男 <email@hidden>)

  • Prev by Date: Cocoa, iTunes, AppleScript - performance issue
  • Next by Date: Re: Cocoa, iTunes, AppleScript - performance issue
  • Previous by thread: Open dialog at launch time
  • Next by thread: Supressing NSAlertPanel with time litmit
  • Index(es):
    • Date
    • Thread