Re: printf with "%@"
Re: printf with "%@"
- Subject: Re: printf with "%@"
- From: Dirk Stegemann <email@hidden>
- Date: Fri, 11 Aug 2006 19:19:05 +0300
Hi,
Am 11.08.2006 um 19:08 schrieb Roland Silver:
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>
Ok; then you'll probably want to try something like this:
printf("sender = %s \n", [[sender description] cString]);
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