• 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
Re: Value of the MAC_OS_X_VERSION_MIN_REQUIRED macro
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Value of the MAC_OS_X_VERSION_MIN_REQUIRED macro
      • From: Ilya Kulakov <email@hidden>
References: 
 >Value of the MAC_OS_X_VERSION_MIN_REQUIRED macro (From: Ilya Kulakov <email@hidden>)
 >Re: Value of the MAC_OS_X_VERSION_MIN_REQUIRED macro (From: Jean-Daniel Dupas <email@hidden>)
 >Re: Value of the MAC_OS_X_VERSION_MIN_REQUIRED macro (From: Ilya Kulakov <email@hidden>)

  • Prev by Date: Re: Value of the MAC_OS_X_VERSION_MIN_REQUIRED macro
  • Next by Date: Re: Value of the MAC_OS_X_VERSION_MIN_REQUIRED macro
  • Previous by thread: Re: Value of the MAC_OS_X_VERSION_MIN_REQUIRED macro
  • Next by thread: Re: Value of the MAC_OS_X_VERSION_MIN_REQUIRED macro
  • Index(es):
    • Date
    • Thread