• 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
Conditional Compilation for 10.9/10.10...
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Conditional Compilation for 10.9/10.10...


  • Subject: Conditional Compilation for 10.9/10.10...
  • From: "Peters, Brandon" <email@hidden>
  • Date: Fri, 02 Jan 2015 17:35:52 +0000
  • Thread-topic: Conditional Compilation for 10.9/10.10...

Hello,

I am trying set up my application to do some condition compilation to address a deprecated method in 10.9 that has been replaced in 10.10 with another method. I am running Xcode Version 6.2 (6C86e, beta). Here is the code:

#if MAC_OS_X_VERSION_MIN_REQUIRED <= MAC_OS_X_VERSION_10_9

-(NSRect)constrainBoundsRect:(NSRect)proposedBounds {
	// code...
}

#else

-(NSPoint)constrainScrollPoint:(NSPoint)newOrigin {
	// code...
}
#endif

In the build settings, I set the target OS and base SDK to 10.10, but the method used in the program was still the first one when it should have been the second one. I figured out that MAC_OS_X_VERSION_MIN_REQUIRED stayed at ‘1090’ regardless of my build settings. Is there a way to set that to 1010? Or is there another way to perform the conditional compilation? Also, I noticed there was no macro MAC_OS_X_VERSION_10_10.

_______________________________________________

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: Conditional Compilation for 10.9/10.10...
      • From: Quincey Morris <email@hidden>
    • Re: Conditional Compilation for 10.9/10.10...
      • From: Steve Christensen <email@hidden>
    • Re: Conditional Compilation for 10.9/10.10...
      • From: David Duncan <email@hidden>
  • Prev by Date: Detecting face features using CoreImage or HSV space/Mask
  • Next by Date: Re: Conditional Compilation for 10.9/10.10...
  • Previous by thread: Re: Detecting face features using CoreImage or HSV space/Mask
  • Next by thread: Re: Conditional Compilation for 10.9/10.10...
  • Index(es):
    • Date
    • Thread