My big headache is when the documentation just seems to go all cryptic on me. I feel like I must be missing something which is obvious to long-term Mac programmers.
Could someone tell me if I am just being a real noob, or whether there is a 'secret' I am missing?
For example, according to the docs, UIView has a property called hidden. It also says that the getter for this property is 'isHidden'. But none of the following seem to work
CODE
my_btn.hidden = YES;
[my_btn setHidden:YES];
[my_btn hidden:YES];
my_btn.isHidden = YES];
[my_btn setHidden:YES];
[my_btn hidden:YES];
my_btn.isHidden = YES];
What is the syntax for setting a property? It seemed from my reading of the documentation elsewhere that the first one is correct, but the SDK errors with
'request for memeber 'hidden' in something not a structure of a union'
Could someone kind bear with me and explain how to read the documentation? What does it mean? If it says 'getter=isHidden' what does that imply? That I should use 'isHidden' instead of 'hidden'? That this is read-only, hence no setter? Is there a standard method for setting and retrieving getter/setters which I just don't know about?
I know this sounds like a really noob question - but I don't want spoon-feeding, just an idea of how to interpret the documentation generally.. thanks very much.