• 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: Opening only one document at a time
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Opening only one document at a time


  • Subject: Re: Opening only one document at a time
  • From: tekuriscocoalist <email@hidden>
  • Date: Thu, 23 Mar 2006 19:16:58 +0000

Hi,

You don't say why you want to do this and you should probably consider it carefully, if you decide to continue you should look at NSMenuValidation to enable/disable the Open and New menu items if you already have a document open and look at the various NSApplication delegate methods that relate to opening documents.

Wain


On 23 Mar 2006, at 04:36, Michael Swan wrote:

Hello all,
I am trying to find a way to make it so that my app only has one document open at a time. I tried searching the documentation and found nothing (I thought there was a method like appShouldOpenMultipleDocs or something). I also tried searching the list archives and only got error messages that the search header was too big. I would welcome any suggestions.


Thanks
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >Opening only one document at a time (From: Michael Swan <email@hidden>)

  • Prev by Date: Changing the sender of an <NSTextAttachmentCell>
  • Next by Date: Re: Changing the sender of an <NSTextAttachmentCell>
  • Previous by thread: Opening only one document at a time
  • Next by thread: value transformer for structs?
  • Index(es):
    • Date
    • Thread