• 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: Program structure
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Program structure


  • Subject: Re: Program structure
  • From: Scott Ellsworth <email@hidden>
  • Date: Thu, 2 Jun 2005 11:18:03 -0700


On Jun 2, 2005, at 10:15 AM, Paul Harvey wrote:

My current project -- the reason I'm going into Cocoa -- is a Bible viewing program. I already have a good working version that was built in REALBasic. It's available at www.hiddenfield.com. It's been downloaded more than 10,000 times and is used all over the world. I've had a great ride with REALBasic and It's a great tool but I am finding that its implementation of some basic Mac things, especially in the area of text-editing/manipulation/styling, is a major problem.

It's a good-sized project to start into Cocoa with, but I'm not a learner programmer... just a learner to Cocoa! I'd rather go into this with a goal that's challenging, yet brings great rewards when (I say 'when' not 'if'..!) I have managed to succeed at it.

Actually, it might be a rather imposing project to start Cocoa with. Big projects make a person unwilling to throw it all out and start over once their knowledge has improved.


I strongly, strongly recommend four or five one session projects. Each of these should do just one thing, but do it right. That way, you get facility with the tools, and a pretty good idea of what you do know. If nothing else, you will know whether you can generate code without a book in front of you.

For example:

Create a program with a button that sets some instance variables in MyDocument. Show their values on the screen via bindings
- our example was a program that rolled dice, then pushed the results, the individual rolls, the mean, the median, and the last dozen rolls, into various text fields and text areas.


Create some popup menus, based off arrays in MyDocument, and some instance variables to hold the current selection of the popup menus. Proceed as above.

Create an NSTableView, and show the results you formerly stuffed into an NSTextView into that table view instead

Repeat one of the above with a non-document based project.

Create a core data schema for the above. Populate it, then hook up your data.

We did the above in five sessions of an hour or two, and by the end, everyone had a pretty good idea of how bindings worked, why Accessorizer is cool, and how to read the Apple docs.

Scott
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >Re: Program structure (From: Paul Harvey <email@hidden>)

  • Prev by Date: Re: What's the nicest way to turn an NSDate into a time_t
  • Next by Date: Re: ASCII problem
  • Previous by thread: Re: Program structure
  • Next by thread: Re: Program structure
  • Index(es):
    • Date
    • Thread