NSLog format
NSLog format
- Subject: NSLog format
- From: Denis Stanton <email@hidden>
- Date: Sun, 2 Feb 2003 13:47:24 +1300
Hi
I'm stuck on a really basic piece of Obj-C syntax. Can you tell me how
to set up an NSLog message? I can find formal definitions that tell me
that I have to use stringWithFormat, but I can't find a single example
of a format for a string.
I have used one NSLog without a formatter that works and a very similar
one that doesn't
NSString *identifier = [tableColumn identifier];
NSLog( identifier );
This works. The identifier in this case is a "1". The NSLog message
writes out 1
NSString *myLabel = [(Block *)[blocks objectAtIndex: index]
lab];
NSLog( myLabel );
This does nothing. No line is produced. In Java I would write
System.out.println(" mylabel = " + myLabel)
How do I do the same in Obj-C?
Denis Stanton
email@hidden
Home: +64 9 533 0391
mobile: +64 21 1433622
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.