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

Re: undoMenuTitleForUndoActionName


  • Subject: Re: undoMenuTitleForUndoActionName
  • From: Keary Suska <email@hidden>
  • Date: Sat, 25 Apr 2009 12:57:35 -0600

On Apr 25, 2009, at 10:49 AM, norio ota wrote:

I need to localize the undo menu title.
I made the subclass of NSUndoManager and overrode two methods:
undoMenuTitleForUndoActionName and redoMenuTitleForUndoActionName.

Bun they don't get called.

Would you tell me who calls the functions and , if possible,
how I should do to localize the titles instead of general ones?

The issue, in your particular case, is probably more of an issue of how to get various parts of Cocoa to use your NSUndoManager subclass. Is there a reason that -setActionName: won't work? I imagine it could be rather awkward grammar in some languages, but it would be a lot easier.


Otherwise, IIRC, all controls will use the Window's undo manager, so if you have the window delegate implement - windowWillReturnUndoManager:, you can force the use of your subclass.

Best,

Keary Suska
Esoteritech, Inc.
"Demystifying technology for your home or business"

_______________________________________________

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: undoMenuTitleForUndoActionName
      • From: Nor <email@hidden>
References: 
 >undoMenuTitleForUndoActionName (From: norio ota <email@hidden>)

  • Prev by Date: Re: figuring out which TableView I am?
  • Next by Date: Re: parsing a string into words
  • Previous by thread: undoMenuTitleForUndoActionName
  • Next by thread: Re: undoMenuTitleForUndoActionName
  • Index(es):
    • Date
    • Thread