Am I just tired? Is it really as difficult as it seems to be? I'm not having 
any luck with submenuing tonight at all and I feel I must be overlooking 
Something Importantâ„¢, but after hours pouring through the docs I'm just not 
catching it.

Two quick examples:

1. I have an NSPopUpButton in Interface Builder. When run in my live code, it 
functions as expected. Pick an item and the menu properly reflects my choice. 
Add a submenu cell to the list, populate it in Interface Builder, then run. Now 
choices made in the submenu are not reflected in the menu. Rather I get an 
empty cell. This seems like it should be very simple, and I don't recall having 
such issues with submenus in the past.

2. I have an NSTokenField. Populating the tokens programmatically with menus 
for their represented objects is simplicity itself, including triggering 
actions on the target. That mechanism works in the test code. However, the 
token does not reflect the menu choice, much like the submenu choices in the 
NSPopUpButton appeared to be ignored.

And so I feel I must not be grokking some aspect of the menu system to have 
these things elude me.

As always, my advance thanks to the group for any light that can be shed.
Christopher Drum
http://development.christopherdrum.com/blog


_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to