• 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: Minimal cocoa application
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Minimal cocoa application


  • Subject: Re: Minimal cocoa application
  • From: Stefan Werner <email@hidden>
  • Date: Thu, 8 Mar 2007 12:37:12 +0100

Hi Mark,

On Mar 8, 2007, at 12:14 PM, Godwin, Mark R wrote:

I'm just getting started with Cocoa, and I've read a fair amount of
"getting started with Cocoa" guides. However, all of these tutorials,
etc., are wrapped up in X code wizards, and Interface Builder generated
stuff. I find this hides all of the nitty-gritty detail that I would
like to understand.

The good news is: you don't have to understand that detail. You can skip the nitty-gritty details and proceed straight to writing good software.


I like to know as much as possible what is happening
behind the scenes, before allowing a GUI to hide it away from me.

Ignore the man behind the curtain. It saves you a lot of work and allows Apple to make changes behind the scenes that won't break your programs.


What I would like to know is, what is the absolute minimum I need to do
to create a window in Cocoa, and fill it with, for instance, a WebView?
Ignoring menu bars and the like to start with. I'm assuming this is just
a few lines of ObjC code.

Just a window and a WebView in InterfraceBuilder. No source code required. It's a good thing!


I tried creating a NSWindow-derived class, and it seemed to init OK,
but I couldn't find out how to get it to display on the screen.

I want to avoid Nibs and Interface Builder and XCode, even though I
understand that is the sensible way to get things done with Cocoa.

I strongly advice against that. If you want to build your UI 100% programmatically, you'll save yourself a lot of trouble by using Carbon or wxWidgets instead. There is even a wxCocoa, if you really need Cocoa.


Stefan
_______________________________________________

Cocoa-dev mailing list (email@hidden)

Do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >Minimal cocoa application (From: "Godwin, Mark R" <email@hidden>)

  • Prev by Date: Re: alloc init thread safe?
  • Next by Date: Re: Minimal cocoa application
  • Previous by thread: Minimal cocoa application
  • Next by thread: Re: Minimal cocoa application
  • Index(es):
    • Date
    • Thread