On Feb 2, 2011, at 5:25 PM, Max Taylor wrote:
> Flip side here is that the instance variables they are talking about are 'instances' of objects or object reference variables.
Yes, instance variables within an object may be pointers to other objects. Since Objective-C is a superset of C, instance variables may be primitive C types such as int, long, float etc. There are also non-primitive and non-object types such as structs:
NSRect someFrame = NSMakeRect( 40, 40, 600, 50 );
and other NS types such as:
NSInteger myBudget; // notice no asterisk meaning it isn’t a pointer
which is different from an NSNumber which IS an object:
NSNumber *income; // asterisk indicates income is a pointer to type NSNumber
Brian S