Objective C convention: When to use For and when to use With

Posted by Howard on Stack Overflow See other posts from Stack Overflow or by Howard
Published on 2012-09-01T09:36:35Z Indexed on 2012/09/01 9:37 UTC
Read the original article Hit count: 146

Filed under:
|
|
|
|

According to the Apple guideline , seems it is confusing, e.g. for method viewWithTag

In Java, I would have a method called

getViewByTag // Java version, equivalent to viewWithTag in Obj-C

But I also found there are some method like objectForKey, so why not just use objectWithKey instead?

getObjectByKey or just get // Java version, equivalent to objectForKey, 
                           // but why not objectWithKey? Or not viewForKey above?

© Stack Overflow or respective owner

Related posts about iphone

Related posts about objective-c