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 (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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

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

Reply via email to