Weird Obj-c runtime problems
Weird Obj-c runtime problems
- Subject: Weird Obj-c runtime problems
- From: Pierre-Olivier Latour <email@hidden>
- Date: Sun, 09 Feb 2003 23:09:06 -0800
Hi,
I have a 3D engine which is available as a framework in /Library/Frameworks
and as a .a library. I designed 2 iTunes plug-ins with it, one linking to
the framework, and the other embedding the engine.
Both are in ~/iTunes/Plug-Ins/Visual Plug-Ins
First question: when I launch iTunes, I get these messages in the console
Feb 9 22:54:16 iBook600 /Applications/iTunes.app/Contents/MacOS/iTunes:
objc: Both /Volumes/PolDisk/Library/iTunes/iTunes
Plug-ins/Goa.bundle/Contents/MacOS/Goa and
Library/Frameworks/PixelShoxEngine.framework/Versions/A/PixelShoxEngine have
implementations of class TextEditor.
I definitely understand why this message appears, but I would like to know
what happens in such a case? Which implementation is chosen if any (both are
the same actually)? Is the runtime going to call the first one, randomly
some methods in
Second question: when I run the plug-in with the embedded engine, iTunes
quits with code 1 (not a crash, just exits). There is the following message:
Feb 9 22:55:31 iBook600 /Applications/iTunes.app/Contents/MacOS/iTunes:
objc: thread is already initializing this class!
I don't understand this message... It happens even when I just launch iTunes
and I try the plug-in right away (without running the other plug-in first
for example, which would have initialized the classes).
The other plug-in, the one that links to the framework, runs fine though.
The weird thing is that if I move of the 2 plug-ins to:
~/iTunes/Plug-Ins/
Leaving the other in:
~/iTunes/Plug-Ins/Visual Plug-Ins
I still get the errors at launch in the console, but now both plug-ins work
fine and no more "thread is already initializing this class" error...
So is there any trick to improve this situation given I need to have both
the framework and the embedded versions of the engine?
_____________________________________________________________
Pierre-Olivier Latour email@hidden
Palo Alto, USA
http://www.pol-online.net
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.