• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
When in Versions browser
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

When in Versions browser


  • Subject: When in Versions browser
  • From: Martin Hewitson <email@hidden>
  • Date: Sat, 21 Jan 2012 10:33:45 +0100

Dear list,

I'm trying to get Versions and autosave working on my document app. Most things are working. I'm using the window delegate methods

- (void)windowWillEnterVersionBrowser:(NSNotification *)notification;
- (void)windowDidExitVersionBrowser:(NSNotification *)notification;

to enable and disable some UI elements. I'm also setting a private ivar boolean _inVersionsBrowser to YES in

- (void)windowDidEnterVersionBrowser:(NSNotification *)notification

and to NO in

- (void)windowDidExitVersionBrowser:(NSNotification *)notification

Then in methods like -validateToolbarItem: I'm checking for this flag and returning NO if it's set to YES. This works for the current document window (all its toolbar items are disabled in the Versions browser) but not for the previous versions document windows. So, I need a more dynamic way to check if I'm in the Versions browser so that I can disable such things. Is there API to do that? I couldn't find it (obviously). Or is there a better way to do what I'm trying to do?

Best wishes,

Martin


_______________________________________________

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


  • Follow-Ups:
    • Re: When in Versions browser
      • From: Mike Abdullah <email@hidden>
  • Prev by Date: Re: NSSlider and arrangedObjects
  • Next by Date: Re: NSSlider and arrangedObjects
  • Previous by thread: Re: Cocoa-dev Digest, Vol 9, Issue 28
  • Next by thread: Re: When in Versions browser
  • Index(es):
    • Date
    • Thread