Re: Application Crashing Under Mavericks, but not Yosemite (Entitlements Issue?)
Re: Application Crashing Under Mavericks, but not Yosemite (Entitlements Issue?)
- Subject: Re: Application Crashing Under Mavericks, but not Yosemite (Entitlements Issue?)
- From: Roland King <email@hidden>
- Date: Tue, 30 Dec 2014 09:06:32 +0800
>
> I'm currently trying to set up developer tools on my new, fresh Mavericks installation, but there is only one place where containsString: is being called, at least by my code, and its here:
>
> - (void)detectDistributionFamily {
> SBLinuxDistribution family = [SBUSBDevice distributionTypeForISOName:self.fileURL.absoluteString];
> switch (family) {
> case SBDistributionUbuntu:
> [self.distributionSelectorPopup selectItemWithTitle:@"Ubuntu"];
> break;
> case SBDistributionDebian:
> case SBDistributionTails:
> [self.distributionSelectorPopup selectItemWithTitle:@"Debian"];
> break;
> case SBDistributionUnknown:
> default:
> [self.distributionSelectorPopup selectItemWithTitle:@"Other"];
> break;
> }
>
> if ([[[self.fileURL path] lastPathComponent] containsString:@"+mac"]) {
> [self.isMacVersionCheckBox setState:NSOnState];
> } else {
> [self.isMacVersionCheckBox setState:NSOffState];
> }
> }
>
> There's nothing special about this code; I see no reason why it shouldn't work, but then again, this *is* programming. I'll take a look and investigate some more.
Where does containsString: come from by the way? The (n)ever-useful documentation on my box doesn’t have it, the header file for NSString tells me it does exist in 10.10 or iOS8. Apart from despairing again that documentation doesn’t appear to be driven from the header files, is it possible you have a category somewhere which is now interfering in a nasty way with a new selector?
_______________________________________________
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