Ok, sorry for the generic subject line, but this is a hard one to describe. Bear with me.
I'm using an external framework (the Ogre graphics engine) that is very Carbon-centric. Support for Cocoa is new in this framework, and unfortunately, poorly integrated. Here's my problem: Ogre is distributed with a Cocoa template file + nib for creating Ogre applications using Cocoa. The distributed nib contains a reference to a custom ogre class "OgreView", which itself is a subclass of NSView. The entry point into the controller referenced in the nib is "applicationDidFinishLaunching", which, upon drilling down, appears to call the following before creating its own OpenGL context and things: NSAutoreleasePool *arp = [[NSAutoreleasePool alloc] init]; NSApplicationLoad(); ... I'm really confused about this approach. According to the documentation, NSApplicationLoad() is supposed to be called from Carbon applications trying to provide Cocoa support. But the entry to this application was applicationDidFinishLaunching(), which was called *from* Cocoa, no? What's going on here? The ultimate goal of this is to figure out how to integrate things like QuickTime views into the nib and not have it cause any problems. When I do this now, the QT view isn't happy. I suspect it's due to this NSApplicationLoad() stuff sitting elsewhere, but I can't seem to wrap my head around the point of NSApplicationLoad() in this context. Are there ways to use traditional Cocoa components (like QT views) when applications have this kind of "Carbon tinge"? I've tried sending all of my QT operations to the main thread, but that doesn't work. Sigh. I hope that's not too complicated. Thanks for any insight. jt _______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please 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: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com