Mostrar / Ocultar Avisos

Archive for ‘Mac’

Sweet UITableViewController Bug in 3.0 SDK

Just in case anyone else runs into this time suck

There is a bug in the iPhone 3.0 SDK for the UITableViewController template. Specifically, in the didSelectRowAtIndexPath method when trying to push another view controller onto the stack.

Sweet Apple code…

The correct code is…

See the difference? Apple did complete the signature with the “animated” parameter. I just spent an hour trying to find out why my UINavigationController may not respond to -pushViewController. I guess, that’s my fault for trusting the generated code.

Fix: MySQL 5 on Mac OS X Leopard

This past weekend I bought a new MacBook and, of course, it has Leopard for the OS. As I was installing all of the development tools I need I kept having issues when trying to run MySQL 5.0.51. I installed from the Mac OS X packages.

After consulting google I came across Ted Hogan’s site. He explained that is was a permissions issue between “/usr/local/mysql/data” and the current logged in user. His fix is listed below.

You can get to this through the finder by using the “Go to Folder” dropdown item from the Finder’s “Go” menu. Just type in /usr/local and go from there. Also, you can modify the permissions by command-I (info dialog) at the bottom (Sharing & Permissions.) Be sure to click the options button (gear box at bottom) and select “Apply to enclosed items” as well.