Category: debugged

  • Return of the unsigned int gotcha for the unary ‘-‘ operator

    I came across another unsigned int issue today. If you have an unsigned int and you negate it with the unary ‘-‘ operator, you will just get a really large unsigned integer value, and not a negative value. From my last post about unsigned int, you can’t do smallInt – unsignedInt and expect a negative […]

  • The Class Class as an argument in objective C++

    When you say the same word over and over it starts to become meaningless. Mix this together with metaclasses and reflection. Then take objective-C and add it to C++. You then have an objective-C @Class construct for forward declaration, the Class object, the NSObject class method, and the C++ class keyword. It was only a […]

  • std::vector size() method and gotcha with unsigned vs signed

    Guess who wins in signed vs unsigned integer conversion? I guessed wrong today, or rather, I’ve been assuming wrong for quite a while. consider this example: std::vector<SomeClass*> myVec; int countdown = -1; // … (fill the vector) if (countdown < myVec.size()) countdown++; // this will never get hit myVec.size() returns size_t, which is an unsigned […]

  • audio IO on the iPhone gotchas

    This is a basic outline that I will expand on. I just finished debugging this stuff and want to write the main points before I forget my references and main issues. Summary: two basic gotchas of full duplex (record from mic and output to speaker) audio IO on the iphone that I ran into are: […]

  • flash ios air certificate password issues

    Today I had to publish an iOS app written in actionscript. There are a number of almost good guides like this one, which would be good if they just had more pictures.At first I used Flash Builder 4.5.1, which didn’t do the trick. I then used CS 5, and had everything building and running fine […]