Re: Getting Started with Objective C and Xcode?
Re: Getting Started with Objective C and Xcode?
- Subject: Re: Getting Started with Objective C and Xcode?
- From: Raffael Cavallaro <email@hidden>
- Date: Tue, 20 Apr 2010 09:08:18 -0400
On Apr 20, 2010, at 2:07 AM, Scott Cherf wrote:
> There's no real resemblance between C and Objective C
???
This is a bit misleading.
*Semantically* they are quite different.
*Syntactically* they are very very similar (in fact, literally identical in many cases - anything below the abstraction level of an Objective-C object - basic arithmetic, function calls, pointers, structs, etc. - *is* straight C.)
Objective-C is the Smalltalk message passing, single inheritance, OO model implemented on top of C types and low level C syntax. If you are familiar with Smalltalk, then you'll get Objective-C's OO model immediately. If you're familiar with C you'll get Objective-C's syntax immediately. The best background for Objective-C is familiarity with C and Smalltalk.
Apart from the frameworks which are huge, the major new thing someone familiar with Smalltalk and C will need to learn is Objective-C reference counting memory management. Unfortunately, Objective-C didn't copy Smalltalk's garbage collection.
warmest regards,
Ralph
Raffael Cavallaro
email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden