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 18:28:44 -0700
On 2011 Aug 24, at 17:17, Graham Cox wrote:
> Can I get a notification that my app returned from browsing Versions (and is entering Versions)?
Terminology: "browsing versions" is called "viewing mode", as in "you can view but you can't edit".
We have NSWindowWillEnterVersionBrowserNotification and NSWindowDidExitVersionBrowserNotification, however I found the former is not received if a document *opens* on the right side of the version browser, i.e. if the user "browses" to it. Maybe that doesn't matter in your case.
We also have -[NSDocument isInViewingMode], although I found that it sometimes tells me that we're not in viewing mode when in fact we are.
I could post a bunch of code I use to work around these issues, but I'd rather not pollute the list unless someone thinks they need it.
_______________________________________________
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