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 (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