• 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
how do I display a document at app start up?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

how do I display a document at app start up?


  • Subject: how do I display a document at app start up?
  • From: Donald Hall <email@hidden>
  • Date: Tue, 17 Sep 2002 00:50:08 -0600

I want my application to load a document and display it in its window
when the program launches. I tried using NSApplication
-applicationDidFinishLaunching. My file is read in correctly, but the
document nib is never loaded, so I don't see my window. If I use the
Open command in the File menu, everything works fine. How do I do this?

The documentation for NSApplication -finishLaunching says:
"Activates the receiver, opens any files specified by the NSOpen user
default,...". However, I can't seem to find any info about this NSOpen
user default. What format does it take, and should I create and set it
like any other default? (Assuming of course this is what I should be
using.)

Thanks for any help. I'm sure this must be a common thing to do.

Don
----------------------------------------------
Donald S. Hall, Ph.D.
Apps & More Software Design, Inc.
http://www.theboss.net/appsmore
_______________________________________________
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.

  • Prev by Date: NSButton Colour?
  • Next by Date: Re: SIGSEGV Error
  • Previous by thread: Re: NSButton Colour?
  • Next by thread: DB-Engine
  • Index(es):
    • Date
    • Thread