Making a manually polled app loop in games?
Making a manually polled app loop in games?
- Subject: Making a manually polled app loop in games?
- From: Joachim Bengtsson <email@hidden>
- Date: Fri, 16 Feb 2007 09:38:53 +0100
Hi,
I'm sure I'm missing some great already existant documentation on how
to do it, but how do you manually startup and poll a cocoa
application? I'm on a team writing a semi-largish game, and I ugly-
hacked together the first method I could find, which happened to be
some deprecated ol' carbon stuff like GetMainDevice and
EventHandlerUPPs and whatnot. It's all being run as libraries to
Python, so I can't use the classic 'main() {return NSApplicationMain'.
All I need to do is provide a OpenGL surface, and poll for input and
other events ("window closing" and stuff like that). I'd just like to
use Cocoa instead, as I'm way more familiar with that (and probably
requires way less code :P)
Any pointers would be greatly appreciated!
Thanks,
Joachim Bengtsson
thirdcog.eu

_______________________________________________
Cocoa-dev mailing list (email@hidden)
Do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden