Created
January 13, 2011 18:37
-
-
Save erichocean/778363 to your computer and use it in GitHub Desktop.
How to do view controllers in SC
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
MyApp.menuPane.statechart: SC.Statechart.create({ | |
}); | |
MyApp.myPage = SC.Page.design({ | |
menuPane: SC.Pane.design({ | |
// will get mouseDown: etc. from the pane | |
defaultResponder: MyApp.menuPane.statechart, | |
render: function(context, firstTime) { | |
// render the HTML | |
} | |
}); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment