On Aug 29, 2009, at 05:36, Jonathan del Strother wrote:
After upgrading to snow leopard & Xcode 3.2, I've starting getting
this warning on NSLogs -
NSLog(@"Hello"); // 'Format not a string literal and no format
arguments'
NSLog(@"Hello %@", name); // compiles fine
I must have some weird project setting somewhere since a new test
project didn't throw these warnings, but I can't see what it is. Any
suggestions?
This is addressed in the Snow Leopard Foundation release notes (under
NSString). This should now produce a warning:
NSString* hello = @"Hello";
NSLog (hello);
but this should not:
NSLog (@"Hello");
Is that what you're seeing?
_______________________________________________
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