• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
'method' is partial: introduced in macOS 10.8
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

'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


  • Prev by Date: Re: Prioritizing drawing of the important stuff
  • Next by Date: How to ResolvingSymlinksInPath ?
  • Previous by thread: Re: Prioritizing drawing of the important stuff
  • Next by thread: How to ResolvingSymlinksInPath ?
  • Index(es):
    • Date
    • Thread