• 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: cocoa app from scratch
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: cocoa app from scratch


  • Subject: Re: cocoa app from scratch
  • From: Shalev NessAiver <email@hidden>
  • Date: Wed, 28 Jul 2004 19:55:42 -0400

[Ooooops, new as I am to this list, I hit Reply and replied only to the
poster and not to the whole list.]


I am pretty new to Cocoa too. At first I had great difficulty in
understanding some of the concepts (coming from a C/C++ background. The
sources I looked at seemed to spend a large amount of time on overall
design principles/components and very little time on how to actually do
anything. However, after coming back to it again and again, it finally
clicked. Now, all I do is think of something I want to do, check the
documentation, look up an example online and voila! It's amazing how
easy it is to do things now. Now I am using Cocoa almost exclusively.

Regarding the original question: I think it is possible to do most of
the programming within the actual code. However, some things will
probably still have to be done within Interface Builder - that's just
how Cocoa is set up. For things that don't require a GUI, the entire
Foundation frameworks don't use a GUI, only the App Kit does. Try
looking at the Foundation examples.

As for a "Hello World" app. Just open up Xcode, select new project and
select Tool>Foundation Tool. It creates a tool (ie. a non-GUI app) that
links against the Foundation framework. The main.m file included has a
simple "Hello World" inside of it.

- Shalev



On Jul 28, 2004, at 7:03 PM, Steven Harms wrote:

> Ihar,
>
> I believe that, like you, we are both in the early stages of learning
> Cocoa and would like to apply our experiences in other languages to
> make learning Cocoa easy.
>
> Part of the heuristic of 'how to learn' starts with an editor, a
> compiler, and "here is how you declare a variable" - we then move to
> conditionals, loops, objects etc. Without that education I felt very
> naked in the O'Reilly books.
>
> I read the first 15 chapters or so of Stephen Kochan's _Programming in
> Objective-C_ by SAMS press. I am now going through Hillegass' book
> and am very pleased (outside of the mail i sent moments ago!).
>
> Kochan's book gives enough familiarity in the basics to demystify a
> lot of the Cocoa work -- Hillegass does a very good job in building up
> the basics. I would recommend this path to the absolute beginner.
>
> Steven
>
>
> Ihar 'Philips' Filipau wrote:
>
>> Hello!
>>
>> I was just wondering, is there any way of building cocoa
>> application without Xcode/IB?
>>
>> I'm trying to learn this stuff by myself. But I'm not really
>> /visual/ programmer - and I'm getting bored of IB pretty fast. It
>> needs *way* *too* *much* mouse clicking. It's just impossible (*).
>> Most of the tutorials on Internet are just not applicabable to
>> 10.3.*'s Xcode/IB due to new names/features. And most of this
>> tutorial are just "click here, then here, then click here, then click
>> here, then here." In the end you are getting something - seems like
>> XML file insode of bundle, which is not that readable/understandable.
>> And you can only hope that this next "click here" exists in my
>> version of IB. As a total newbie it have been proven ver difficult.
>>
>> So I'm looking for some sample of Cocoa application (say
>> HelloWorld) which is written without IB.
>>
>> Any pointers to FAQs/RTFMs will be appreciated.
>>
>> Thanks in advance.
>>
>> (*) Yeah, normally I don't use mouse. At all. MacOS itsef user-wise
>> requires much less mouse waiving.
>>
>> P.S. I have had some experience with GTK's Glade and Borland's C++
>> Builder. Is there anything like GTK's Glade for Cocoa - what basicly
>> generates source code for given piece of GUI, which one (I'm
>> oversimplifying here) needs to call from main(). I need something I
>> can look into and understand what is going on.
>> _______________________________________________
>> cocoa-dev mailing list | email@hidden
>> Help/Unsubscribe/Archives:
>> http://www.lists.apple.com/mailman/listinfo/cocoa-dev
>> Do not post admin requests to the list. They will be ignored.
> _______________________________________________
> cocoa-dev mailing list | email@hidden
> Help/Unsubscribe/Archives:
> http://www.lists.apple.com/mailman/listinfo/cocoa-dev
> Do not post admin requests to the list. They will be ignored.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.


  • Follow-Ups:
    • Re: cocoa app from scratch
      • From: mmalcolm crawford <email@hidden>
    • Re: cocoa app from scratch
      • From: "b.bum" <email@hidden>
  • Prev by Date: Re: Confused with Chapter 7 in Hillegass' book (2nd ed.)
  • Next by Date: Re: cocoa app from scratch
  • Previous by thread: Re: cocoa app from scratch
  • Next by thread: Re: cocoa app from scratch
  • Index(es):
    • Date
    • Thread