[Cocoa-sharp] Object.Retain()

C.J. Adams-Collier cjcollier at colliertech.org
Mon Sep 11 11:38:14 EDT 2006


Hmm... If you have the time to produce a patch that you think should get
into the code, and would not die or have an aneurysm if it didn't make
it in, you should do it.  IMHO.

I'm certainly not a Cocoa expert, though.  My ObjC is really quite
awful.  If you're looking for verification exclusively from a Cocoa
expert, keep looking ;)

Cheers,

C.J.

On Sun, 2006-10-09 at 15:19 -0400, Edward Carr wrote:
> This was more of a question for the Cocoa experts out there. I'm not sure
> that this should be done, which is why I was posing the question in the
> first place. It seems like it should be; I just would like a little
> verification first.
> 
> Edward Carr
> 
> -----Original Message-----
> From: C.J. Adams-Collier [mailto:cjcollier at colliertech.org] 
> Sent: Sunday, September 10, 2006 2:03 AM
> To: Edward Carr
> Cc: cocoa-sharp at lists.ximian.com
> Subject: Re: [Cocoa-sharp] Object.Retain()
> 
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> Memory management patches are good, so long as we ensure that the data
> isn't released before everyone is done with it.  Please submit a patch
> against SVN head.
> 
> Cheers,
> 
> C.J.
> 
> 
> Edward Carr wrote:
> > Here's a question for you...
> >
> > In the MonoDoc example, Retain() is called on a Cocoa.String on
> > line 338 of MonoDoc.cs to make sure that Cocoa doesn't release the
> > string before the .NET Framework is finished with it.
> >
> > My question is, shouldn't a Release be performed on this so that
> > the String isn't waiting until the application exits to be freed
> > up? I'm thinking that BrowserItem should implement the IDisposable
> > interface, and Release the "caption" string.
> >
> > What do you guys think?
> >
> > Edward Carr
> >
> >
> > _______________________________________________ Cocoa-sharp mailing
> > list Cocoa-sharp at lists.ximian.com
> > http://lists.ximian.com/mailman/listinfo/cocoa-sharp
> >
> 
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.2.4 (Darwin)
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
> 
> iD8DBQFFA6qSbS8rWWzCfqgRAijpAKCr7thvt57GPGoPb9zFTAt1E9eYogCdH3LW
> 44POTqjBM3bMGeq1eLcnOQQ=
> =VvjD
> -----END PGP SIGNATURE-----
> 
> 
> 
> 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 191 bytes
Desc: This is a digitally signed message part
Url : http://lists.ximian.com/pipermail/cocoa-sharp/attachments/20060911/70b5e402/attachment.bin 


More information about the Cocoa-sharp mailing list