• 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: Clark Cox <email@hidden>
  • Date: Sun, 28 Mar 2004 14:03:15 -0500

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

[demime 0.98b removed an attachment of type application/pkcs7-signature which had a name of smime.p7s]
_______________________________________________
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.


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

  • Prev by Date: Re: Simple Xcode output-format question
  • Next by Date: Text Navigation - Smart Home
  • Previous by thread: Re: Simple Xcode output-format question
  • Next by thread: Re: Simple Xcode output-format question
  • Index(es):
    • Date
    • Thread