Re: Internet Config & Deleting FileMappings
Re: Internet Config & Deleting FileMappings
- Subject: Re: Internet Config & Deleting FileMappings
- From: Dan Crevier <email@hidden>
- Date: Wed, 10 Jul 2002 20:49:17 -0700
On 7/10/2002 10:15 AM, "Diggory Laycock" <email@hidden> wrote:
>
I am in the process of writing a pref-pane that means you can set
>
InternetConfig settings from System Preferences, rather than having to
>
set them from Internet Explorer.
>
>
Anyway - most of it is going well, but I have recently had the following
>
problem:
>
>
I have a class called MFInternetConfig that wraps the Carbon IC calls.
>
>
One of the methods is shown below:
>
(both theICInstance and mappingsHandle are valid instVars and work
>
happily in other IC-related methods.)
>
>
<code snipped>
>
>
As you can see from the following Log the methods appears to execute
>
properly, and no errors are given by the Carbon Calls. However the
>
mapping never gets deleted (as you can see from the two "number of
>
Mappings: " lines.)
>
>
Does anyone have any clues as to why this might be happening?
You need to call ICSetPrefHandle to write the data back into Internet
Config. ICDeleteMapEntry just deletes the entry from the handle in memory
without writing it back to disk.
Dan
_______________________________________________
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.