Hi all,
This is something that has always raised questions in my mind as I have seen many do it multiple ways.
So, should all my variables be instance variables or properties. The NYTimes Obj-C Style Guide says to use properties, but then everything is accessible outside the class.
I have various integers and booleans in my view controllers that SHOULD NOT be accessible outside the class. I was always just declaring them at the top of my implementation. They should be accessible by all methods in the class. Should they now be Ivars?
Should my UI Elements(Buttons, etc.) be properties? I currently have them as properties.
Thanks,
ahan.tm
This is something that has always raised questions in my mind as I have seen many do it multiple ways.
So, should all my variables be instance variables or properties. The NYTimes Obj-C Style Guide says to use properties, but then everything is accessible outside the class.
I have various integers and booleans in my view controllers that SHOULD NOT be accessible outside the class. I was always just declaring them at the top of my implementation. They should be accessible by all methods in the class. Should they now be Ivars?
Should my UI Elements(Buttons, etc.) be properties? I currently have them as properties.
Thanks,
ahan.tm