• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: "Format not a string literal and no format arguments"
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: "Format not a string literal and no format arguments"


  • Subject: Re: "Format not a string literal and no format arguments"
  • From: Quincey Morris <email@hidden>
  • Date: Sat, 29 Aug 2009 10:36:43 -0700

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 (email@hidden)

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:
This email sent to email@hidden


  • Follow-Ups:
    • Re: "Format not a string literal and no format arguments"
      • From: Peter Duniho <email@hidden>
    • Re: "Format not a string literal and no format arguments"
      • From: Jonathan del Strother <email@hidden>
References: 
 >"Format not a string literal and no format arguments" (From: Jonathan del Strother <email@hidden>)

  • Prev by Date: Re: Get error message about registered observers when Object receives dealloc message
  • Next by Date: Re: NSTextView moves when being resized ???
  • Previous by thread: "Format not a string literal and no format arguments"
  • Next by thread: Re: "Format not a string literal and no format arguments"
  • Index(es):
    • Date
    • Thread