Re: Object Store Coordinator and User Info – Is this Dangerous?
Re: Object Store Coordinator and User Info – Is this Dangerous?
- Subject: Re: Object Store Coordinator and User Info – Is this Dangerous?
- From: Peter Vandoros <email@hidden>
- Date: Wed, 29 Oct 2008 11:40:52 +1100
Im not sure if it is safe or not, but i would lock/unlock around the
call to the setUserInfoForKey() method.
Regards
Peter
On 29/10/2008, at 11:36 AM, Andrew Lindesay wrote:
Hello;
I want to put some data into the user info of an object store co-
ordinator and then pull it out again in notifications.
ec.lock();
try
{
ec.rootObjectStore().setUserInfoForKey(xyz,"foobar");
try
{
// do some editing context foo here!
}
finally { ec.rootObjectStore().setUserInfoForKey(null,"foobar");
}
finally { ec.unlock(); }
That should be safe should it not or am I playing with fire?
cheers.
___
Andrew Lindesay
www.lindesay.co.nz
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden
--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
Peter Vandoros
Software Engineer
Etech Group Pty Ltd
Level 3/21 Victoria St
Melbourne VIC 3000
Australia
Ph: +61 3 9639 9677
Fax: +61 3 9639 9577
----------------------------------
IMPORTANT: This e-mail message and any attachments are confidential
and may be privileged. If received in error, please reply to this
message and destroy all copies and any attachments. You should check
this message and any attachments for viruses or defects. Our liability
is limited to resupplying any affected message or attachments. For
more information about Etech Group, please visit us at http://www.etechgroup.com.au
.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden