Mailing Lists: Apple Mailing Lists
Image of Mac OS face in stamp
JDirect to Carbon example?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

JDirect to Carbon example?



Could some kind soul provide me with an example of using JDirect on X to call Carbon routines? I don't know that I need syntactical help, but I can't find anything that describes what needs to be included in a project to get the Carbon interfaces to work. In this case I'm trying to use the Apple Event manager, so I'm doing something like this based on sample code written for MRJ 2.1:

import com.apple.mrj.macos.libraries.*;

public class AETest implements TypesConstants, AppleEventConstants, AEDataModelConstants,
ErrorConstants
{
public void foo()
{
AEAddressDescStruct targetAddrDesc = new AEAddressDescStruct();
...

The import works, but none of the Carbon symbols are resolved by the compiler. The old sample project had a Toolbox.jar with all of this stuff in it. What's the replacement? I haven't run across any docs or had any luck with grep.

On a more general note, is there a preferred approach for figuring out this kind of problem? This is the second time that I've struggled to locate particular library on X and I'm thinking there must be a better way.

Steve




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

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2011 Apple Inc. All rights reserved.