• 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
Preventing edits in Versions browser
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Preventing edits in Versions browser


  • Subject: Preventing edits in Versions browser
  • From: Steve Mills <email@hidden>
  • Date: Wed, 17 Apr 2013 11:23:29 -0500

I assume that NSDocument's isInViewingMode is what I should be asking if the document being used is an actual opened doc or one in the Versions browser. Looking at TextEdit, its document class has an isReadOnly instance variable, but I don't see it getting set to YES even when browsing versions. Yet somehow the Save menu item gets disabled when a browsed version if the active window. But TextEdit doesn't seem to prevent any actual edits from happening, but instantly undoes each edit. So you see the change for a split second. That's not a very good user experience. What does everyone else do? Disable menu items and disallow edits based solely or in part on the isInViewingMode result? Does isInViewingMode ever return YES for reasons other than for docs being browsed in Versions? What about locked files?

--
Steve Mills
office: 952-818-3871
home: 952-401-6255
cell: 612-803-6157



_______________________________________________

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: Preventing edits in Versions browser
      • From: Jerry Krinock <email@hidden>
  • Prev by Date: Re: Core Animation with NSWindow
  • Next by Date: KVO on a managed object called twice in child context
  • Previous by thread: Re: iOS UI suggestions wanted - Date Picker
  • Next by thread: Re: Preventing edits in Versions browser
  • Index(es):
    • Date
    • Thread