• 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
Why are my menu items gray?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Why are my menu items gray?


  • Subject: Why are my menu items gray?
  • From: "Peter Karlsson" <email@hidden>
  • Date: Wed, 23 Apr 2003 14:48:21 +0000

Dear list!

Can someone please tell me why my menu items are gray'ed out? It builds 10 menu items, all with the title 'Cocoa', as expected, but they are all gray and can't be clicked.

int menuNum;
NSMenuItem *menuItem;
for(menuNum=0; menuNum <10; menuNum ++)
{
menuItem = [[NSMenuItem alloc] initWithTitle:@"Cocoa" action:@selector(deviceAction:)keyEquivalent:@""];
[menuItem setTarget:menuOutlet];
[deviceOutlet addItem:menuItem];
}

Peter






_________________________________________________________________
Add photos to your messages with MSN 8. Get 2 months FREE*. http://join.msn.com/?page=features/featuredemail
_______________________________________________
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.
  • Follow-Ups:
    • Re: Why are my menu items gray?
      • From: Henry McGilton <email@hidden>
  • Prev by Date: WebObjects vs COCOA app
  • Next by Date: RE: proting cocoa app
  • Previous by thread: Re: WebObjects vs COCOA app
  • Next by thread: Re: Why are my menu items gray?
  • Index(es):
    • Date
    • Thread