|
| [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] |
I am confused by CreateMenuFromNib() documentation in places such as:_______________________________________________
http://developer.apple.com/documentation/Carbon/Reference/ Interface_Builder/ibs_refchap/function_group_2.html#//apple_ref/c/ func/CreateMenuFromNib
that states:
"After you call the function CreateMenuFromNib you need to call the Menu Manager function SetMenu to make the unarchived menu available in your application."
What is the SetMenu function? (In my years of Mac programming I have never heard of it.) Based on the suspiciously-similar wording of the create-menu-bar-from-nib documentation, I am guessing this was a typo from lazily-copied documentation. :(
Anyway, I cannot get a menu created from a NIB to work as I would anticipate. I simply replaced a GetMenu() call with CreateNibReference() and CreateMenuFromNib() calls, and the resultant MenuRef is not equivalent: it appears to automatically insert itself into the front of my menu bar no less than *3 times* (again, I replaced only GetMenu(); my existing InsertMenu() call, etc. remains). Can anyone tell me what I should do to make a NIB menu work?
Thanks in advance,
Kevin G.
http://homepage.mac.com/kmg/
mail to kevin at ieee dot org
| References: | |
| >CreateMenuFromNib and SetMenu? (From: Kevin Grant <email@hidden>) |
| Home | Archives | Terms/Conditions | Contact | RSS | Lists | About |
Visit the Apple Store online or at retail locations.
1-800-MY-APPLE
Contact Apple | Terms of Use | Privacy Policy
Copyright © 2011 Apple Inc. All rights reserved.