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 <cocoa-...@esoteritech.com>

> 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 (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to