Override runModalSavePanelForSaveOperation
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