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 (Cocoa-dev@lists.apple.com)

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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to