Index updating

Chris Muller chris at funkyobjects.org
Sat Dec 10 19:03:14 UTC 2005


> I’ve got a MagmaCollection with objects that contain attribute #date 
> with assigned index. How to update index in case I change a date in an 
> object? Do I have to remove this object from the collection and put it 
> back again or is there any other way?

Hi Pavel, try MagmaSession>>#noteOldKeysFor:.  Just supply the object that has
the date you are about to change.  You have to do it *before* you change the
date in the object.  Magma will update the date index as part of that commit.

Cheers,
  Chris



More information about the Magma mailing list