Open dialog at launch time

  • I'd like my app to show the Open dialog at launch time instead of
    opening new document window.
    Would you tell me how?

    Thanks,
    norio ota
  • 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
previous month september 2007 next month
MTWTFSS
          1 2
3 4 5 6 7 8 9
10 11 12 13 14 15 16
17 18 19 20 21 22 23
24 25 26 27 28 29 30
Go to today