Re: 4.5 question - _holdMe array trick
Re: 4.5 question - _holdMe array trick
- Subject: Re: 4.5 question - _holdMe array trick
- From: Ricardo Strausz <email@hidden>
- Date: Mon, 25 Aug 2003 16:17:16 -0500
It seems to me that "the trick" functions simply becouse the Array is
sending a retain call to the collected object...
I do not remember in 4.5, but in 5.2 the bridge takes care of
retain/release in the ObjC side and garbage-collect in the Java one
transparently, so, if you are getting a "collected" objects is becouse
there is a release call to it (may be an autorelease call);
there are basically two things to do:
or you find the extra release call
or you (leaking your memory) gives another retain call.
(of course the first one is the recommended one)
this do not depends on the collection class, so it will function also
with NSDictionary...
On jueves, agos 21, 2003, at 15:03 America/Mexico_City, Robert A.
Decker wrote:
We've found that if we occasionally have a problem with something being
collected out from underneath us, the problem is solved by sticking the
item in an NSArray. I assume this is a bridge issue.
Does anyone know if you can get the same fix with an NSDictionary?
thanks,
Robert A. Decker
http://www.robdecker.com/
_______________________________________________
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.
_______________________________________________
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.