Re: Executing non objective-c code in a loaded bundle
Re: Executing non objective-c code in a loaded bundle
- Subject: Re: Executing non objective-c code in a loaded bundle
- From: Damien Sorresso <email@hidden>
- Date: Wed, 28 Jun 2006 00:35:57 -0500
On 27 Jun, 2006, at 11:41 PM, Mark Williams wrote:
I have a bundle with a couple of plain old C functions in it. When
I load it I have no trouble executing any objective-c code but I do
not know how to execute a regular c function from the loaded bundle
like somefunction(); Is it possible to do this or do I have to
convert it all to obj-c?
It sounds like you probably have your C functions declared inside
@interface
.
.
.
@end
Move their declarations outside of the `@interface ... @end' context,
and you'll be able to call them from `main()' or wherever. You'll
also still be able to call them from within the class. Also move the
method definitions outside of the `@implementation ... @end' context
in your implementation file.
--
Damien Sorresso
"Never ask a man what computer he uses. If it's a Mac, he'll tell
you. If it's not, why embarrass him?"
-Tom Clancy
Attachment:
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________
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