• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
where have all the IVARS gone? (long time passing...)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: where have all the IVARS gone? (long time passing...)
      • From: Andreas Mayer <email@hidden>
    • RE: where have all the IVARS gone? (long time passing...)
      • From: Vinay Prabhu <email@hidden>
    • Re: where have all the IVARS gone? (long time passing...)
      • From: Andy Lee <email@hidden>
  • Prev by Date: Re: Newbie Q : writing into a text view programmatically
  • Next by Date: Re: darken grey NSToolbar
  • Previous by thread: Re: Custon toolbar items and size
  • Next by thread: Re: where have all the IVARS gone? (long time passing...)
  • Index(es):
    • Date
    • Thread