“Using SDK-Based Development” explains how to use weakly linked classes, methods, and functions ...
I have used this e.g.
if ([NSByteCountFormatter class]) {
...
}
Is there any way to detect supported options e.g.
NSRegularExpressionSearch
The search string is treated as an ICU-compatible regular expression.
If set, no other options can apply except NSCaseInsensitiveSearch and NSAnchoredSearch.
You can use this option only with the rangeOfString:... methods and stringByReplacingOccurrencesOfString:withString:options:range:.
Available in OS X v10.7 and later.