Re: Calling an object from a C function
Re: Calling an object from a C function
- Subject: Re: Calling an object from a C function
- From: "mm w" <email@hidden>
- Date: Tue, 19 Aug 2008 17:40:05 -0700
hi charlie give your code or something clearer
what are you trying to do? a C object runtime? or a wrapper obj-c to
C? (kidding)
maybe you could have the right answers, when I read you, my feelings
is that you don't go in the right direction
On Tue, Aug 19, 2008 at 5:06 PM, Charlie Dickman <email@hidden> wrote:
> Thanks to all who responded. I must have had a mental block against this.
>
> Now, how do I define things like 'self' and 'super' to a C program?
>
> On Aug 19, 2008, at 7:38 PM, David Duncan wrote:
>
>> On Aug 19, 2008, at 4:28 PM, Charlie Dickman wrote:
>>
>>> from within a C (not Objective C) function and make use of the result?
>>>
>>> In Objective C I would invoke
>>>
>>> [myObject myMethod: myInt];
>>
>>
>> You invoke it exactly the same way. There is no difference. But you need
>> to compile as Obj-C.
>>
>> int foo(id bar) { [bar foobaz]; }
>> --
>> David Duncan
>> Apple DTS Animation and Printing
>>
>
> Charlie Dickman
> email@hidden
>
>
>
> _______________________________________________
>
> Cocoa-dev mailing list (email@hidden)
>
> 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:
>
> This email sent to email@hidden
>
--
-mmw
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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:
This email sent to email@hidden