Package org.rococoa.cocoa.foundation

Examples of org.rococoa.cocoa.foundation.NSValue$_Class


        NSSize objc_msgSend(ID receiver, Selector selector, Object... args);
    }

    @Test public void test() throws Exception {
        NSSize aSize = new NSSize(1f, 3f);
        NSValue value = NSValue.CLASS.valueWithSize(aSize);
       
       
        Foundation.send(value.id(), Foundation.selector("sizeValue"), NSSize.class);
        NSSize size = value.sizeValue();
            // fails here with jna 3.0.6+ in Java 1.5, see StaticStructureReturnTest

        assertEquals(1.0, size.width.doubleValue(), 0.0001);
        assertEquals(3.0, size.height.doubleValue(), 0.0001);       
    }
View Full Code Here

TOP

Related Classes of org.rococoa.cocoa.foundation.NSValue$_Class

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.