Re: Revert almost working

2015-02-03 Thread Marek Hrušovský
Reverting means that new model is loaded into ORIGINAL window (windowDidLoad / awakeFromNib aren't going to be called because the window already exists). Make sure you hook your delegates in readFromData:ofType:error: or revertToContentsOfURL:ofType:error: Mind that your IBOutlets might not

Revert almost working

2014-12-02 Thread Kevin Bracey
Hi all, I’m sure I’m either way wrong or almost right. I have a NSDocument subclass that autosaves, saves, reads and automatically opens its opened docs on launch. When I go into Revert then are versions waiting to revert, when I choose one it appears to Revert, but the currently opened

Re: Revert almost working

2014-12-02 Thread Graham Cox
On 3 Dec 2014, at 1:09 pm, Kevin Bracey ke...@ilike.co.nz wrote: When I go into Revert then are versions waiting to revert, when I choose one it appears to Revert, but the currently opened Document stays the same. Assuming that your overridden -readFromFileWrapper: (or one of its