Author: andras.palfi

ObjC ivar/global var declaration – a clarification

You can declares iVar-s in header files but it’s better in the implementation, so they will be really invisible for others. You should do this way: @implementation MyClass { int firstiVar; } @synthesize anyProperty; But what if you forget the parenthesis and you put the variable simply beside the @synthesize? Like this: @implementation MyClass int […]

iOS mock framework for unit tests

Mock objects are objects which behave like another business objects, but they don’t do more than you need to test a unit. For example they response with a static data. Mock frameworks gives you the ability to define dynamically mock objects in the test method rather than define them in separate classes. The mock object […]

ObjC advanced static code analyzer

There is a built in code analyzer in Xcode but unfortunately it’s not that we really need. It doesn’t check complexity, method sizes etc. This was one of the missing features till now because fortunately there is a good one out already: OCLint (http://oclint.org/) Unfortunately there is still no correct Xcode project file read support […]