Re: Setting Network Preferences Programatically - Part 2
Re: Setting Network Preferences Programatically - Part 2
- Subject: Re: Setting Network Preferences Programatically - Part 2
- From: Nick Zitzmann <email@hidden>
- Date: Thu, 16 Oct 2003 23:22:39 -0700
On Thursday, October 16, 2003, at 10:24 PM, James Masasaki wrote:
Does SCF belong to Carbon?
No.
Is there a pure Cocoa/Objective-C implementation?
I haven't heard of any, but you might find more information on this in
the archives...
<
http://cocoa.mamasam.com/>
I would rather avoid using Carbon to set Network Preferences, but I
will if I have to.
You don't use Carbon to set the network preferences; you use
SystemConfiguration. Carbon and SystemConfiguration are two different
frameworks.
If not, how do I mix Carbon code in Cocoa?
Objective-C is a true superset of C, so anything you can do in C will
work in Objective-C. Since SystemConfiguration is a C framework, you
can just make regular C calls and they will work.
Nick Zitzmann
AIM/iChat: dragonsdontsleep
Check out my software page:
http://seiryu.home.comcast.net/
"I have always wished that my computer would be as easy to use as my
telephone. My wish has come true. I no longer know how to use my
telephone." - Bjarne Stroustrup
_______________________________________________
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.