Intel Mac and YES (or NO)

25 Aug 2007 - 01:10:54 in VisDoc. Tags: Cocoa, programming, VisDoc
Comments
After having worked on my faithful G4 Powerbook for the last 2 years, I finally got a beautiful fast brand new Intel Mac from my work this week. YES!

First thing I did was to test VisDoc. The latest bug reports I got were all from people using Intel Macs, so I was getting suspicious there might be something platform related. To my dismay I found out my users had been right. And the output very wrong.

Something peculiar goes on in Intel's internals. A simple function like

- (BOOL)isConst
{
   return [mType containsObject:@"const"];
}
should return a BOOL, right? Apparently not anymore, because [inMember isConst] now happily returns a pointer and that is never a NO or 0. To get reliable results I need to cast every boolean return value to BOOL: (BOOL)[inMember isConst]. Redundant but it does the job.

VisDoc 2.0.1 should fix all outstanding bugs for Mac Intel computers.

Comments

Add your comment

Your name:

 

 
Copyright © Arthur Clemens, 2008 | Send feedback