RE: where have all the IVARS gone? (long time passing...)
RE: where have all the IVARS gone? (long time passing...)
- Subject: RE: where have all the IVARS gone? (long time passing...)
- From: Vinay Prabhu <email@hidden>
- Date: Fri, 7 Jul 2006 21:59:07 +0530
- Importance: Normal
you can have the instance variables hidden in the implementation file (i.e,
.m files),
using the header
@interface <class name> (Private)
iVars...
@end
Read the Objective C basics, it is available in
apple web site
-----Original Message-----
From: cocoa-dev-bounces+vinayprabhu=email@hidden
[mailto:cocoa-dev-bounces+vinayprabhu=email@hidden]On
Behalf Of Rob Ross
Sent: Friday, July 07, 2006 12:33 PM
To: email@hidden
Subject: where have all the IVARS gone? (long time passing...)
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:
in
This email sent to email@hidden
The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s)and may contain confidential or privileged information. If you are not the intended recipient, please notify the sender or email@hidden
_______________________________________________
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