• 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
Single document behavior
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Single document behavior


  • Subject: Single document behavior
  • From: Brad Oliver <email@hidden>
  • Date: Tue, 26 Nov 2002 16:09:46 -0600

I've got an NSDocument based app, and I want to slightly alter the behavior
such that a maximum of one document will be present at any given time.

That is, if a document exists and the user chooses "New" from the file menu,
or the app gets a reopen AppleEvent, I want to prompt the user to save the
current document if it's dirty, cancel the open, etc before continuing
through with the new document process.

What is the cleanest way to do this with AppKit?

--
Brad Oliver
email@hidden
_______________________________________________
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: Single document behavior
      • From: Jeff Disher <email@hidden>
  • Prev by Date: Re: Strip Chart Tool?
  • Next by Date: Re: Newbie Question - selecting textFields
  • Previous by thread: Re: Vermont Recipes vs Building Cocoa Applications
  • Next by thread: Re: Single document behavior
  • Index(es):
    • Date
    • Thread