where to release a CF object thats retained by a cocoa object

2009-09-27 Thread Navneet Kumar
Hi, From a method in my AppController class I'm calling a function in another file as follows: In AppController in init method:- [self initialDriveList]; In AppController in initialDriveList method: //some code here [self volumeList]; // rest of the code here In AppController in volumeList

Re: where to release a CF object thats retained by a cocoa object

2009-09-27 Thread Jens Alfke
On Sep 27, 2009, at 10:11 AM, Navneet Kumar wrote: // Shall I do CFRelease(outputVolumeName); here? Yes. You have to call CFRelease on any reference you got via a xxCopyxx or xxCreatexx function. —Jens___ Cocoa-dev mailing list