• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Making a manually polled app loop in games?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Making a manually polled app loop in games?
      • From: "Sean McBride" <email@hidden>
    • Re: Making a manually polled app loop in games?
      • From: Michael Dautermann <email@hidden>
  • Prev by Date: Re: Core Data, bindings and synchronizing.
  • Next by Date: How to connect NSPopupButtons, Bindings, and Core Data Entities?
  • Previous by thread: Re: NSImageView does not update in a loop
  • Next by thread: Re: Making a manually polled app loop in games?
  • Index(es):
    • Date
    • Thread