What are the default icon sizes in iPhone?
Continuing my iPhone development, I had a hard time finding the default icon sizes.
Continuing my iPhone development, I had a hard time finding the default icon sizes.
iPhone development is not the same as Mac OS X development
To prevent Visual Studio from defining it’s own min and max functions, include the following in the top of your implementation file: #ifdef _WIN32 #ifndef NOMINMAX #define NOMINMAX #endif #endif You can also define NOMINMAX in the Preprocessor Definitions option in the Common Properties->C/C++->Proprocessor property page.
Ever since I started to do 64-bit development, I had a problem with the Boost headers producing a ton of implicit conversion warnings in Xcode. This is due to the fact that I am compiling with the following flag: -Wshorten-64-to-3 I got this idea from both Herb Sutter and the Viva 64 website, where you … Read more
If you have the need to create a tag from your current source code, you can use the copy command from the shell of your preference: $ svn copy http://svn.example.com/repos/MineMineItsMine/trunk http://svn.example.com/repos/MineMineItsMine/tags/release-2.0 -m “Creating 2.0 release of the ‘MineMineItsMine’ project.”
In the course of the day, I actually open several web pages related to the work I do. The browser, for better or for worse, has become part of my workflow. After a while, it can get annoying to constantly have to log in to separate pages to see all of the data I need … Read more
I was having a nice coding day. Xcode was behaving nicely and all of my code seem to behave like I wanted to … then … Crash. Okay. I can handle a crash. But. Looking at the call stack from the crash, something didn’t look right. In the call stack there was a reference to … Read more
One of the cool things about Xcode and GDB is that you can create custom breakpoints that could be set up by calling a function within your own project. GDB supports C functionality in their conditional checks, but for me, I found this functionality to be particularly helpful when paired with convenience variables. So, let’s … Read more
I recently had to build a file for multiple operating systems and had to figure out a way to enable a feature that is only available on Mac OS X 10.5 and greater, and Windows. Here’s how I did it: #if (MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_5) || defined (_WIN32) #include #endif Now, technically there is no harm … Read more
If you ever have to get greater detail as to what is going on with the compiler or linker in Visual Studio, you can “crank up” the verbosity in the IDE’s options: crank-it-up! In case the link above dies, you “go into the Tools->Options menu, and go to Projects and Solutions->Build and Run and change … Read more