I have searched and find nothing that helps with the subject line warning.

        in .h file


        NSMutableArray *m_sources;

        in .mm file

        if(m_sources != nil) [m_sources release];
        

        NSFileManager* defaultManager = [NSFileManager defaultManager];
        NSString* volumes = @"/Volumes";
        
        
m_sources = [volumes stringsByAppendingPaths:[defaultManager directoryContentsAtPath:volumes]];

        the warning comes at the above line

        [m_source retain];


note if I do not release / retain m_sources the program crashes with exec bad access


So if someone could point to the right direction ...

Thanks!
_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to