> On Jan 27, 2016, at 6:40 AM, Gordo Cath <[email protected]> wrote:
> 
> InstallReceiveHandler, HIWindowGetProxyFSRef, etc...
> 
> Hi,
> under 64 bit when I go to link I get the normal undefined symbol link errors 
> so I did some digging and found out the symbols are actually there in the 
> system libraries only they are marked as 'private external'.    
> 
> It looks like when the particular libraries were built these functions were 
> marked as private externals (externally local to the library or groups of 
> libraries if I understand this), but apparently still there.   you can see 
> them with the nm command.
> 
> To that end I believe you can get to them directly by name and address by 
> setting up your own jump table ahead of time.  If I go that route and make 
> the call to them, will I be calling the real function? Is Apple still using 
> them in their underlying under the hood code?  I half suspect yes, otherwise, 
> why leave them there?
> 
> So my question is, if they are truly deprecated and not available under a 
> 'normal' link, why are they still around in the libraries in the 64 bit 
> distribution?

They may be available for various reasons, including (a) some higher-level 
Apple framework still needs them, or (b) we just forgot to remove them from the 
export list.

In any case, writing a Carbon app against the 64-bit API is not supported, and 
we reserve the right to break it at any time. For practical purposes, “writing 
a Carbon app” can be understood as “writing an app that uses WaitNextEvent or 
RunApplicationEventLoop or ReceiveNextEvent, and does _not_ use -[NSApplication 
run], to run its main event loop.”

There are _some_ Carbon API that are officially supported for 64-bit use in 
Cocoa apps. For example, the API for registering for a symbolic hotkey has no 
Cocoa equivalent, so you’re still free to use that, and we’ll make sure it 
keeps working. In general, though, we only support writing Cocoa apps for 
64-bit.

-eric


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Carbon-dev mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/carbon-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to