PLAIN Objective-C template for XCode?

Post: #1
hi, folks... I'm working through Kochan's "Programming in Objective-C" which I began to read a while back, but only now obtained my own copy. I've noticed even in the end of chapter 3 that when I try to define a class "Point" that the best-workaround-template selection Cocoa Application already has some CoreServices classes bound in the target, including a type called Point in mactypes.h ...

Well, I do not really know XCode very well, nor how to dissect what is going on here, so I'm wondering if I could solicit someone here to make as simple a vanilla Objective-C template as possible.

Something similar to the "standard tool" but "objective-c tool" that just deals with the console.

I think you know what I mean... Just a few steps away from typing gcc at the terminal. I will figure out XCode later :/
Quote this message in a reply
Posts: 102
Joined: 2005.01
Post: #2
just use the "empty project" template and add what you need
Quote this message in a reply
Post: #3
Coin Wrote:just use the "empty project" template and add what you need

there are two snags with this..

1) I have not had much luck with empty projects. Once you start adding targets, it starts adding things I don't think are necessary. For example, I just started an empty project, added a Cocoa command line tool (closest I could find to "objective C command line tool") and once I compiled a simple hello world program, it started precompiling the AppKit framework. Now I know this is not necessary to print out a string to a terminal...

2) I'm running through a ton of small examples, so in the end a template is a time saver anyway. Going through 5 steps to get an empty project in a buildable state is not an advantage over creating a new cocoa project and changing the imported headers. (and just ignoring the frameworks that are linked)
Quote this message in a reply
Posts: 111
Joined: 2002.06
Post: #4
Go with a Foundation Tool project. It's the project choice to create a command-line program in Objective C.
Quote this message in a reply
Post Reply 

Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  Objective C and Xcode for a former SuperCard user wal9000 24 8,565 Aug 2, 2007 11:22 AM
Last Post: AlStaffieri
  Trouble With Template Classes in C++ Nick 4 3,235 Nov 21, 2006 10:25 AM
Last Post: DoG
  Trouble with template classes ermitgilsukaru 2 2,692 Aug 11, 2006 02:00 PM
Last Post: ermitgilsukaru
  Template specialization of a method Fenris 4 3,140 Jul 11, 2005 02:45 PM
Last Post: OneSadCookie