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: JNI types and usage newbie



On Thursday, April 29, 2004, at 08:57 PM, Greg Guerin wrote:

Ken Hawkins <email@hidden> wrote:

can anyone point me toward a good sight that describes JNi types and
how to use them, in particular jobject. for example...

You can't cast or otherwise convert a jobject to or from anything. A
jobject is an opaque reference. You can't copy anything into or out of a

The same is pretty much true for Cocoa isn't it?
I notice in Dmitry's example that all the NSwhatever is NSwhatever *
You have a pointer to an opaque Cocoa something.
Except the geometry stuff NSPoint or NSRect which I think are true 'C' type structs.
Although Cocoa Java wraps some additional methods with them.

From my usual biased viewpoint it's all int's, int's and more int's - JDirect or JNIDirect fodder.

Mike Hall <mikehall at spacestar dot net>
<http://www.spacestar.net/users/mikehall>
_______________________________________________
java-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/java-dev
Do not post admin requests to the list. They will be ignored.


References: 
 >Re: JNI types and usage newbie (From: Greg Guerin <email@hidden>)



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.