Re: Mac Newbie
Re: Mac Newbie
- Subject: Re: Mac Newbie
- From: Chaz McGarvey <email@hidden>
- Date: Sun, 1 Dec 2002 14:43:10 -0700
On Sunday, December 1, 2002, at 12:58 PM, Scott Minter wrote:
Hi,
I am a newbie to network programming on the Mac. I have been BSD
Socket programming using C and vi as my editor - yes it shows my age!
I am interested in using my new IMac's project builder, but I don't
know Progressive C. Would someone here know of a good place to start
learning how to write just plain C programs using project builder --
specifically I am about to write a new model of the "Rumor Routing"
protocol. Obviously I can just go to the "Terminal" window and gcc my
programs, but at some point I would like to progress. Anyone else
made this transition and would offer lessons learned?
Personally, I use BSD sockets for all my network programming needs in
both Cocoa (using Objective-C, which is what I think you meant, not
Progressive C) and "plain C programs" written for the command-line.
If you want to continue using BSD sockets, and don't mind writing
command-line programs, then the only thing you should do is switch from
vi to PB (Project Builder). PB is easy to learn how to use. To create
a plain C program, just go to New Project in the File menu and select
Standard Tool at the bottom of the list of available project types.
Then select where to put the project files and it will be created. Now
just edit your files and build and debug using commands from the menu
bar. I suggest just taking some time and playing with PB for a while.
It's got a good amount of features for its price IMHO, and it's not
much more complex than your standard text editor.
If you want your program to have a graphical user interface, the Cocoa
frameworks are what you would use. You will need to know Objective-C,
but it's not difficult and doesn't take long to learn if you already
have C and some OOP knowledge. [I supposed you could use Java with
Cocoa, too, but I haven't tried so I can't tell you how that is.] It's
possible to learn Objective-C from documents on Apple's site
(
http://www.apple.com/developer/), but I suggest you get ahold of a
Cocoa book if you really want to know it. Cocoa Programming for Mac OS
X by Aaron Hillegass is a good one. Search on Amazon or Barnes and
Noble. There are also plenty of web sites with tutorials and recipes;
just search, information can be easily found. And like I said, I use
BSD sockets in my Cocoa programs, as well. I could learn a new API,
but I don't really see any point. Sockets work just was well, and
they're more portable.
Whether you want a GUI or not, the next step I think is to play around
with Project Builder.
- Chaz
_______________________________________________
macnetworkprog mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/macnetworkprog
Do not post admin requests to the list. They will be ignored.
References: | |
| >Mac Newbie (From: Scott Minter <email@hidden>) |