Recommended way to declare delegate properties with ARC

Xcode 4 Refactor > Convert to Objective-C ARC transforms: @interface XYZ : NSObject { id delegate; } @property (assign) id delegate; … @synthesize delegate; into: @interface XYZ : NSObject { id __unsafe_unretained delegate; } @property (unsafe_unretained) id delegate; … @synthesize delegate; If I remember correctly it is also mentioned in WWDC 2011 video about ARC.

Odd use of curly braces in C

Assuming that MyRecorder is a struct, this sets every member to their respective representation of zero (0 for integers, NULL for pointers etc.). Actually this also works on all other datatypes like int, double, pointers, arrays, nested structures, …, everything you can imagine (thanks to pmg for pointing this out!) UPDATE: A quote extracted from … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)