Tagged Questions
1
vote
3answers
340 views
When should one use “out” parameters?
In Objective-C, there are several methods like initWithContentsOfFile:encoding:error: where one passes in a reference to an NSError object for the error: parameter. In this example, the value of the ...
4
votes
2answers
483 views
Design pattern and best practices [closed]
I am an iPhone developer. I am quite confident on developing iPhone application with some minimal feature. I would consider myself as a fair application developer but the code I write is not so much ...
7
votes
1answer
962 views
Properties under ARC: Always or public-only?
After reading an article humbly named "The Code Commandments: Best Practices for Objective-C Coding" by Robert McNally a little less than two years ago, I adopted the practice of using properties for ...
5
votes
5answers
343 views
When designing a protocol, is it better for a method to accept a single object of a specific type, or an array?
I'm currently designing a protocol for internal use, so it doesn't make a huge difference in this particular case, but it got me wondering:
Is it better for a method to accept a single object of a ...