[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
How to call objective-c method from c ?
From: |
Yen-Ju Chen |
Subject: |
How to call objective-c method from c ? |
Date: |
Thu, 16 Oct 2003 13:42:41 -0400 |
Hi,
How to call objective-c method from c function ?
Something like that:
struct TestObject_t {
@defs(TestObject)
} *testObjectPtr;
void c_function()
{
// Doesn't work
testObjectPtr->objc_method(argument);
}
@implement TestObject
- (id) init
{
self = [super init];
testObjectPtr = (struct TestObject_t *) self;
return self;
}
- (void) objc_method
{
}
@end
Thanx a lot
Yen-Ju
_________________________________________________________________
Want to check if your PC is virus-infected? Get a FREE computer virus scan
online from McAfee.
http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963
- How to call objective-c method from c ?,
Yen-Ju Chen <=