• 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
InternetConfig and Mac OS X - what are the valid keys?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Prev by Date: Re: Safari and Helper Applications
  • Next by Date: Re: no route to host with ipv6?
  • Previous by thread: Re: Safari and Helper Applications
  • Next by thread: Proxy Server Authentication
  • Index(es):
    • Date
    • Thread