warning:assignment from distinct Objective-C type
warning:assignment from distinct Objective-C type
- Subject: warning:assignment from distinct Objective-C type
- From: David Blanton <email@hidden>
- Date: Wed, 1 Jul 2009 10:26:52 -0600
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 (email@hidden)
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:
This email sent to email@hidden