| From | Sent On | Attachments |
|---|---|---|
| Harald Kuhr | Feb 9, 2010 11:58 am | |
| Duncan McGregor | Feb 9, 2010 12:04 pm | |
| Harald Kuhr | Feb 9, 2010 12:27 pm | |
| Harald Kuhr | Feb 9, 2010 12:37 pm | .java |
| Duncan McGregor | Feb 10, 2010 12:37 am | |
| Harald Kuhr | Feb 10, 2010 2:39 am | .java |
| Harald Kuhr | Feb 17, 2010 7:25 am | |
| Duncan McGregor | Feb 18, 2010 1:56 am | |
| Andrew Thompson | Feb 18, 2010 6:52 pm | |
| Harald Kuhr | Feb 19, 2010 6:49 am | |
| Harald Kuhr | Feb 19, 2010 7:23 am | |
| Harald Kuhr | Feb 19, 2010 10:37 am | |
| Harald Kuhr | Feb 19, 2010 12:13 pm | |
| Duncan McGregor | Feb 19, 2010 2:04 pm | |
| Harald Kuhr | Feb 19, 2010 3:06 pm | |
| Andrew Thompson | Feb 20, 2010 8:02 am | |
| Harald Kuhr | Feb 20, 2010 1:12 pm | |
| Andrew Thompson | Feb 20, 2010 5:22 pm | |
| Duncan McGregor | Feb 21, 2010 2:55 am | |
| Harald Kuhr | Feb 21, 2010 8:14 am | |
| Duncan McGregor | Feb 21, 2010 8:40 am | |
| Duncan McGregor | Feb 21, 2010 9:01 am |
| Subject: | Re: BOOL mapping issues | |
|---|---|---|
| From: | Harald Kuhr (hara...@gmail.com) | |
| Date: | Feb 19, 2010 3:06:53 pm | |
| List: | net.java.dev.rococoa.users | |
Thanks Duncan,
On 19. feb. 2010, at 23.05, Duncan McGregor wrote:
My problem is, that I see your problem, but I don't believe it. Wouldn't every
BOOL method be failing if we needed a mapper?
Well.. Most of the time it will work, simply because all bitwise operators work
like in C, that is 0 is false, any other value is true (I believe most systems
defines TRUE to be -1 as that has all the bits set, while FALSE == 0 has no bits
set, but Cocoa defines BOOL YES to be 1 for some reason). But problem will arise
in special cases if someone tests for flag == YES for instance, and setHidden
seems to be one of these few special cases where -1 don't work.
That said, I've been out all day, and had half a bottle of wine after a 2 hour
bike ride this evening, so now probably isn't the time to think of the
consequences. I'd be very happy if you'd post your patch on the dev list and
I'll take a look when sometime over the weekend.
Hehe.. Sounds good! Looking forward to take my bik out for a spin, but guess
I'll have to wait a few months for the snow to disappear.. ;-)
Thanks for all your help - it's good to see getting your hands dirty in the
innards. Was the code like you expected?
Glad to be able to contribute a little back! Code looks good, but I'm still not
100% comfortable with Objective C and XCode. Was easier than I thought to set up
and make changes though, so I might do it more often.
Best regards,
-- Harald K






.java