• 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: How do start from scratch?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How do start from scratch?


  • Subject: Re: How do start from scratch?
  • From: Bob Ueland <email@hidden>
  • Date: Wed, 15 Aug 2007 05:39:56 -0700 (PDT)

Thanks for your answer. I did as was told (almost) but ran into a new problem. I did edit the main.m file in

Macintosh HD/Library/Application Support/Apple/Developer Tools/Project Templates/Command Line Utility/Foundation Tool/main.m

I emptied it and save it. But now Xcode seems unable to find the project name? Look what I mean. I've created project with name project11 and when I enter the HelloWorld program and run it, it executes correctly but here is the output.

[Session started at 2007-08-15 14:29:21 +0200.]
2007-08-15 14:29:21.227 test11[5801] Hello, World!

«PROJECTNAME» has exited with status 0.

Before I had
test11 has exited with status 0.

but now the generic name PROJECTNAME is used instead of my project name???

Any ideas???
Bob

----- Original Message ----
From: Jyrki Wahlstedt <email@hidden>
To: Bob Ueland <email@hidden>
Cc: email@hidden
Sent: Wednesday, August 15, 2007 1:10:26 PM
Subject: Re: How do start from scratch?


On 15.8.2007, at 13.57, Bob Ueland wrote:

> When I start a new project named Test2 and choose main.m I get a  
> non empty file that looks like this
>
> //
> //  main.m
> //  Test2
> //
> //  Created by Bob Ueland on 8/15/07.
> //  Copyright __MyCompanyName__ 2007. All rights reserved.
> //
>
> #import <Cocoa/Cocoa.h>
>
> int main(int argc, char *argv[])
> {
>     return NSApplicationMain(argc,  (const char **) argv);
> }
>
> But I want to start with an empty file, or a default of my own  
> choosing and not the one that Xcode provides. Is there any way to  
> do that.
>
> Thanks Bob
>

Hi,
have you checked, what difference it makes to choose the project  
type? This main.m file looks like Cocoa application. You can also  
play with project templates (this file is found in /Library/
Application\ Support/Apple/Developer\ Tools/Project\ Templates/
Application/Cocoa\ Application/main.m).

!
! Jyrki Wahlstedt
!    http://www.wahlstedt.fi/jyrki/
!
! Our life is no dream; but it ought to become one and perhaps will.
! PGP key ID: 0x139CC386 fingerprint: F355 B46F 026C B8C1 89C0  A780  
6366 EFD9 139C C386






Got a little couch potato?
Check out fun summer activities for kids.
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: How do start from scratch?
      • From: Jyrki Wahlstedt <email@hidden>
  • Prev by Date: Re: Linker issue: static lib which uses a dylib
  • Next by Date: Re: How do start from scratch?
  • Previous by thread: About Xcode Project Templates [was: How do start from scratch?]
  • Next by thread: Re: How do start from scratch?
  • Index(es):
    • Date
    • Thread