Look up discardable actions in the NSUndoManager reference.

--Kyle Sluder
(Sent from the road)

On Sep 24, 2011, at 6:57 PM, "Gerriet M. Denkmann" <[email protected]> wrote:

> I have a document based app which can change the appearance of it's documents 
> (which changes do *not* alter the disk representation at all),
> and also make real changes of the data.
> 
> Both kind of actions are un-doable.
> 
> The problem:
> When I open some old document (without any intention to change it) just 
> intending to play around with different appearances of it, then Lion tells me 
> that I have to unlock the file.
> 
> How can I tell Lion (or the DocumentController or whatever) that some changes 
> do not affect the disk representation?
> 
> Well, I can just unlock the file; but it would be much nicer, if the "Do you 
> want to unlock"-dialog came up only if I attempted some real change of the 
> document.
> 
> Kind regards,
> 
> Gerriet.
> 
> _______________________________________________
> 
> Cocoa-dev mailing list ([email protected])
> 
> 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/kyle.sluder%40gmail.com
> 
> This email sent to [email protected]
_______________________________________________

Cocoa-dev mailing list ([email protected])

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 [email protected]

Reply via email to