JNI wrapper for NSSavePanel

Steve Hannah steve at weblite.ca
Sat Oct 6 14:08:49 PDT 2012


Hi all,

I'm trying create a JNI wrapper function for NSSavePanel.   I'm trying to
figure out why it causes a crash with EXC_BAD_ACCESS if I wrap the method
with JNF_COCOA_ENTER(env) and JNF_COCOA_EXIT(env), but works fine if I just
wrap it in @autoreleasepool {}.

I have posted source for both versions of the method at
https://gist.github.com/3846116.

Can anyone give me some pointers on where I'm going wrong.  I suspect that
I'm using JNF_COCOA_ENTER/EXIT improperly.

Thanks for any responses.

-Steve

-- 
Steve Hannah
Web Lite Solutions Corp.


More information about the macosx-port-dev mailing list