• 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: David Reed <email@hidden>
  • Date: Sun, 18 Jul 2004 20:14:16 -0400

Hello,

I was just wondering, is there any way of building cocoa application without Xcode/IB?

You can create your GUI programmatically. It is not always easy and requires a great deal more code, but it can be done. I think you do always need at least a minimal MainMenu.nib though.

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 (*).

Then why are you trying to use Cocoa, let alone Mac OS X? The Mac is a visual, at least partially mouse-driven machine. If you can't or don't want to produce a GUI, write a console app with vi/emacs in the Terminal and let somebody else write a GUI wrapper if they want one.

Most of the tutorials on Internet are just not applicabable to 10.3.*'s Xcode/IB due to new names/features.

Read Apple's documentation, or get a good book on Cocoa that's been updated for Panther.

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.

You're not supposed to understand the internal format of nib files. Why would you want to? They're meant to be read by code and dealt with at a much higher level.

So I'm looking for some sample of Cocoa application (say HelloWorld) which is written without IB.

I don't know of any such applications (try Google). Writing a large, GUI Cocoa application without IB would be, to say the least, painful. I suggest you re-evaluate your approach or choose a different technology to develop for.

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.

You mean like good old HyperCard? Might want to look at REALBasic (I have no experience with it, but it might be what you're looking for). http://realsoftware.com/.

Ihar, no offense, but I think a lot of your problems are coming from lack of understanding of how Cocoa works and the whole system of Cocoa development. I would suggest you try reading some intro documentation on Apple's developer site, or go to your bookstore and get an beginner's book, and then take another look at what you're trying to do.

You're welcome to email me off-list if you have more questions.

Hope this helps you,
David.

--
David Reed | email@hidden | AIM/iChat: parmadil01
_______________________________________________
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: Jon Raphaelson <email@hidden>
References: 
 >cocoa app from scratch (From: "Ihar 'Philips' Filipau" <email@hidden>)

  • Prev by Date: Re: cocoa app from scratch
  • 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