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

RE: Menu States


  • Subject: RE: Menu States
  • From: "Cook, Mike" <email@hidden>
  • Date: Mon, 15 May 2006 10:54:42 +0100
  • Thread-topic: Menu States


Mike Cook

On May 11, 2006, at 7:28 AM, Cook, Mike wrote:
>>  It says [curItem setState:NSOffState] but how do I know the value
>> to put for "curItem"
>> when I am in a routine that is called up by another menu item sent
>> to me
>> as "sender"? I know from a variable state what menu item it should
be,
>> but how do I reference that in the language? (objective C)

>Just put an IBOutlet to the Menu Item inside the controller class.

>IBOutlet NSMenuItem *nameOfItem;

>After that just connect it to the menu item using interface builder.

Thanks very much that worked a treat. Just the job.

 _______________________________________________
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

  • Prev by Date: Handling Right Mouse Event for NSTableView
  • Next by Date: File Output from Python to Obj-C
  • Previous by thread: Re: Menu States
  • Next by thread: NSDrawer in System Pref Pane
  • Index(es):
    • Date
    • Thread