Re: Instance variable access from functions

2009-04-21 Thread Seth Willits
Properties? I don't see the connection at all. The instance variables I'm accessing should be available only to the class itself. Otherwise I could just use @public and access it the same way as below, but allowing the function to be defined outside of the implementation. I want to use a

Re: Instance variable access from functions

2009-04-21 Thread Greg Parker
On Apr 21, 2009, at 7:40 PM, Seth Willits wrote: Is the non-protected access of instance variables from functions defined inside of @implementations documented anywhere? I'm wondering if this some secret thing that I shouldn't use, or something that's actually pretty common used? @implemen

Re: Instance variable access from functions

2009-04-21 Thread Luke the Hiesterman
It's done all the time. You should read up on Objective-C 2.0 properties, though, to learn when it's best to use properties. Luke On Apr 21, 2009, at 7:40 PM, Seth Willits wrote: Is the non-protected access of instance variables from functions defined inside of @implementations documented

Instance variable access from functions

2009-04-21 Thread Seth Willits
Is the non-protected access of instance variables from functions defined inside of @implementations documented anywhere? I'm wondering if this some secret thing that I shouldn't use, or something that's actually pretty common used? @interface Foo : NSObject { int special; } - (