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'sbooleans (-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? Atleast both bool and BOOL seems to use 1 rather than -1.