Which of the three setters is better: [objc gutter=”false”] – (void)setName:(NSString*)value{ if(value != name){ [name release]; name = [value retain]; } } – (void)setName:(NSString*)value{ id old = name; name = [value retain]; [old release]; } – (void)setName:(NSString*)value{ [name autorelease]; name = [value retain]; } [/objc] Personally I’d use the third variant, but I’m open to […]
Day: January 16, 2012
PHP+MySQL transaction problems
When you notice that BEGIN, COMMIT, ROLLBACK don’t seem to work (the queries are committed immediately) just take a look at the storage engine of your tables. It should be set to InnoDB. I’ve wasted 4 hours until i figured out what the problem was in my php pages, hope this will help you 🙂
Recent Comments