ChristianKienle / OSXBoilerplate

Mac OS X template - based on iOS boilerplate
http://osxboilerplate.com/
158 stars 14 forks source link

Custom Actions for Preference Panes #4

Closed jceipek closed 12 years ago

jceipek commented 12 years ago

I'm pretty new to Objective-C for Mac OS X, so feel free to tell me if I am doing something silly, but I've been trying to create action methods for objects in the preference .xib files and have been unable to do so. For example, when I create a

    - (IBAction)someAction:(id)sender 

method in OSBGeneralPreferencesViewController and connect it to the checkbox in the integrated interface builder, I get the following runtime log

    Could not connect the action someAction: to target of class NSViewController".

Is this a limitation of the way that OSBPreferencesController works? Is there a way to use custom actions for the individual preference panes?

I really love the idea of having OSX Boilerplate code for common functionality and was amazed how easy it was to incorporate into my current project until I hit this stumbling block.

jceipek commented 12 years ago

This appears to have been the result of a bug in OSBPreferencesController. My fix is in this pull request: #5.