Programmatically setting Principle Class
Programmatically setting Principle Class
- Subject: Programmatically setting Principle Class
- From: Shamyl Zakariya <email@hidden>
- Date: Thu, 3 Aug 2006 17:36:18 -0400
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@hidden
"authentic frontier gibberish"
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden