NSMenu Trouble
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.