Re: Conditional Compilation for 10.9/10.10...

2015-01-02 Thread Peters, Brandon
Quincy, Yeah, I got the two mixed up in the wording but you got the general theme. David Duncan, Thanks, I took out the #’s and just have both methods override. Thanks to all for viewing and helping. On Jan 2, 2015, at 11:14 AM, Quincey Morris mailto:quinceymor...@rivergatesoftware.com>> wr

Re: Conditional Compilation for 10.9/10.10...

2015-01-02 Thread Quincey Morris
On Jan 2, 2015, at 09:35 , Peters, Brandon wrote: > > 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_O

Re: Conditional Compilation for 10.9/10.10...

2015-01-02 Thread Steve Christensen
> #if MAC_OS_X_VERSION_MIN_REQUIRED <= MAC_OS_X_VERSION_10_9 This is a compile-time conditional so it will be true as long as you are building with a pre-10.10 deployment target, thus -constrainScrollPoint: will never be compiled in. You should put the #if … #endif around -constrainBoundsRect:

Re: Conditional Compilation for 10.9/10.10...

2015-01-02 Thread David Duncan
You can’t do this via conditional compilation unless you want to create specific versions of the application for 10.10 vs 10.9. If you want to support both versions in one application, implement both methods - typically the non-deprecated method will be called on OSes where it is supported and t

Conditional Compilation for 10.9/10.10...

2015-01-02 Thread Peters, Brandon
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 -(NSR