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

NSMenu Trouble


  • Subject: NSMenu Trouble
  • From: Izon de Bartas <email@hidden>
  • Date: Sat, 13 Dec 2003 13:53:43 -0500

Please be gentle ...

I'm trying to link toolbar items for bold, italic, and underline to their corresponding menu items for simplicity. I used IB to connect the Font menu to an NSMenu called "menuFont" in the app's delegate.

The 'Bold' toolbar item fires the following code:

[menuFont performActionForItemAtIndex:0]; // The bold MenuItem.

The toolbar item that fires the above code bolds the text ONCE, then will not unbold it. After it's been unbolded with the menu, it does not bold any more.

1 - Am I missing something in this attempt?
2 - Is there a better way of performing the bold / unbold automagically?

Thanks in advance for BEING GENTLE! ;-)

- IdB
_______________________________________________
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: NSMenu Trouble
      • From: Andreas Mayer <email@hidden>
  • Prev by Date: Re: http proxy config
  • Next by Date: Help with Notifications (How To)
  • Previous by thread: Re: NSArray NSDictionary Tree Q.
  • Next by thread: Re: NSMenu Trouble
  • Index(es):
    • Date
    • Thread