• 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
-revertDocumentToSaved: in IB
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

-revertDocumentToSaved: in IB


  • Subject: -revertDocumentToSaved: in IB
  • From: Ulf Dunkel <email@hidden>
  • Date: Fri, 03 Jul 2015 10:29:26 +0200
  • Organization: invers Software & DSd.net

Dear all.

I wonder what happened to NSDocument's -revertDocumentToSaved: method.
Although my app imports the AppKit.framework, I cannot assign a manually
added "Revert To" menu item to this method in FirstResponder (or to any
other Placeholder). It isn't listed there.

If I instead create a new File menu section for my MainMenu.xib from the
Xcode Object library, the relevant "Revert To" entry is already linked
to the desired action. If I then right-click on FirstResponder to see
the list of available actions, revertDocumentToSaved: is listed and
linked to my menu item, but it shows a yellow warning triangle which
informs me: "The action 'revertDocumentToSaved:' is not defined."

But using this menu item works fine.

What am I doing wrong?

---UlfDunkel (Mac OS X 10.10.4, Xcode 6.4, app deployment OS X 10.7)
 _______________________________________________
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


  • Follow-Ups:
    • Re: -revertDocumentToSaved: in IB
      • From: Ulf Dunkel <email@hidden>
  • Prev by Date: Re: Best tool for "selective merge"?
  • Next by Date: @import and Objective-C++
  • Previous by thread: Re: Best tool for "selective merge"?
  • Next by thread: Re: -revertDocumentToSaved: in IB
  • Index(es):
    • Date
    • Thread