Creating windows and menus without Interface Builder in C++

Andy Lee aglee at mac.com
Tue Jun 17 08:02:42 PDT 2008


I hesitate to mention the obvious, but have you looked at the NSWindow  
class?

--Andy

On Jun 17, 2008, at 10:58 AM, Aya Koshigaya wrote:

> Hi,
>
> 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!
>
> Also, my applications needs to create windows during runtime and I  
> don't want to creat 100 windows in IB for this.
>
> So, please... don't try to tell me I should use InterfaceBuilder, I  
> just want to know how I can create a Window via coding..
>
> And by the way, if you are developing cross-platform, you definatly  
> don't want to build your userinterface from scratch for each  
> system... that's the reason why wxWidges, QT, GTK etc exist.
>
> Aya.
>
>
> On Jun 17, 2008, at 16:46, Jack Nutting wrote:
>
>> On Tue, Jun 17, 2008 at 11:57 AM, Aya Koshigaya <aya at animes.de>  
>> wrote:
>>> I know it's very easy with
>>> InterfaceBuilder, but I don't want to create a special solution  
>>> for OSX..
>>
>> Frankly, I think that avoiding InterfaceBuilder probably *is* a
>> "special solution" that should be avoided.  IMHO a cross-platform
>> application that needs to use native GUI widgets should use the
>> facilities provided by the native platform as much as possible.  It's
>> easy enough to make an Objective-C++ "bridge" between your C++ app  
>> and
>> the Cocoa GUI, and in fact doing so will probably make you think  
>> about
>> your interfaces a bit and help in the overall design of your
>> cross-platform system.
>>
>> -- 
>> // jack
>> // http://www.nuthole.com
>
> _______________________________________________
> MacOSX-dev mailing list
> MacOSX-dev at omnigroup.com
> http://www.omnigroup.com/mailman/listinfo/macosx-dev



More information about the MacOSX-dev mailing list