rococoa

Invalid memory access of location with Rococoa

I've been trying to code a simple screenshot application using rococoa (java to osx cocoa api library), and managed to get as far as actually taking the screenshot, and then saving it to a file. Unfortunately, once in a while, the application fails with an 'Invalid memory access of location...' error. I'm assuming this is due to somethin...

Adding to the java.library.path or jna.library.path on OSX

I am trying to get Rococoa set up in order to attempt to incorporate a simple Cocoa widget into my java application, but the instruction tell me to add their bin directory to my jna.library.path variable but I do not know how to find this on OSX. How would I do this? ...

Adding something to jna.library.path on OSX

I need to added a bin directory to jna.library.path to get Rococoa working on OSX but I can't seem to figure out how to do so. Inside java when I call System.getProperty("jna.library.path"); it returns null so this won't give me a clue about where to place the bin directory. Any ideas? ...

Newbie Rococoa user trying to get IKPictureTaker working

I am trying to get the IKPicutreTaker Cocoa widget to work under Rococoa and I am getting an error I don't quite understand. Here is a link to the IKPicutreTaker docs: http://developer.apple.com/Mac/library/documentation/GraphicsImaging/Reference/IKImagePicker%5FClass/IKImagePicker%5FReference.html#//apple%5Fref/occ/clm/IKPictureTaker/...

Is IKPictureChooser widget not supported by Rococoa?

I am trying to get the IKPictureChooser widget to work with Rococoa but every time I run the code I get a null pointer exception at the call to createClass IKPictureTaker. Here is my code: interface IKPictureTaker extends NSObject { public static final _Class CLASS = Rococoa.createClass("IKPictureTaker",_Class.class); public...

Trouble deciphering java class not visible from class loader error.

I am trying to write some java code that will code the will get the Cocoa IKPictureTaker widget to load using Rococoa. I feel like I am getting closer now but I am getting an error and I am not quite sure why it is occurring. The error that I am getting is this: Exception in thread "main" java.lang.ExceptionInInitializerError at IKPic...

Calling Obj-C CoreFoundation functions from JNA with Rococoa

Hi, I'm using Rococoa in a Java project and I am a newbie with JNA. I need to cast a NSURL object to its CFURLRef equivalent and pass it to a low-level C function in CoreFoundation (to create a CFBundle). I can't figure out how to cast a Rococoa NSObject or ID to a JNA Structure reference. Any hints? Thanks. François ...