erndev/EDSidebar — pull request #3 by unixo (2012-08-31 10:21:13+00:00)
Title: Alternative action

In my project I really need to assign a target/action to a sidebar item, so I added the method ```setTarget:withSelector:atIndex``` to accomplish: when user clicks on an item, a message is sent to its target if any, otherwise a notification is sent to its delegate (normal behavior).

A minor change is the helper method ```selectedIndex``` which returns selected item index.