|[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
"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,
mail to kevin at ieee dot org
|>CreateMenuFromNib and SetMenu? (From: Kevin Grant <email@hidden>)|
Visit the Apple Store online or at retail locations.
Copyright © 2011 Apple Inc. All rights reserved.