• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Release memory
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Release memory


  • Subject: Re: Release memory
  • From: Chuck Hill <email@hidden>
  • Date: Thu, 20 Jan 2005 09:50:12 -0800

I've never tried that. Do ec.revert() and deleteObject() still function correctly?

Chuck


On Jan 20, 2005, at 9:40 AM, Marcin Łukasiak wrote:

Sometimes it may be better to just disable registrering undo notifications in undoManager with:
editingContext.undoManager().disableUndoRegistration()


If you don't use undo's in your app then you can do this for all editingContexts just after their creation.
There is a method to set levels of undo which undo manager remembers (setLevelsOfUndo) but be aware because 0 means 'no limit' and this is default value.


On 2005-01-20, at 17:14, Chuck Hill wrote:

Deleting needs an undo manager. Better is to add ec.undoManager().removeAllActions() after (successful) calls to saveChanges(). This lets the EC continue to function and avoids carrying needless baggage (pre saved state) around.

try {
    ec.saveChanges();
    ec.undoManager().removeAllActions();
}
catch...

Chuck


On Jan 20, 2005, at 7:53 AM, James Seigel wrote:

To quote Dory, "LIttle red light going off".....I think there is a problem with setting that to null, or it already is, or it resets it to the default manager regardless. I believe what we did or considered, was mocking up a dummy undo manager.

But....I could be way off base here....it is thursday after all.

Cheers
James

On 20-Jan-05, at 8:30 AM, Stephane Guyot wrote:

Perhaps
you can add : setUndoManager(null) on your editingContext.

If the application doesn't need undo at  all, you can avoid any undo
overhead by setting the editing context's  undo manager to null with
setUndoManager.

Have a look at :
http://developer.apple.com/documentation/WebObjects/Reference/ API5.2/com
/webobjects/eocontrol/concepts/EOEditingContextConcepts.html



Hope this help

Stephane


_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
email@hidden


This email sent to email@hidden

--
Practical WebObjects - a book for intermediate WebObjects developers who want to increase their overall knowledge of WebObjects, or those who are trying to solve specific application development problems.
http://www.global-village.net/products/practical_webobjects




_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
email@hidden


This email sent to email@hidden



Marcin Łukasiak <email@hidden>

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
village.net


This email sent to email@hidden


--
Practical WebObjects - a book for intermediate WebObjects developers who want to increase their overall knowledge of WebObjects, or those who are trying to solve specific application development problems.
http://www.global-village.net/products/practical_webobjects




_______________________________________________
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


  • Follow-Ups:
    • Re: Release memory
      • From: Marcin Łukasiak <email@hidden>
References: 
 >Re: Release memory (From: Stephane Guyot <email@hidden>)
 >Re: Release memory (From: James Seigel <email@hidden>)
 >Re: Release memory (From: Chuck Hill <email@hidden>)
 >Re: Release memory (From: Marcin Łukasiak <email@hidden>)

  • Prev by Date: Re: Release memory
  • Next by Date: Date Math Question and Daylight Savings Time
  • Previous by thread: Re: Release memory
  • Next by thread: Re: Release memory
  • Index(es):
    • Date
    • Thread