• 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: Override runModalSavePanelForSaveOperation
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Override runModalSavePanelForSaveOperation


  • Subject: Re: Override runModalSavePanelForSaveOperation
  • From: Quincey Morris <email@hidden>
  • Date: Wed, 16 Jan 2013 14:12:47 -0800

On Jan 16, 2013, at 14:05 , Quincey Morris <email@hidden> wrote:

> On Jan 16, 2013, at 13:36 , Eric Gorr <email@hidden> wrote:
>
>> (I am also wondering how to properly handle the process to "make sure that any editor registered using the Cocoa Bindings NSEditorRegistration informal protocol has committed its changes.")
>
> NSDocument implements this protocol already (though it's not documented as doing so), so you simply need to send one of the 'commit…' methods to self, I suppose. However, without an API contract beyond what you quoted, it's not absolutely clear it's that simple.

Ugh, serves me right from doing this from memory. The 'commit…' methods are part of NSEditor, not NSEditorRegistration. If NSDocument actually implements NSEditor (maybe it does!), then it's easy. If it doesn't, you could be in for a bumpy ride.

_______________________________________________

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


References: 
 >Override runModalSavePanelForSaveOperation (From: Eric Gorr <email@hidden>)
 >Re: Override runModalSavePanelForSaveOperation (From: Quincey Morris <email@hidden>)

  • Prev by Date: Re: Override runModalSavePanelForSaveOperation
  • Next by Date: Re: Override runModalSavePanelForSaveOperation
  • Previous by thread: Re: Override runModalSavePanelForSaveOperation
  • Next by thread: Re: Override runModalSavePanelForSaveOperation
  • Index(es):
    • Date
    • Thread