Re: Is Objective-C loaded?
Re: Is Objective-C loaded?
- Subject: Re: Is Objective-C loaded?
- From: Rosyna <email@hidden>
- Date: Fri, 6 Dec 2002 21:33:03 -0700
I've tried different methods of doing this (oddly enough trying to
create a CFBundle with /usr/lib/libobjc.dylib returns NULL).
I used NSIsSymbolLoaded to find out if objc_msgSend is available and
if it is, I try to call some other function in the objective-c
runtime (not ready to call obc_msgSend yet) but when I do, it crashes
the application if the objective c runtime has been loaded, but not
used (or initialized or something).
These are edge cases that they crash in, but its enough to cause some
trouble. Is there anyway to be sure that I can call Obj-C functions
(and then AppKit methods in the process)
Ack, at 11/18/02, Rosyna said:
Is it possible to find out if any of the objective c frameworks have
loaded into an application? Also, what kind of functions require the
objective c framework to be loaded? Do the functions in the objc.h
header require anything?
I ask because I am developing a plugin that could be in either a
cocoa or carbon application and I'd like not to call *any*
objective-c code when inside the carbon application incase it tries
to unload the plugin since objective-c code can't be unloaded from
an application.
--
Sincerely,
Rosyna Keller
Technical Support/Holy Knight/Always needs a hug
Unsanity: Unsane Tools for Insanely Great People
---
Please include any previous correspondence in replies, it helps me
remember what we were talking about. Thanks.
_______________________________________________
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.