Well, the sample code gets its menu from a nib. If you download the
sample and look at the nib, you can see the item at index 4.
Or you can just look at Larry's simple sample, which explains
everything easily.
In order to a setup a menu with items you need to do the following:
1. Create the parent menu.
2. Insert the parent menu into the menu bar.
3. Add menu items to the parent menu.
4. Create a submenu.
5. Attach the submenus to the menu items in the parent item.
Your code is skipping step 3.
Ack, at 10/29/06, David Walters said:
ok, how do we know that 4 is correct? I don't see the same mechanics
you do because I can't find a reason why 4 is the correct index to
pass in the example from apple.
--
Sincerely,
Rosyna Keller
Technical Support/Carbon troll/Always needs a hug
Unsanity: Unsane Tools for Insanely Great People
It's either this, or imagining Phil Schiller in a thong.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Carbon-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden
References:
>Submenu woes (From: David Walters <email@hidden>)