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 protected])

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to