'method' is partial: introduced in macOS 10.8
'method' is partial: introduced in macOS 10.8
- Subject: 'method' is partial: introduced in macOS 10.8
- From: Rick Mann <email@hidden>
- Date: Tue, 01 Nov 2016 22:19:56 -0700
I'm trying to build some I wrote last year (actually this is code in a library I used last year), and under Xcode 8 I'm getting warnings like these:
'objectForKeyedSubscript:' is partial: introduced in macOS 10.8
'objectForKeyedSubscript:' has been explicitly marked partial here
Explicitly redeclare 'objectForKeyedSubscript:' to silence this warning
The error occurs with the subscript on names[] below:
NSMutableDictionary *names = self.categoryNames;
NSMutableOrderedSet *categories = names[cacheKey];
I'm building on 10.12 and targeting 10.11. I don't see how to explicitly redeclare it, since it's on NSMutableDictionary. Do I have to do so in an extension? I don't understand. Why is this even a warning?
--
Rick Mann
email@hidden
_______________________________________________
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