On Feb 24, 2009, at 12:53 PM, Gustavo Pizano wrote:

Hello all.

Well, I was able to save the data I wanted to save,

Woo hoo! Success! Yipee thar be data in the database!

now I know there is an object in the session()editingContext, I used that one so far, but what to do next, should I dispose that object?

Why? Do you not need it anymore? Is it taking up too much memory?

keep it, why yes why no?, if I should delete it, how to, using the dispose() method?

Yes, if you dispose of the editingContext it will make any EOs in the EC available for Garbage Collection, but once your session times out, the EC will get disposed of automatically.

Gustavo, you are over thinking WO. WO (and Java) deal with most of these kind of housekeeping things for you. Need an object? Create it or Fetch it. Use it every which way you want. When you're done, save it to the DB if needed. Once that's done there's really no need to actually dispose of the EO unless it is getting in the way.

Dave
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to