• 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: Disable document save alert when closing inspector panel
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Disable document save alert when closing inspector panel


  • Subject: Re: Disable document save alert when closing inspector panel
  • From: Quincey Morris <email@hidden>
  • Date: Fri, 12 Sep 2014 21:40:48 +0000

On Sep 12, 2014, at 13:57 , Luc Van Bogaert <email@hidden> wrote:

> When I try to close the inspector panel in my document base application, I'm getting the default alert message to save the document if it has unsaved edits. Is there a way to disable this behaviour when closing an inspector panel?

Set ‘shouldCloseDocument’ to NO on the panel.

However, the question implies that you’ve set the panel’s window controller’s “document” property to your document. I’d be concerned that this might lead to other hinky behavior, since AFAIK the property is intended for window controllers that really belong to the document. Is the panel also in the document’s “windowControllers” array?

OTOH, I dunno really. Maybe setting the panel’s controller’s “document” property is a *good* thing, and I’m just too risk-averse to have ever experimented with it.


_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden


  • Follow-Ups:
    • Re: Disable document save alert when closing inspector panel
      • From: Luc Van Bogaert <email@hidden>
    • Re: Disable document save alert when closing inspector panel
      • From: Quincey Morris <email@hidden>
  • Prev by Date: Re: Sudden termination and WebKit
  • Next by Date: Re: Disable document save alert when closing inspector panel
  • Previous by thread: Re: Apple event for "open contents": re-entry and multiple qualifying services
  • Next by thread: Re: Disable document save alert when closing inspector panel
  • Index(es):
    • Date
    • Thread