Skip to content

Commit

Permalink
Call super in awakeFromNib
Browse files Browse the repository at this point in the history
Apparently this is required from OS 10.6 onwards

http://stackoverflow.com/questions/3989665/should-i-call-super-awakefromnib

Seeing if it fixes the issue with the preferences
box freezing.
  • Loading branch information
Paul Sturgess committed Jun 9, 2016
1 parent 4b57820 commit 99341a6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,9 @@ The app is written using RubyMotion and was created to understand this method of

You can run in dev mode using

`rake`
`$ bundle`

`$ rake`

or build a real app using:

Expand All @@ -27,4 +29,4 @@ Update release number in Rakefile.
rake do_release
</pre>

You will need to copy the contents of sparkle/releases into the root files
You will need to copy the contents of sparkle/releases into the root files
3 changes: 2 additions & 1 deletion app/controllers/preferences_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,11 @@ def init
def awakeFromNib
self.u_vote_shortcut.associatedUserDefaultsKey = U_VOTE_SHORTCUT_VAR
self.d_vote_shortcut.associatedUserDefaultsKey = D_VOTE_SHORTCUT_VAR
super
end

def toggle_always_show_votes(button)
App.notification_center.post(JB_TOGGLE_VOTE_SLIDER, nil, {state:button.state})
end

end
end

0 comments on commit 99341a6

Please sign in to comment.