0

For example:

class NSNotificationCenter

method deaultCenter

xcode 8.0

OS 10.12

availability macOS (10.12 and later)

BUT

xcode 5.1.1

OS 10.8

availability OS X v10.0 and later

Why? Can I use "deaultCenter" in OS 10.8? And how can I know that some methods have the real "macOS (10.12 and later)" (crash in early OS version) availability?

Jay_Miao
  • 70
  • 7

1 Answers1

0

The current online copy of the defaultCenter documentation correctly says 10.0+. If Xcode 8 is not agreeing then it's a documentation bug. You can file a report at bugreport.apple.com

CRD
  • 52,522
  • 5
  • 70
  • 86
  • And [NSColor clearColor]?[clearColor](https://developer.apple.com/documentation/appkit/nscolor/1527217-clearcolor) – Jay_Miao Jul 12 '17 at 08:22
  • And [blackColor](https://developer.apple.com/documentation/appkit/nscolor/1527194-blackcolor?language=objc)... File a bug report, looks like Apple has made a mess. – CRD Jul 12 '17 at 08:57