• 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: Omar Qazi <email@hidden>
  • Date: Thu, 11 May 2006 16:40:42 -0700


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.

_______________________________________________
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


References: 
 >Menu States (From: "Cook, Mike" <email@hidden>)

  • Prev by Date: Newbie OOP style question
  • Next by Date: Re: indexing of objects in a subview array SOLVED
  • Previous by thread: Menu States
  • Next by thread: RE: Menu States
  • Index(es):
    • Date
    • Thread