Hello everyone, Thanks everyone that have responded. There are quite a few interesting options, some of which I didn't know. It looks like A.M. suggestion is the most interesting in my case, since I can create my own function and #define it as NSLog (that is, assuming there are no symbol conflicts!)
Again, thanks for the help, -- Tito On 29 Jun 2010, at 18:01, "A.M." <age...@themactionfaction.com> wrote: > > On Jun 29, 2010, at 10:09 AM, Tito Ciuro wrote: > >> Hello, >> >> I have written a small app which gets launched when SuperDuper has finished >> backing up my data. The problem is that since NSLog() writes to stderr, >> SuperDuper treats this as an error. The advice I've been given is to >> redirect NSLog() to stdout. One possible solution I can think of is the >> following: >> >> void NSLogOut (NSString *someString) >> { >> [someString writeToFile: @"/dev/stdout" atomically: NO]; >> } > > Create your own logging function and then do > > #define NSLog MyLog > > for the relevant sources. > > Take a look at variadic macros for more information: > http://borkware.com/rants/agentm/mlog/ > > Cheers, > M _______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) 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: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com