Re: To modify a property

2005-12-02 Thread Jon Trowbridge
On Fri, 2005-12-02 at 21:22 +0100, Norvig Norvig wrote:
> It is possible to modify a property of an element?

Yes, but only if the property is explicitly marked as being modifiable.
You can do this by setting the Beagle.Property.IsMutable property to
true before adding it to a Beagle.Indexable.

There is only one extra rule: if a property a marked as mutable, it must
have a unique Key.  This simplifies things considerably, since you can
then reference the property uniquely (by its key value) when you want to
change it later.

-J


___
Dashboard-hackers mailing list
Dashboard-hackers@gnome.org
http://mail.gnome.org/mailman/listinfo/dashboard-hackers


Re: To modify a property

2005-12-02 Thread Joe Shaw
Hi,

On Fri, 2005-12-02 at 21:22 +0100, Norvig Norvig wrote:
> It is possible to modify a property of an element?
> 
> For example, in a photography we added  "numberOfViewer" and from
> another application to be able to modify it.

Properties are stored in the index, and the index cannot be changed
without refiltering and reindexing the file.  So adding properties like
this to the index are generally not a great idea.

Joe

___
Dashboard-hackers mailing list
Dashboard-hackers@gnome.org
http://mail.gnome.org/mailman/listinfo/dashboard-hackers


To modify a property

2005-12-02 Thread Norvig Norvig
It is possible to modify a property of an element?

For example, in a photography we added  "numberOfViewer" and from
another application to be able to modify it.

Bye.
___
Dashboard-hackers mailing list
Dashboard-hackers@gnome.org
http://mail.gnome.org/mailman/listinfo/dashboard-hackers