Are there any circumstances other than a hard reset where "unsaved" 
preferences should be lost (or overwritten)? I'm seeing evidence of this 
in a new program I'm doing. Of potential interest is the fact that this 
app uses multiple sets of preferences (using the id parameter), each of 
which has different sizes.

Incidentally a documentation addendum: PrefGetAppPreferences returns an 
Int16 which is described as being "noPreferenceFound" if the preference 
resource is not found. Undocumented is the fact that if the resource IS 
found, the routine returns the version number of the preference (as set 
by the version parameter of PrefSetAppPreferences).

One more documentation addendum while I'm poking around: 
PrefSetAppPreferences will DELETE a preference if either the prefSize 
parameter is set to 0, or the prefs parameter is set to 0 (i.e., null 
pointer in the latter case).

Regards,

Steve Patt
President, Stevens Creek Software
  [EMAIL PROTECTED]
  http://www.stevenscreek.com

-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/tech/support/forums/

Reply via email to