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

Re: Preventing edits in Versions browser


  • Subject: Re: Preventing edits in Versions browser
  • From: Jerry Krinock <email@hidden>
  • Date: Fri, 19 Apr 2013 08:13:03 -0700

On 2013 Apr 17, at 09:23, Steve Mills <email@hidden> wrote:

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

I agree it's weird, but I just let it go that way.  I thought, "Apple knows more about user experience than me" :))

> Disable menu items and disallow edits based solely or in part on the isInViewingMode result?

Maybe the thinking is that the user is going to get an unexpected result, one way or the other.  Quickly changing it back tells the user that "Yes, we know what you want to do, but you can't do that (change history)".

> Does isInViewingMode ever return YES for reasons other than for docs being browsed in Versions?

I found some opposite cases, in Mac OS X 10.7, wherein -[NSPersistentDocument isInViewingMode] would return NO at times when it should have returned YES.  My code comments don't give any more detail.  Anyhow, I overrode it.  If super returns NO, my override double-checks this answer by asking if [[self fileURL] path] contains the component @".DocumentRevisions-V100".  Not nice, but it made things work.
_______________________________________________

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: Mike Abdullah <email@hidden>
References: 
 >Preventing edits in Versions browser (From: Steve Mills <email@hidden>)

  • Prev by Date: Re: My App crash on 10.7.5, but works on 10.8
  • Next by Date: Re: Circular references caused by scheduled NSTimers?
  • Previous by thread: Preventing edits in Versions browser
  • Next by thread: Re: Preventing edits in Versions browser
  • Index(es):
    • Date
    • Thread