Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unrecognised selector - line 90 #17

Closed
gabreho opened this issue Sep 23, 2014 · 3 comments
Closed

Unrecognised selector - line 90 #17

gabreho opened this issue Sep 23, 2014 · 3 comments

Comments

@gabreho
Copy link

gabreho commented Sep 23, 2014

Line 90 crashes; responder does respond to setPreferredFramesPerSecond, but the method is being called on self.window.rootViewController, which may not be the responder:

if([responder respondsToSelector:@selector(setPreferredFramesPerSecond:)])
[(GLKViewController*)[self.window rootViewController] setPreferredFramesPerSecond:FPS];

@mayakraft
Copy link
Owner

indeed! thank you
does this prevent a crash on your machine:
[(GLKViewController*)responder setPreferredFramesPerSecond:FPS];

@gabreho
Copy link
Author

gabreho commented Sep 23, 2014

yes, I made it work exactly like that :). Thanks!

@mayakraft
Copy link
Owner

great thank you!

mayakraft added a commit that referenced this issue Sep 23, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants