Re: Locked FIles in Lion

2011-09-24 Thread Gerriet M. Denkmann
On 25 Sep 2011, at 09:01, Kyle Sluder wrote: > Look up discardable actions in the NSUndoManager reference. Thank you very much. This was exactly what I was looking for. Kind regards, Gerriet. ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Re: Locked FIles in Lion

2011-09-24 Thread Don Quixote de la Mancha
The underlying open() system call can open documents read-only. See man 2 open. Does Cocoa have a way to specify read-only document open that passes the right flag to open()? -- Don Quixote de la Mancha quix...@dulcineatech.com    Custom Software Development for the iPhone and Mac OS X    http

Re: Locked FIles in Lion

2011-09-24 Thread Kyle Sluder
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" 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 al

Locked FIles in Lion

2011-09-24 Thread Gerriet M. Denkmann
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)