Re: C to Objective-C
Re: C to Objective-C
- Subject: Re: C to Objective-C
- From: Jon <email@hidden>
- Date: Tue, 8 Oct 2002 11:01:17 -0700 (PDT)
Thanks,
- (void)verticesX:(float*)xVert Y:(float*)yVert
T:(int)TOTAL;
Great I'll use it.
Thanks again,
Jon
--- Dietrich Epp <email@hidden> wrote:
>
>
On Friday, October 4, 2002, at 07:56 , Jon wrote:
>
>
> I've tried - (void)verticesX:(float)xVert[]
>
Y:yVert[]
>
> T:(int)TOTAL; but this doesn't work in Cocoa. How
>
> should I write it in Objective-C?
>
>
My suggestion is to use float* instead of float[]...
>
but float[] works.
>
You see, xVert[] is not an OK variable name in C or
>
objective C, what
>
you get is xVert with a type of float[]. This is
>
why I hate C.
Faith Hill - Exclusive Performances, Videos & More
http://faith.yahoo.com
_______________________________________________
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.