• 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: Simple Xcode output-format question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Simple Xcode output-format question


  • Subject: Re: Simple Xcode output-format question
  • From: "Frederick C. Lee" <email@hidden>
  • Date: Mon, 29 Mar 2004 08:12:22 -0800

Very Good!
I suppose you can also employ this as an override or 'catalog' to NSLog, to change its behavior?
I'm a beginner Objective-C coder...and the technique is intriguing!


Thanks (Xcoders) for the idea(s)!

Ric.

On Mar 28, 2004, at 11:03 AM, Clark Cox wrote:

I assume that you're using NSLog. If so, then I do not believe that there is anything that you can do to get rid of that information. NSLog is for logging information, not for general output. If you just want some general output to stdio, then use printf and/or fprintf.

You can do something like:

void MyOutput(NSString *format, ...)
{
  va_list  args;
  va_start(args, format);

{
NSString *output = [[NSString alloc] initWithFormat: format arguments: args];
puts([output UTF8String]);
[output release];
}


  va_end(args);
}

and then call it as you would NSLog


On Mar 28, 2004, at 12:45, Frederick C. Lee wrote:

I get the following prefix on my output:

2004-03-28 09:39:49.437 myFirstCocoa[598]

How can I get rid of the date/time stamp?

It's a waste of space.

Thanks.

Ric.
_______________________________________________
xcode-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/xcode-users
Do not post admin requests to the list. They will be ignored.




-- Clark S. Cox III email@hidden http://homepage.mac.com/clarkcox3/ http://homepage.mac.com/clarkcox3/blog/B1196589870/index.html
_______________________________________________
xcode-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/xcode-users
Do not post admin requests to the list. They will be ignored.


References: 
 >Simple Xcode output-format question (From: "Frederick C. Lee" <email@hidden>)
 >Re: Simple Xcode output-format question (From: Clark Cox <email@hidden>)

  • Prev by Date: Re: Automagic version updates
  • Next by Date: Clearing Errors so as to continue building
  • Previous by thread: Re: Simple Xcode output-format question
  • Next by thread: Text Navigation - Smart Home
  • Index(es):
    • Date
    • Thread