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: Dynamically determine function ptr in CFM Carbon app?




On 14 Nov 2004, at 20:53, Ando Sonenblick wrote:

That's a pretty smart idea.

Know where I can get the jaguar CFM CarbonLib?

I don't have any apple CarbonLib on my Jaguar install?!

Have you tried installing one of the 10.2.x SDKs? That's pretty much what they are for.

Fred



I'd link against the jaguar version of CarbonLib and use CFBundle to obtain HIWindowChangeFeatures when it exists.

Fred



On 14 Nov 2004, at 19:53, Ando Sonenblick wrote:

Gang,

I make this call in my CFM app (that staticly includes the CarbonLib in System/Library/CFMSupport):

	HIWindowChangeFeatures(window, 0, kWindowIsOpaque);

This is fine on Panther, but trying to run my app on jaguar results in the system saying the app cannot run because of a shared library error and then indicates HIWindowChangeFeatures as the culprit.

Since I really don't want to have two binaries, one for jaguar and one for panther, is there a way for me to dynamically get the address of HIChangeWindowFeatures and if it is available call it, and if not skip calling it?

Can I do something like LoadFrameworkBundle/CFBundleGetFunctionPointerForName on CarbonLib?




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

This email sent to email@hidden
References: 
 >Dynamically determine function ptr in CFM Carbon app? (From: Ando Sonenblick <email@hidden>)
 >Re: Dynamically determine function ptr in CFM Carbon app? (From: Frederick Cheung <email@hidden>)
 >Re: Dynamically determine function ptr in CFM Carbon app? (From: Ando Sonenblick <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.