On Jul 16, 2015, at 00:30 , Ulf Dunkel <[email protected]> wrote:
>
>> I wonder what happened to NSDocument's -revertDocumentToSaved: method.
>From release notes:
https://developer.apple.com/library/mac/releasenotes/AppKit/RN-AppKitOlderNotes/
<https://developer.apple.com/library/mac/releasenotes/AppKit/RN-AppKitOlderNotes/>
> "In 10.8, NSDocument has added some new document management operations and
> has enhanced others.
>
> […]
>
> "For applications adopting +autosavesInPlace, the Revert command has been
> broken up into multiple menu items that allow reverting to key versions
> without requiring the user to enter the Versions browser. These menu items
> continue to use the -revertDocumentToSaved: action and use the menu item's
> tag to identify which item the user selects. You should not attempt to modify
> these menu items in any way.”
You used to be able to add any selector you wanted to First Responder’s list in
IB, though the UI for doing so got more and more obscure over time, and perhaps
you can’t do that any more. However, the implication of the above is that you
can’t just do that anyway, since the menu tag has to be set to something
predetermined, too.
IOW, you shouldn't try to create this menu item “manually”, but always use the
menu item that’s in the object library File menu preset.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list ([email protected])
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/xcode-users/archive%40mail-archive.com
This email sent to [email protected]