removeItemAtPath in 10.7
removeItemAtPath in 10.7
- Subject: removeItemAtPath in 10.7
- From: sqwarqDev <email@hidden>
- Date: Wed, 26 Aug 2015 22:11:27 +0700
I built my app in Xcode 6.4 on 10.10.5.
Runs without issue on Yosemite and Mavericks. However, when I boot into Lion 10.7, I get an “unrecognized selector” error on the “removeItemAtPath” line. Here’s the snippet"
NSError *err;
int i;
for (i=0; i < offendersList.count; i++)
{
NSString *thisPath = offendersList[i];
[[NSFileManager defaultManager] removeItemAtPath:thisPath error:&err];
if (!err)
{
//blah blah
Anybody got any idea why this is objectionable in Lion but not in Mavericks +? The headers indicate removeItemAtPath is good to go from 10.5 onwards.
_______________________________________________
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