Re: Using new stuff
Re: Using new stuff
- Subject: Re: Using new stuff
- From: Chris Hanson <email@hidden>
- Date: Fri, 18 Nov 2016 22:34:56 -0800
On Nov 17, 2016, at 7:47 PM, Gerriet M. Denkmann <email@hidden> wrote:
One question: this option seems to be around for almost 2 years - why is it not widely known? And why is it not set as default in Xcode?
One shouldn’t necessarily want a warning for any use of an API newer than your deployment target. That would discourage people from using the API, instead of just checking whether the system supports the API.
For example, you probably don’t want to get a warning from code like this: if (systemVersion >= systemVersionSierra) { DoSomethingNewInSierra(); // API that has Sierra+ availability } else { DoSomethingElse(); // something that works on an older OS
}
You would only want a warning if you weren’t checking the system version before calling the API. However, determining whether that check has indeed occurred is actually quite difficult.
-- Chris
|
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden