InternetConfig and Mac OS X - what are the valid keys?
InternetConfig and Mac OS X - what are the valid keys?
- Subject: InternetConfig and Mac OS X - what are the valid keys?
- From: Smith Kennedy <email@hidden>
- Date: Thu, 19 Jun 2003 00:42:26 -0600
Hi,
I have never done any work with InternetConfig before, so I apologize
if this is a really dumb question. But I have been trying to make the
following IC calls (code snippet):
// get the homepage URL
valLen = sizeof(valBuf);
if (noErr == (result = ICGetPref(icInst, kICWWWHomePage, &attr, (void
*)valBuf, &valLen)))
{
[_homepageLabel setStringValue:[NSString
stringWithCString:&valBuf[1]]];
}
// get the NTP server
valLen = sizeof(valBuf);
if (noErr == (result = ICGetPref(icInst, kICNTPHost, &attr, (void
*)valBuf, &valLen)))
{
[_ntpServerLabel setStringValue:[NSString
stringWithCString:&valBuf[1]]];
}
// get the default Web browser
valLen = sizeof(valBuf);
if (noErr == (result = ICGetPref(icInst, kICHelperDesc, &attr, (void
*)valBuf, &valLen)))
{
[_webBrowserLabel setStringValue:[NSString
stringWithCString:&valBuf[1]]];
}
The first one works (getting the homepage URL). The problem is that
the second query, looking for kICNTPHost, returns with an error -666
(unknown key), and the third one I just don't know how to phrase it.
And I haven't been able to find any IC sample code anywhere, but maybe
I am looking in the wrong places.
Is there a list of the supported keys for Mac OS X? How about some
sample code? I didn't find any on Apple's website, unless it is named
something unusual.
Thanks or any info,
Smith
_______________________________________________
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.