On 3/3/09 11:30 AM, Nick Zitzmann said: >> NSLog([e description]); > >Don't ever do this. NSLog() takes a varargs string, so if there is a % >in the description, then the app will crash. Instead, do this: >NSLog(@"%@", e);
The compiler can catch this mistake if you add "-Wformat=2". It will warn: "warning: format not a string literal and no format arguments" -- ____________________________________________________________ Sean McBride, B. Eng s...@rogue-research.com Rogue Research www.rogue-research.com Mac Software Developer Montréal, Québec, Canada _______________________________________________ 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