Re: Rendezvous not resolving on Panther, when compiled on Panther
Re: Rendezvous not resolving on Panther, when compiled on Panther
- Subject: Re: Rendezvous not resolving on Panther, when compiled on Panther
- From: mmalcolm crawford <email@hidden>
- Date: Mon, 3 Nov 2003 02:47:03 -0800
On Nov 3, 2003, at 2:12 AM, Phil Barrett wrote:
The NSNetService passed to the didFindService callback has to be a
temporary, so retaining it for future use makes sense. But why it
works on
Jaguar, and why the code compiled on Jaguar works on Panther, remains a
mystery.
"NSNetServiceBrowser
NSNetServiceBrowser now autoreleases the NSNetService objects you
receive on the delegate methods. Applications linked on Jaguar but
running on Panther will continue to leak, but Panther applications will
have to retain these if necessary."
<file:///Developer/Documentation/ReleaseNotes/Cocoa/Foundation.html>
The example here:
<
http://developer.apple.com/documentation/Cocoa/Conceptual/NetServices/
Tasks/BrowsingForServices.html>
does show found services being added to an array (implicit retain), but
does not make explicit that the service should be retained. I think
from normal memory management conventions you might expect to have to
retain it? Perhaps a sentence could be added to the documentation,
though?
mmalc
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.