• 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: Keeping an NSDocument Open
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Keeping an NSDocument Open


  • Subject: Re: Keeping an NSDocument Open
  • From: Craig Altenburg <email@hidden>
  • Date: Wed, 26 Jul 2006 19:57:49 -0400


On 26 Jul 2006, at 4:13 PM, j o a r wrote:


On 26 jul 2006, at 22.07, Craig Altenburg wrote:

I need to keep my NSDocument open even after the last window closes.

The documentation that I can find seems to indicate that this should be possible but I have yet to find an easy way to do it.

How about: "-[NSWindowController setShouldCloseDocument:]

j o a r

You would think but, no. That method controls whether the window controller will always close the document. If set to YES the document is closed when this controller's window is closed regardless of any other open windows. If set to NO the document is only closed if this is the last NSWindowController.


--
Craig
_______________________________________________
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


  • Follow-Ups:
    • Re: Keeping an NSDocument Open [SOLVED]
      • From: Craig Altenburg <email@hidden>
References: 
 >ODBC (From: Brian Weitzner <email@hidden>)
 >Re: ODBC (From: "Scotty's Lists" <email@hidden>)
 >Re: ODBC (From: Brian Weitzner <email@hidden>)
 >Re: ODBC (From: "Scotty's Lists" <email@hidden>)
 >Re: ODBC (From: Brian Weitzner <email@hidden>)
 >Keeping an NSDocument Open (From: Craig Altenburg <email@hidden>)
 >Re: Keeping an NSDocument Open (From: j o a r <email@hidden>)

  • Prev by Date: Re: Converting mod date from FSCatalogInfo to NSDate
  • Next by Date: Re: Converting mod date from FSCatalogInfo to NSDate
  • Previous by thread: Re: Keeping an NSDocument Open
  • Next by thread: Re: Keeping an NSDocument Open [SOLVED]
  • Index(es):
    • Date
    • Thread