• 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 woassss.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: menu woassss.


  • Subject: Re: menu woassss.
  • From: Peter Maurer <email@hidden>
  • Date: Mon, 26 Jan 2004 10:18:01 +0100

i have this

nMenu = [[NSMenu alloc] initWithTitle:@"nameMenu"];
[nMenu addItemWithTitle:@"First Name"
action:@selector(addOrRemoveItem:) keyEquivalent:@""];
[nMenu addItemWithTitle:@"Last Name"
action:@selector(addOrRemoveItem:) keyEquivalent:@""];

to create and add items to a NSMenu my prob is after i attach it to a
popup button none of the items are enabled i've trimed enable item and
autoenable but nothing works?

You need to set a target for your menu items. Regards,

Peter Maurer.
_______________________________________________
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: 
 >menu woassss. (From: email@hidden)

  • Prev by Date: Re: MutableDictionary not adding objects?
  • Next by Date: NSToolTipAttributeName and NSCursorAttributeName
  • Previous by thread: menu woassss.
  • Next by thread: Dynamically Resize NSView Subclass to NSScrollView
  • Index(es):
    • Date
    • Thread