Re: Value of the MAC_OS_X_VERSION_MIN_REQUIRED macro
Re: Value of the MAC_OS_X_VERSION_MIN_REQUIRED macro
- Subject: Re: Value of the MAC_OS_X_VERSION_MIN_REQUIRED macro
- From: Quincey Morris <email@hidden>
- Date: Sat, 20 Feb 2016 21:50:42 -0800
- Feedback-id: 167118m:167118agrif8a:167118sARTnelEis:SMTPCORP
On Feb 20, 2016, at 21:03 , Ilya Kulakov <email@hidden> wrote:
>
> There should be an ability to makes this decision in runtime I guess.
Well, there is, if you mean that you make the decision — -[NSProcessInfo isOperatingSystemAtLeastVersion:].
I’m not sure I understand, though, why you want to have this decision made. If you wrote code to make ‘assign’ (aka ‘unowned’) work in 10.6, that code — manual zeroing of the reference, I mean — will necessarily work in later versions, so why not just go with that unconditionally?
OTOH, if you have a good reason for wanting to use ‘weak’ instead, it seems to me that’s a good reason to withdraw support for 10.6**, or at least to have a separate build for clients that want to run on 10.6.
** I’m not sure I remember now, but didn’t 10.6.8 have support for zeroing weak references? If that’s so, you could just withdraw support for 10.6.7 or earlier, which shouldn't upset anyone greatly.
_______________________________________________
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