NSData across the bridge
NSData across the bridge
- Subject: NSData across the bridge
- From: Jim Rankin <email@hidden>
- Date: Mon, 29 Apr 2002 17:01:38 -0400
Hi.
I'm wrapping an Objective-C class to access it from Java across the
bridge. The Objective-C class, in turn, wraps Carbon file manager calls.
I would like to pass an NSData across the bridge from Objective-C to
Java. According to all the documentation I've found, this should work
as NSData is one of the wrapped Objective-C classes. The returned
NSData behaves fine in an all Objective-C environment. However, when I
return the NSData across the bridge and try to message it in Java, the
program terminates with "Trace/BPT trap". Alternatively, if I put the
same bytes into an NSString and return it across the bridge, there's no
problem.
Anyone encounter anything like this? Any idea what might be going
wrong? Do I need to do some kind of conversion to return a Java
com.apple.cocoa.foundation.NSData?
Thanks,
Jim Rankin
WebObjects/EOF/Cocoa/AppleScript Studio developer for hire
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.