How to convert an integer to a hexadecimal string in C++ int number = 42; stringstream…
How to convert an integer to a hexadecimal string in C++ int number = 42;stringstream ss;ss << hex << number;// now ss.str(), which is a string, contains "2a"Getting the UDID of an iOS device [[UIDevice currentDevice] uniqueIdentifier]
Getting the UDID of an iOS device [[UIDevice currentDevice] uniqueIdentifier]Mac OS X Debugging Magic
developer.apple.com/library/mac/#technotes/tn2004/tn2124.htm … ↗
how to debug EXC_BAD_ACCESS on iPhone
Great guide for memory-debugging in Instruments
corbinstreehouse.com/blog/2007/10/instruments-on-leopard-how … ↗
iroundf A few minutes ago I wrote a rounding function for myself in C.
iroundf A few minutes ago I wrote a rounding function for myself in C. Probably not the best implementation, but it works all right. If you’re interested, check it out (I’ve put some sample values in the comments): int iroundf(float value){ if(value > 0.0) { int …A nice article on iPhone application internationalization
Getting filepath to the Documents folder on iPhone To achieve the task written in the…
Getting filepath to the Documents folder on iPhone To achieve the task written in the title of this post, you have to do the following: NSArray *paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES); NSString *documentsPath = [paths …Button resize causing text blur?
Button resize causing text blur? Today I noticed a very, very strange behaviour (bug?) in Xcode. I am creating buttons for my iPhone application with a custom image background and a text on top of it. …View overlapped by the title bar During the development of my latest iPhone project I…
View overlapped by the title bar During the development of my latest iPhone project I faced a strange phenomenon: if I enable the title bar on a screen, the current view is placed to the coordinates …Quick Look source code preview & syntax highlighting on Mac Without much rambling, a…
Quick Look source code preview & syntax highlighting on Mac Without much rambling, a solution for the problem presented in the title: http://code.google.com/p/qlcolorcode/ To change the color style (theme), use the following command: defaults write org.n8gray.QLColorCode hlTheme …C/C++ trick with logical operators Let me show a nice C/C++ trick I just found out:…
C/C++ trick with logical operators Let me show a nice C/C++ trick I just found out: Instead of writing: if (function1()) function2(); you could write: function1() && function2(); because the right side of the && operator is only evaluated (in this case: called), …