• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
NSData across the bridge
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

References: 
 >CodeBase for Mac OS X (From: Bryan Rieger <email@hidden>)

  • Prev by Date: Is the versioning scheme broken in SharedFrameworks?
  • Next by Date: Re: How to deploy an App
  • Previous by thread: CodeBase for Mac OS X
  • Next by thread: *** malloc[8363]: error: Can't allocate region
  • Index(es):
    • Date
    • Thread