where have all the IVARS gone? (long time passing...)
where have all the IVARS gone? (long time passing...)
- Subject: where have all the IVARS gone? (long time passing...)
- From: Rob Ross <email@hidden>
- Date: Fri, 7 Jul 2006 00:02:50 -0700
I'm new to Cocoa & Objective-C, and I've been randomly going through
the header files in the Foundation framework just to get a feel for
how Objective-C header files are written, and I've noticed that there
seem to be no instance variables declared anywhere.
I understand the concept of encapsulation; I'm not looking for
instance variables to use them, but rather to see how "real"
Objective-C classes are designed. So how do classes like NSString,
NSSet or NSValue manage their internal state? Like Michael Palin once
said (or would have, had he been a developer)
"You wouldn't get very far in life if your class instances have no
internal state."
Is there some secret way of having instance variables and not
declaring them in the interface files?
Rob Ross
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden