• 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: UNIVERSAL_INTERFACES_VERSION equivalent on OSX.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: UNIVERSAL_INTERFACES_VERSION equivalent on OSX.


  • Subject: Re: UNIVERSAL_INTERFACES_VERSION equivalent on OSX.
  • From: Scott Tooker <email@hidden>
  • Date: Thu, 4 Aug 2005 10:23:52 -0700

I think there is a MAC_OS_X_VERSION_MIN_ALLOWED that you could use.

Remember that MACOSX_DEPLOYMENT_TARGET defines the minimum OS version you can run on, while the SDKROOT defines the maximum OS you can compile for. These two settings influence the various definitions in ConditionalMacros.h

Scott

On Aug 3, 2005, at 1:58 PM, John Mikros wrote:

I put a feature request for this and it came back as "Behaves correctly". (radar # 4166049)

I've seen some sample code that does this:

#if defined(MAC_OS_X_VERSION_10_4) && (MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_4)
if ( HISearchWindowShow != NULL) {
err = HISearchWindowShow(CFSTR("Cross-Development"), kNilOptions);
}
#endif


but the problem with that is that it means you can't set MAC_OS_X_VERSION_MAX_ALLOWED to an arbitrary OS X version. I guess it's the best we've got though.

On Aug 3, 2005, at 6:59 AM, Miklós Fazekas wrote:



Is there any preprocessor symbol i can use for determining the version of header i'm compiling against?!


For example the CR field in the MachineInformationPowerPC changed to CRRegister in the 10.4 and later SDK-s.
I'd like my code compiled on both 10.4 and 10.3 SDK's.
I'd like to write a code like:


#if OSX_HEADER_VERSION > MAX_OSX_VERSION_10_4
cr = ioInformation->machineState->CRRegister;
#else
cr = ioInformation->machineState->CR;
#endif

Having no better idea i'm using
defined(DEPRECATED_IN_MAC_OS_X_VERSION_10_4_AND_LATER)
for testing if my code compiles on 10.4 or later headers or not.

Is there a preprocessor define for such purpose, or shall i file a bug about that?!

Regards,
Miklós
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
40blizzard.com


This email sent to email@hidden



_______________________________________________ Do not post admin requests to the list. They will be ignored. Xcode-users mailing list (email@hidden) Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


_______________________________________________ Do not post admin requests to the list. They will be ignored. Xcode-users mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
References: 
 >UNIVERSAL_INTERFACES_VERSION equivalent on OSX. (From: Miklós Fazekas <email@hidden>)
 >Re: UNIVERSAL_INTERFACES_VERSION equivalent on OSX. (From: John Mikros <email@hidden>)

  • Prev by Date: Re: Debugging a PlugIn with XCode
  • Next by Date: Re: Template Problems
  • Previous by thread: Re: UNIVERSAL_INTERFACES_VERSION equivalent on OSX.
  • Next by thread: Subclass responsibility error
  • Index(es):
    • Date
    • Thread