Re: Quinn's ICconfig: setting News Server
Re: Quinn's ICconfig: setting News Server
- Subject: Re: Quinn's ICconfig: setting News Server
- From: Jens Bauer <email@hidden>
- Date: Thu, 16 May 2002 18:07:35 +0200
Hi Paul,
First of all: This is a known problem.
I've reported this as a bug.
What I think is happening, is that the key we use for getting/setting
isn't the same key as the one used by the System Preferences control panel.
-I may not be right about this, I think Quinn knows more about the exact
problem.
If you use the kICNNTPHost define, you will be able to set a value and
retrieve the one that you've set, but you won't get the one from the
control panel.
All the other keys seem to work perfectly.
On Thu, 16 May, 2002, Paul Popovich <email@hidden> wrote:
>
Hey Guys,
>
I'm using InternetConfig API to set up email/news properties.
>
Two questions:
>
>
1. I'm getting everything set successfully except the NNTP server (News
>
server),
>
>
//get a news server value from my list
>
CFDictionaryGetValueIfPresent(pList, CFSTR("newsServer"),
>
&newsserver);
>
>
//convert to pascal string
>
plStringPtr = CFStringGetPascalStringPtr(newsserver, 0);
>
>
//get string length
>
size = PLstrlen(plStringPtr);
>
>
//set the actual value
>
osErr = ICSetPref(icInstance, kICNNTPHost, kICAttrNoChange,
>
plStringPtr, size);
>
if (osErr == noErr)
>
{
>
CFShow(CFSTR("successfully set News Server") );
>
}
>
>
It doesn't give me a 'false' here, so it seems like everything is fine,
>
but the value never
>
reflects in the Internet config panel. Username and password are there,
>
but News server
>
itself is strangely absent.
>
>
>
2. Quinn's Internet Config appears to set up successfully the general IC
>
panel, and
>
Internet Explorer is reading from it just fine. But the default mail
>
client does not appear to.
>
Is that a valid behavior, or is there a bug in my email client?
Love,
Jens
--
Jens Bauer, Faster Software.
-Let's make the World better, shall we ?
_______________________________________________
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.