Objective-C syntax, it really kind of sucks. To me, in my brain [] is an array. When I see [[NSString alloc] init] I think i’m looking miss configured array.
I guess I’ll have to get over it.
Here’s some things:
"-(IBAction)doSomething:(id)sender;"
"-" public function (“+” means static, i don’t know which one means private)
"(IBAction)" return type
"doSomething" method name
":(id)" argument type, (“id” is the equivalent of * or [object Object])
"sender" arbitary argument name i just passed in.
Tags: Uncategorized