Re: Odd error logged when coming back from 'Browse All Versions'
Re: Odd error logged when coming back from 'Browse All Versions'
- Subject: Re: Odd error logged when coming back from 'Browse All Versions'
- From: Jerry Krinock <email@hidden>
- Date: Wed, 24 Aug 2011 20:52:38 -0700
On 2011 Aug 24, at 20:07, Graham Cox wrote:
> Maybe my understanding is a little off here, but I'd assumed that the versions "on the right side" were just snapshots (images) of the window content rather than actual documents.
Oh, I'd assumed that at first too. But in fact they are real instances of your NSDocument subclass, with a full window controller or whatever. If the window has has a scroll view, it scrolls! It it has multiple tabs, click them and they should work!
It's kind of scary for a complicated document window. Although Cocoa takes care of not allowing edits for you, if there are other functions which are not appropriate when viewing history, you need to disable them.
> Since that's what I'd assumed I haven't been looking for notifications for these. If they are actual documents, isn't that asking rather a lot of your app, that it opens potentially hundreds of documents when you enter Versions?
No, I think that only two documents are generally open, the "Current" (on the left) and the "History" (on the right). Those other hundreds behind the "History" are probably faked by a title bar image as you had originally assumed.
> I thought it only replaced the data content of the document when you actually chose one to restore.
Have not tested that, but I'd suspect replaces the whole document object.
_______________________________________________
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