Re: -revertDocumentToSaved: in IB
Re: -revertDocumentToSaved: in IB
- Subject: Re: -revertDocumentToSaved: in IB
- From: Quincey Morris <email@hidden>
- Date: Thu, 16 Jul 2015 07:47:10 +0000
On Jul 16, 2015, at 00:30 , Ulf Dunkel <email@hidden> wrote:
I wonder what happened to NSDocument's -revertDocumentToSaved: method.
From release notes:
"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@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden