atom feed22 messages in net.java.dev.rococoa.usersRe: BOOL mapping issues
FromSent OnAttachments
Harald KuhrFeb 9, 2010 11:58 am 
Duncan McGregorFeb 9, 2010 12:04 pm 
Harald KuhrFeb 9, 2010 12:27 pm 
Harald KuhrFeb 9, 2010 12:37 pm.java
Duncan McGregorFeb 10, 2010 12:37 am 
Harald KuhrFeb 10, 2010 2:39 am.java
Harald KuhrFeb 17, 2010 7:25 am 
Duncan McGregorFeb 18, 2010 1:56 am 
Andrew ThompsonFeb 18, 2010 6:52 pm 
Harald KuhrFeb 19, 2010 6:49 am 
Harald KuhrFeb 19, 2010 7:23 am 
Harald KuhrFeb 19, 2010 10:37 am 
Harald KuhrFeb 19, 2010 12:13 pm 
Duncan McGregorFeb 19, 2010 2:04 pm 
Harald KuhrFeb 19, 2010 3:06 pm 
Andrew ThompsonFeb 20, 2010 8:02 am 
Harald KuhrFeb 20, 2010 1:12 pm 
Andrew ThompsonFeb 20, 2010 5:22 pm 
Duncan McGregorFeb 21, 2010 2:55 am 
Harald KuhrFeb 21, 2010 8:14 am 
Duncan McGregorFeb 21, 2010 8:40 am 
Duncan McGregorFeb 21, 2010 9:01 am 
Subject:Re: BOOL mapping issues
From:Harald Kuhr (hara@gmail.com)
Date:Feb 20, 2010 1:12:09 pm
List:net.java.dev.rococoa.users

On 20. feb. 2010, at 17.02, Andrew Thompson wrote:

On Feb 19, 2010, at 10:23 AM, Harald Kuhr wrote:

Notice that YES is 1, not -1. So there seems to be a mismatch between JNA's
booleans (-1 = TRUE, 0 = FALSE) and what Cocoa expects (1 = YES, 0 = NO).

Wonderful. And welcome to objective C programming. It's actually quite good fun,
you know :)

All I wanted was to create better looking/more integrated Java apps.. *sigh*

At least I can use it for hacking the iPhone in my spare time. ;-)

Jokes aside.. Do you know if it's always safe to use the mapping I proposed? At
least both bool and BOOL seems to use 1 rather than -1.

Best regards,