In other words, remove the parens.
On 22/07/2008, at 4:23 PM, Michael Swan wrote:
So I have done the standard Google search and clean all targets but neither has helped. I have the following two lines of code:NSLog(@"array count = %i",[array count]); // This works just fineNSString *string = [NSString stringWithFormat:(@"array count = %i", [array count])]; // This gives the warning "passing argument 1 of 'stringWithFormat:' makes pointer from integer without a cast"Has something happened to NSString to mess it up or am I just missing something really obvious here?Thanks, Mike Swan"Change itself is not painful it is resistance to change that causes pain."_______________________________________________ Cocoa-dev mailing list ([email protected]) 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/ardnopes%40yahoo.com This email sent to [EMAIL PROTECTED]
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________ Cocoa-dev mailing list ([email protected]) 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 [EMAIL PROTECTED]
