Disable autosave in place for a particular uti / filetype?
Disable autosave in place for a particular uti / filetype?
- Subject: Disable autosave in place for a particular uti / filetype?
- From: Gus Mueller <email@hidden>
- Date: Mon, 12 Sep 2011 10:53:32 -0700
Is there any way to turn off 10.7's autosave in place for a particular uti/file type? Or maybe turn it on for a single file type?
Here's my use case:
I've got an image editor which can edit multiple types of files (png, jpeg, etc). Autosave is great for for its native format (.acorn) which is lossless and can preserve layers. But for something like a jpeg, which is a lossy format, autosave in place is problematic. Open up the image, edit, and it saves. And when you undo to the original state, autosave kicks in- but the saved file doesn't go back to it's very original state. It's compressed again, which is going to cause image degradation over time.
If I return a lossless uti in - (NSString *)autosavingFileType, the original jpeg will be written with data that isn't a jpeg, which is problematic as well.
I realize that having autosave turned on for a single file type is dumb and will be confusing for the user- but I'm just looking for ideas at this point.
thanks,
-gus
--
August 'Gus' Mueller
Flying Meat Inc.
http://flyingmeat.com/
_______________________________________________
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