Re: How to use NSLog in an Xcode Framework project's Unit Test Bundle target
Re: How to use NSLog in an Xcode Framework project's Unit Test Bundle target
- Subject: Re: How to use NSLog in an Xcode Framework project's Unit Test Bundle target
- From: Todd Ditchendorf <email@hidden>
- Date: Sun, 18 Dec 2005 23:20:17 -0600
A helpful Cocoa developer answered my question off the list, so I
thought I'd post it back here.
I'm sure many of you realize this, but I didn't... you can view log
output in the 'Build Results' window. At the bottom of the top half
of the Build Results window, just above the split pane divider, there
are four small square toggle buttons. The third button makes log
messages display in the output below.
Todd Ditchendorf
On Dec 18, 2005, at 8:43 PM, Todd Ditchendorf wrote:
Dear list,
I'm creating my first Cocoa Framework using Xcode. When I created the
project I chose the 'Cocoa Framework' project type.
I have two targets... the Framework target that was setup for me
automatically by Xcode, and another 'Cocoa Unit Test Bundle' target
that I created myself. I am able to build the framework and run the
tests no problem. Both targets seem to work fine.
The only thing is that calling NSLog in either the test case code
or in the framework code that gets executed by the test case code
does not seem to produce log output anywhere. There's no run log, I
don't know if that is because this is a Framework project or because
the target I'm running is a Test Case Target.
Can anyone help me figure out how to log messages in this situation?
Preferably using NSLog.
I also killed a couple of hours trying to get Log4Cocoa up and
running, but although I am familiar with Log4J (and like it) I can't
find a single piece of documentation about how to configure
Log4Cocoa. Can you use the XML or properties file formats that Log4J
offers? Any pointers to Log4Cocoa info would be greatly appreciated.
Thanks,
Todd Ditchendorf
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden
Todd Ditchendorf
email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden