Re: Newb: KATI Sample Code - What's This Called?
Re: Newb: KATI Sample Code - What's This Called?
- Subject: Re: Newb: KATI Sample Code - What's This Called?
- From: Rob Keniger <email@hidden>
- Date: Fri, 3 Oct 2008 15:45:26 +1000
On 03/10/2008, at 7:43 AM, Brad Gibbs wrote:
and realized I don't understand (ColorView*). It looks like it's
declaring a pointer to an object, but it's followed by a method.
Could somebody tell me the name of the function (ColorView*) is
performing so I can look it up and figure it out?
As others have pointed out, this is C type casting. Here's a couple of
references:
http://en.wikipedia.org/wiki/Cast_(computer_science)
http://docs.hp.com/en/B3901-90007/ch05s05.html
If this is confusing you, you probably need to do some introductory
tutorials on basic C syntax. I highly recommend Stephen Kochan's book
"Programming in Objective-C" which has an excellent section on the
parts of C that are relevant to Objective-C, as well as being IMO the
best Objective-C language book out there.
--
Rob Keniger
_______________________________________________
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