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

Override runModalSavePanelForSaveOperation


  • Subject: Override runModalSavePanelForSaveOperation
  • From: Eric Gorr <email@hidden>
  • Date: Wed, 16 Jan 2013 16:36:03 -0500

I need to override runModalSavePanelForSaveOperation in NSDocument to provide some custom behavior.

According to the description in the documentation, one needs to call saveToURL:ofType:forSaveOperation:delegate:didSaveSelector:contextInfo: which I am doing. However, my writeToURL:ofType:forSaveOperation:originalContentsURL:error: method is not called and I was expecting it to be. If I use the default runModalSavePanelForSaveOperation, it will be.

Does someone have a good example of a complete override of runModalSavePanelForSaveOperation?

Any suggestions?

(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.")
_______________________________________________

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: Override runModalSavePanelForSaveOperation
      • From: Quincey Morris <email@hidden>
  • Prev by Date: Re: Provisioning profiles
  • Next by Date: Re: Changing color in NSColorPanel without message
  • Previous by thread: Re: Changing color in NSColorPanel without message
  • Next by thread: Re: Override runModalSavePanelForSaveOperation
  • Index(es):
    • Date
    • Thread