• 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: Nor <email@hidden>
  • Date: Sun, 26 Apr 2009 08:40:25 +0900

Keary,
Thank you very much.
As you said, I didn't want my app to show the expression on those menu
items: Undo and Redo by using -setActionName:.

I could make it with your kind message.
Let me thank you again.

Norio

2009/4/26 Keary Suska <email@hidden>

> 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

References: 
 >undoMenuTitleForUndoActionName (From: norio ota <email@hidden>)
 >Re: undoMenuTitleForUndoActionName (From: Keary Suska <email@hidden>)

  • Prev by Date: Why is NSString->FSRef so hard?
  • Next by Date: Re: Why is NSString->FSRef so hard?
  • Previous by thread: Re: undoMenuTitleForUndoActionName
  • Next by thread: Trying to get flagsChanged: to work
  • Index(es):
    • Date
    • Thread