Re: 4.5 question - _holdMe array trick
Re: 4.5 question - _holdMe array trick
- Subject: Re: 4.5 question - _holdMe array trick
- From: "Adam Chan" <email@hidden>
- Date: Thu, 21 Aug 2003 15:16:38 -0600
Do you mean some release(retain) issue?
If so yes adding an object to the NSArray(NSDictionary) will increase the
object's retain count by 1 thus prevent it from being released, but you can
simply put [myObj retain] instead directly (and remember to release it
later).
----- Original Message -----
From: "Robert A. Decker" <email@hidden>
To: "Web Objects Developer" <email@hidden>;
<email@hidden>
Sent: Thursday, August 21, 2003 2:03 PM
Subject: 4.5 question - _holdMe array trick
> 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?
_______________________________________________
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.