|[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]|
I doubt that would work. It is true that Cocoa internally uses the Carbon Menu Manager to put the menus on the screen, but if you made the menu bar yourself you would not have a way of informing Cocoa about the Carbon objects you have created, and it undoubtedly needs access to those, as there is a lot of auxiliary Cocoa info that gets associated with those objects._______________________________________________
Finlay may be right, it is possible that the menu bar is the one case where Cocoa has not provided any (public) alternative means to create the menu bar other than the nib file. If one was absolutely fixated on doing everything programatically, though, you could create a nib file that has nothing but one essentially empty menu bar (you might have to have the Apple menu, though...) and fill the rest in via the NSMenu class.
- Dennis D.
|>Re: cocoa app from scratch (From: Shalev NessAiver <email@hidden>)|
|>Re: cocoa app from scratch (From: mmalcolm crawford <email@hidden>)|
|>Re: cocoa app from scratch (From: Finlay Dobbie <email@hidden>)|
|>Re: cocoa app from scratch (From: Scott Thompson <email@hidden>)|
|>Re: cocoa app from scratch (From: "Dennis C. De Mars" <email@hidden>)|
Visit the Apple Store online or at retail locations.
Copyright © 2011 Apple Inc. All rights reserved.