Sunday, April 19, 2009
Friday, April 10, 2009
I've started developing for the iPhone this past month and ran into an issue that only appears on the device and worked fine in the simulator. It boiled down to case sensitivity for image filenames. The simulator doesn't care about case, but the iPhone itself does.
I called [UIImage imageNamed:@"myfilename.png"] and my images appeared fine in the simulator. When I tested my app on the device, it didn't crash, but the images never showed up. I fixed it by making sure all of my image files were named in lowercase, and then I used the lowercaseString method of NSString when calling the imageNamed method.
Today's revelation: You can debug SQL stored procedures and functions. OMG. I just saved a half hour of digging through code by stepping through the debugger to see where my code went wrong.
It is simple to do and described well here. I just fired up Visual Studio 2008, opened Server Explorer, and opened a Data Connection. I had to make sure the connection was using Windows authentication, and that my AD account was registered as a user with the sysadmin role on the server. That was true, so I then right-clicked and chose "Step Into Function". Voila! The debugger console came up, asked me for parameters, and showed my function. This is extremely useful.
Apparently I'm late to the game since I've read this has been around since SQL Server 2000!