Re: First questions
Re: First questions
- Subject: Re: First questions
- From: Brendan Younger <email@hidden>
- Date: Fri, 22 Jun 2001 00:01:57 -0500
I can't say for sure since I don't know precisely what you want to do,
but it looks as though you probably just want to use the template that
project builder makes for a new Cocoa application. In the template,
everything is set up by the call to NSApplicationMain(). "Everything"
includes a run loop (NSRunLoop <- a Foundation class) which will poll
for events, put your app to sleep while waiting for user input, etc.
You can then make a window with an OpenGL view in your main nib file in
Interface Builder which will loaded when your program does. Then, to
receive events, make a custom NSWindowController and take a look at
NSResponder for which methods to over-ride.
Forgive me if I'm telling you something you already know, but it just
looks to me as though you've gone through a lot of trouble to implement
a classic Mac OS application run loop using the Cocoa API's and so I
assume you haven't completely made the switch to Cocoa.
Feel free to email me if I haven't been clear enough.
Brendan Younger
P.S. Say, I see you're from Freeverse. Does this mean we'll be getting
awesome Cocoa games in the next few months? I'm eagerly awaiting them
if so.