• 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: How to identify a menu item?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to identify a menu item?


  • Subject: Re: How to identify a menu item?
  • From: Donald Brown <email@hidden>
  • Date: Sun, 03 Mar 2002 08:59:58 -0600

The simplest way is to use the tag. This can be edited in the Interface
Builder, and you can do a simple

switch([sender tag])
{
case 1010://Add records
if (oktoaddrecords)
return YES;
else
return NO;
break;
}


on 3/3/02 7:06 AM, Manfred Lippert at email@hidden wrote:

> I often have the problem to identify a specific menu item. Mostly in
> implementations of the validateMenuItem method.

--
Donald Brown
email@hidden
http://www.eamontales.com

We have met the enemy and he is us - Pogo
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

References: 
 >How to identify a menu item? (From: Manfred Lippert <email@hidden>)

  • Prev by Date: Re: NSControl with NSCells
  • Next by Date: Delegate for Double Click in NSTableView
  • Previous by thread: Re: How to identify a menu item?
  • Next by thread: Current row/column string value...
  • Index(es):
    • Date
    • Thread