Template Cocoa Template generated from Cannot NSLog

Joined
Oct 7, 2009
Messages
14
Reaction score
0
Points
1
Location
Singapore
I'm using Xcode 3.2.1 on my MacBook Pro

After XCode generate the Cocoa application, everything works great.
Blank window, just as expected.
But all my NSLog commands doesn't evoke any output from Terminal which didn't even pop out.

I realize the same situation when I generate the "Command Line Tool" template. when I click build, it actually created the command line utility but I have to later manually double click on the app to open the terminal manually.

With the Cocoa template, if I were to "double click" on the resulting app I will bring up the GUI application, but it seems the GUI cannot start the terminal :(

How can I give Xcode the right to open terminal ?
 
Joined
Dec 13, 2007
Messages
256
Reaction score
10
Points
18
Location
United States of America
Your Mac's Specs
2.1GHz MacBook with 4GB RAM, Mac OS X 10.6, iLife and iWork ‘09
You can make the console open by default in the Preferences under the Debugging section. For the On Start: option choose Show Console, and it will open automatically any time you Run or Debug.
 

Shop Amazon


Shop for your Apple, Mac, iPhone and other computer products on Amazon.
We are a participant in the Amazon Services LLC Associates Program, an affiliate program designed to provide a means for us to earn fees by linking to Amazon and affiliated sites.
Top