On 17 mar 2009, at 06.32, Michele Barboni wrote:
if(value = nil) return nil;
missed a "=".. sorry..
...and that's why it's great to re-train yourself to type it the other
way around:
if (nil == value)
A stricter set of compiler warnings helps too, of course:
-Wall -Wextra -Winit-self -Wundeclared-selector
(At least when compiling your "Release" configuration)
Cheers,
j o a r
_______________________________________________
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com
This email sent to arch...@mail-archive.com