Re: mixing c with obj c
Re: mixing c with obj c
- Subject: Re: mixing c with obj c
- From: Phillip Morelock <email@hidden>
- Date: Fri, 12 Apr 2002 17:06:44 -0700
On 4/12/02 4:58 PM, "Ondra Cada" <email@hidden> wrote:
>
Right. So declare one:
>
>
...
>
id *foo;
>
...
>
>
The usage is straighforward:
>
>
foo=calloc(number_of_elements,sizeof(*foo));
>
...
>
foo[N]=[NSObject new];
>
...
>
[foo[N] retain];
>
...
>
free(foo);
is using sizeof(id) reliable? forgive me -- i guess "id" is just a void
pointer itself right?
thanks very much for your help...that explanation was exactly what i needed.
fillup
>
---
>
Ondra Cada
>
OCSoftware: email@hidden http://www.ocs.cz
>
2K Development: email@hidden http://www.2kdevelopment.cz
>
private email@hidden http://www.ocs.cz/oc
_______________________________________________
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.