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

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

Reply via email to