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

Value of the MAC_OS_X_VERSION_MIN_REQUIRED macro


  • Subject: Value of the MAC_OS_X_VERSION_MIN_REQUIRED macro
  • From: Ilya Kulakov <email@hidden>
  • Date: Sun, 21 Feb 2016 00:00:43 +0600

Hi,

I would like to add support for ARC's weaks to my framework that supports Mac OS X down to 10.6

My current solution is:

#if defined(MAC_OS_X_VERSION_MIN_REQUIRED) && MAC_OS_X_VERSION_MIN_REQUIRED >= 1070
    @property (weak) NSObject<SRValidatorDelegate> *delegate;
#else
    @property (assign) NSObject<SRValidatorDelegate> *delegate;
#endif

However, the value of MAC_OS_X_VERSION_MIN_REQUIRED is always 1070 despite of set Deployment Target (I compile on 10.11).
Why is it so and what solution could I use in my situation?

Best Regards,
Ilya Kulakov


_______________________________________________

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: Jean-Daniel Dupas <email@hidden>
  • Prev by Date: Re: Can an NSArray ever have a count of -1?
  • Next by Date: Re: Value of the MAC_OS_X_VERSION_MIN_REQUIRED macro
  • Previous by thread: Re: Can an NSArray ever have a count of -1?
  • Next by thread: Re: Value of the MAC_OS_X_VERSION_MIN_REQUIRED macro
  • Index(es):
    • Date
    • Thread