• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: mixing c with obj c
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Follow-Ups:
    • Re: mixing c with obj c
      • From: Ondra Cada <email@hidden>
    • Re: mixing c with obj c
      • From: "John C. Randolph" <email@hidden>
    • Re: mixing c with obj c
      • From: Andy Lee <email@hidden>
References: 
 >Re: mixing c with obj c (From: Ondra Cada <email@hidden>)

  • Prev by Date: Re: mixing c with obj c
  • Next by Date: Re: mixing c with obj c
  • Previous by thread: Re: mixing c with obj c
  • Next by thread: Re: mixing c with obj c
  • Index(es):
    • Date
    • Thread