Creating windows and menus without Interface Builder in C++

Jack Nutting jnutting at gmail.com
Tue Jun 17 08:11:58 PDT 2008


On Tue, Jun 17, 2008 at 4:58 PM, Aya Koshigaya <aya at animes.de> wrote:
> the only thing I need from OSX are windows for my OpenGL Context!
> I can't and won't believe it's not possbile (or only in a very difficult
> way) to just create an window without InterfaceBuilder!

In that case I misunderstood.  You were talking about popups etc, I
thought you were doing something more GUI intensive.

If all you need is a window and a GL context, just create (in
Objective-C) an NSWindow and an NSOpenGLView, put the window into the
view, and ask the view for its openGLContext, and yes that can be done
in a few simple lines of code without IB.

-- 
// jack
// http://www.nuthole.com


More information about the MacOSX-dev mailing list