• 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: printf with "%@"
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: printf with "%@"


  • Subject: Re: printf with "%@"
  • From: Roland Silver <email@hidden>
  • Date: Fri, 11 Aug 2006 10:08:24 -0600

The trouble with NSLog is that it prints all that extra stuff before the actual formatted message. For example,
NSLog(@"sender=%@\n", sender);
logs this:
2006-08-11 10:06:29.545 EmulatorV4.17.04[1380] sender=<MenuItem: 0x449040 Ad Hoc Test>
in the Run log, rather than just:
sender=<MenuItem: 0x449040 Ad Hoc Test>
---------------------------------
On Aug 11, 2006, at 9:57 AM, Dirk Stegemann wrote:


Hi,

Am 11.08.2006 um 18:55 schrieb Roland Silver:

Dear list,
Is there a function/method available in the Cocoa API that's like printf, except for
allowing "%@" usage

What's wrong with NSLog()?


Best regards, Dirk Stegemann




_______________________________________________ Do not post admin requests to the list. They will be ignored. Cocoa-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
  • Follow-Ups:
    • Re: printf with "%@"
      • From: Dirk Stegemann <email@hidden>
References: 
 >printf with "%@" (From: Roland Silver <email@hidden>)
 >Re: printf with "%@" (From: Dirk Stegemann <email@hidden>)

  • Prev by Date: Re: printf with "%@"
  • Next by Date: Re: printf with "%@"
  • Previous by thread: Re: printf with "%@"
  • Next by thread: Re: printf with "%@"
  • Index(es):
    • Date
    • Thread