Single document behavior
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.