• 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: Capturing NSLog in Leopard
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Capturing NSLog in Leopard


  • Subject: Re: Capturing NSLog in Leopard
  • From: Gerd Knops <email@hidden>
  • Date: Sat, 24 Nov 2007 16:39:27 -0600


On Nov 24, 2007, at 2:41 PM, Gerd Knops wrote:

Seems the old trick

	freopen([logPath fileSystemRepresentation],"a",stderr);

to catch NSLog output no longer works under Leopard. It catches anything written to stderr, but no NSLog output. Any ideas?

The point at which the above is executed is crucial. main() is to early, so is +load. Seems to work if done in [NSApplication init].

Gerd

_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: Capturing NSLog in Leopard
      • From: Gerd Knops <email@hidden>
References: 
 >Capturing NSLog in Leopard (From: Gerd Knops <email@hidden>)

  • Prev by Date: Re: Concurrent NSOperation
  • Next by Date: Re: DO: Local objects passed back from the other side: Leopard vs. earlier systems
  • Previous by thread: Capturing NSLog in Leopard
  • Next by thread: Re: Capturing NSLog in Leopard
  • Index(es):
    • Date
    • Thread