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 (Cocoa-dev@lists.apple.com)

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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to