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: JDirect to Carbon example?



Steve Poole,
> 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

I'm not sure what you're trying to port here. If the old AppleEvent
Send/Receive sample I can give you my status.
For linkage, Struct's shouldn't really need any, only function calls. So
where you actually have the functions you would need something like...

public class AEDataModelFunctions {
static final String JDirect_MacOSX =
"/System/Library/Frameworks/ApplicationServices.framework/ApplicationService
s";
public static Object linkage = new
com.apple.mrj.jdirect.Linker(AEDataModelFunctions.class);

Not exactly the way I do it so not guaranteed to work. Heck, I won't
guarantee it to work if you do do it the way I do.
For testing AppleEvents make sure your MRJAppBuilder applications have good
settings for the CF signature and include the PkgInfo file. Without the
PkgInfo file AppleEvent processing will most likely get -600 process not
found errors. For the Send/Receive example I still ended up getting
time-outs, also lcks with java after runnng AppleScripts, both combined into
one bug report on ADC. Not sure really yet who's bug is involved but I
figured I'd file in case it's Apple's and they have more copious free time
than I do.
Pertinent to the sometimes missing PkgInfo file I am planning to post a
little hack later, drum roll please...

Mike Hall <email@hidden>
<http://www.spacestar.net/users/mikehall>




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.