Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Availability Macros, errors in cocoa headers?




On Dec 30, 2004, at 11:40 PM, Sean McBride wrote:

Ricky Sharp (email@hidden) on Thu, Dec 30, 2004 07:08 PM said:

Also reproduced it here (10.3.7, Xcode 1.5). The animationEffect param
is of type NSAnimationEffect. But that type is only defined if
MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_3.

Thanks for confirming my sanity :)

Definitely file a bug about this as there should be some mechanism in

<rdar://3936074>

Well, at least things compile with -DMAC_OS_X_VERSION_MIN_REQUIRED=1020 -
DMAC_OS_X_VERSION_MAX_ALLOWED=1030.


But I still can't get my app to launch on 10.2. :(  I use several 10.3-
only things (bindings notably) but would like to at least get to main()
on 10.2 then bring up a Carbon alert.  I'm willing to forget about 10.0
and 10.1.

Shouldn't setting the above macros automatically weak link things that
need to be?

In 10.2 I see this in Console:

objc: failed objc_getClass(NSValueTransformer) for
PLWhenToStringTransformer->super_class
objc: please link appropriate classes in your program

Ack!


Don't forget that +initialize is called _before_ main, and since +initialize is usually where transformers are registered, you'll need to add runtime checking code to that routine (and not register the transformer on 10.2). You should then be able to get to main().




Glenn Andreas                      email@hidden 
 <http://www.gandreas.com/> oh my!
Mad, Bad, and Dangerous to Know

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/email@hidden

This email sent to email@hidden
References: 
 >Re: Availability Macros, errors in cocoa headers? (From: Ricky Sharp <email@hidden>)
 >Re: Availability Macros, errors in cocoa headers? (From: "Sean McBride" <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.