• 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: C to Objective-C
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Prev by Date: Still having problems with selectors
  • Next by Date: window delegate madness
  • Previous by thread: Fwd: C to Objective-C
  • Next by thread: NSHighlightRect is dead ?
  • Index(es):
    • Date
    • Thread