> -----Original Message-----
> From: Eric [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, April 13, 2000 11:12 PM
> To: Palm Developer Forum
> Subject: how to protect the preference?
>
>
> I am writing a hack that not base on hackmaster. I found that
> when the hack
> is enabled, if user try to delete the hack. Then the preference will
> loss even the hack program protected not to be deleted.for the hack
> program, just set the prc to be protected, but how for the
> preference?
> I found that once user try to delete the prc, but fail due to the
> protection, but the prefenerce because no value? anyone know the
> solution?
> Thanks a lot!!!
>
When you use PrefGetAppPreferences()/PrefSetAppPreferences(), try specifying
a creatorID to Pref*AppPreferences that is different than the creatorID of
your hack.
Once you do this, if your hack is deleted and installed again, the
preference data will still persist. I think the only way to get rid of the
preference data is to do a hard reset, or manually to delete your apps'
record out of the system preference database.
This is the behavior I noticed on PalmOS 3.0 -- Pretty sneaky.
-Jeff Ishaq
Vanteon (formerly The Windward Group)
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palm.com/devzone/mailinglists.html