On Fri, Sep 01, 2000 at 10:17:21AM -0700, David Fedor wrote:
> >One new known issue is that launchable databases are deleted (moved),
> >but the Launcher (in 3.3) says they aren't. Can anyone from Palm or
> >elsewhere tell me why (or what I need to do? Change the local ID?).
> Yes, this'll get tricky. The launcher has a cache of the applications and
> their icons so that it can be faster at displaying things, and those caches
> are implemented differently in 3.3 and 3.5, and in 3.5 it is hooked in to
> DmDeleteDatabase. So if you just prevent the actual DmDeleteDatabase from
> happening, the launcher won't know that the app went away, so it'll display
> its icon (I bet).
Nice to know Palm writes hacks, of course when Palm does something
like this it is called something like elegant programming :).
I definitely do a rename, so launcher might display the new name
instead.
As I noted 3.3 already does this (a webclip icon won't disappear).
I'll have to give it a try. Maybe I could get launcher to bypass my
preservation mechanism. If I rename a DB or change its type within an
app, Launcher should pick that up.
DmDeleteDatabase is only passed the LocalID, so I wonder about the
name.
> Perhaps you should head-patch DmDeleteDatabase to do a rename and then
> create a dummy db with the original name and attributes, which
> DmDeleteDatabase can then merrily dispose of? I don't know for sure if
> that'll do the right thing for the launcher or not. And in future OS
> releases the mechanisms have a good probability of being different again,
> since the current mechanism isn't ideal.
Name and how many attributes? Just the name? Type and createor? the
attributes themselves (launchable/stream/etc.?).
The problem is if it is using localid as the cache entry key, the only
way would be to move each record or resource to a new database, and I
don't know if detach/attach can do this type of thing.
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/