• 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: DocumentController subclass needed?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: DocumentController subclass needed?


  • Subject: Re: DocumentController subclass needed?
  • From: David P Henderson <email@hidden>
  • Date: Wed, 23 May 2001 08:44:59 -0400

On Wednesday, May 23, 2001, at 03:35 , Mark Slater wrote:

Is there an easy way to turn that off in my NSApplication instance, or
is this one of those cases where I'll need to write my own
NSDocumentController subclass? Alternatively, is there a simple way to
get the default action to present an open dialog rather than a new document?

You need to implement -applicationShouldOpenUntitledFile: in your application delegate, see the NSApplication delegate methods. As to presenting an open dialog at start up, you could implement another NSApp delegate method like -applicationDidFinishLaunching: and call your open method from there.

Dave
--
Chaos Assembly Werks
"The proper office of a friend is to side with you when you are in the wrong. Nearly anybody will side with you when you are in the right."
- Mark Twain


References: 
 >DocumentController subclass needed? (From: Mark Slater <email@hidden>)

  • Prev by Date: Security framework leaving zombies
  • Next by Date: Re: Objective C Books?
  • Previous by thread: DocumentController subclass needed?
  • Next by thread: More on the bug with NSRunModalWithWindow
  • Index(es):
    • Date
    • Thread