Skip navigation.
 
mlProgrammatically setting Principle Class
FROM : Shamyl Zakariya
DATE : Thu Aug 03 23:36:18 2006

I'm working on a simple cocoa framework ( a little like GLUT, but 
with a C++ interface ) to allow me to prototype opengl, but with 
features that are more useful to me and what I'm doing than GLUT can 
provide. My goal is that the framework should happily work even from 
command-line c++ apps.

The trouble is, to corral events I override NSApplication and use my 
own sendEvent: method. If I can, I'd like to be able to 
programmatically tell Cocoa to use *my* NSApplication subclass, much 
like setting PrincipleClass in Info.plist does.

Is there a way to do this? I googled and searched 
developer.apple.com, but didn't have any luck.

Thanks,

<email_removed>
   "authentic frontier gibberish"

Related mailsAuthorDate
mlProgrammatically setting Principle Class Shamyl Zakariya Aug 3, 23:36
mlRe: Programmatically setting Principle Class Nick Zitzmann Aug 4, 00:08
mlRe: Programmatically setting Principle Class Shamyl Zakariya Aug 4, 16:54
mlRe: Programmatically setting Principle Class Nick Zitzmann Aug 4, 19:09
mlRe: Programmatically setting Principle Class Shamyl Zakariya Aug 4, 19:49
mlRe: Programmatically setting Principle Class Shamyl Zakariya Aug 6, 22:17