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

Re: Undo manager


  • Subject: Re: Undo manager
  • From: Jonathon Mah <email@hidden>
  • Date: Thu, 7 Apr 2005 00:27:01 +0930

On 6 Apr 2005, at 22:58, Lorenzo wrote:

The PROBLEM now is that the method undoMenuItemTitle returns a string
starting with a "&" (amazing, why?) so I get something like
    "&Undo Move Object"
    "&Redo Move Object"

I'm gonna take a stab in the dark here. Perhaps it's a localization thing? (It's "Undo" for English, but not necessarily for anything else.) Or maybe it's a keyboard shortcut thing (a la Windows' underlined letters) from NextStep (if that had them)?


This seems to be a Cocoa bug. Anyway, why should I manage the undo menu
items by myself? Just because I override the validateMenuItem method?

You should be doing something like this (in pseudocode):

- (BOOL)validateMenuItem:(NSMenuItem*)theItem
{
    if (theItem is some item I made)
        return YES;
    else
        return [super validateMenuItem:theItem];
}


Jonathon Mah email@hidden

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: Undo manager
      • From: Lorenzo <email@hidden>
References: 
 >Re: Undo manager (From: Lorenzo <email@hidden>)

  • Prev by Date: Re: Split view in a table
  • Next by Date: Re: [NSFileManager defaultManager] mem leak
  • Previous by thread: Re: Undo manager
  • Next by thread: Re: Undo manager
  • Index(es):
    • Date
    • Thread