Re: Making the Versions Browser less of a dog
Re: Making the Versions Browser less of a dog
- Subject: Re: Making the Versions Browser less of a dog
- From: Graham Cox <email@hidden>
- Date: Fri, 21 Nov 2014 10:10:42 +1100
Thanks Jerry, I hadn't known about -isInViewingMode - I'll check out whether it means anything I can use :)
I can already see a bit of a problem with what I'm trying to do though - without reading and parsing my file data, the UI isn't built properly, for example I have a source list outline view that is populated by the data model I load. If I don't load it, it's not correct, obviously. So that means the "snapshot" needs to be the entire window, not just one view within it. That's probably doable, but then displaying said snapshot in the VB is hard since it has to replace the entire window content dependent on some state variable that is hard to reliably determine.
(VB really should be doing this somehow itself - it's surely the wrong implementation that opens hundreds of actual documents - and what if a document opens multiple windows? - with unknown demands on memory and CPU performance instead of just showing some fake proxy images until you actually choose one, or at the very least providing reliable information to your app so that it can pull off the equivalent fakery with aplomb. It makes a fine demo with trivial documents, but fails horribly in the real world. I'd rather it just showed a dull-looking list of versions with a preview image when you select one).
--Graham
> On 21 Nov 2014, at 6:24 am, Jerry Krinock <email@hidden> wrote:
>
> Try the term “viewing mode”, as in-[NSDocument inViewingMode]. The documentation leaves me unsure as to whether or not “viewing mode” == “versions browser”. I think someone at DTS that told me back in 2011 that this is true. But I consider that to be no more than a data point :(
_______________________________________________
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