KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
Does NSLog() have variants that print without the time and date stamps, and the automatic newline? Thanks. Now with following code, I can print NSString, cString, or objects: #import <Foundation/Foundation.h> #import <stdio.h> int main (int argc, const char * argv[]) { NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init]; NSString *s = @"Hello, World!"; NSDate *today = [NSDate date]; NSLog(@"%@", s); printf("%s at %s", [s UTF8String], [[today description] UTF8String]); [pool drain]; return 0; }
Tags (comma-separated)
Save Edits
Cancel