Ick! Public instance variables are an abomination. I hope that was
typo...
image.setTitle(newTitleForImage);
Ah... that's better. :-)
ec.saveChanges();
} finally {
ec.unlock();
}
Better safe than deadlocked (unlikely in this case but possible if you
keep the ec around and an exception is raised from saveChanges().
Chuck
}
I've become paranoid about locking all editing contexts but the
session's default editing context. Please correct me if I'm wrong to
suggest the above in this situation.
Aloha,
Art
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.
Progress is the mother of all problems.
- G. K. Chesterton
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.