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

Crash when leaving Lion Full Screen #50

Open
julien-duponchelle opened this issue Jul 15, 2012 · 0 comments
Open

Crash when leaving Lion Full Screen #50

julien-duponchelle opened this issue Jul 15, 2012 · 0 comments

Comments

@julien-duponchelle
Copy link

I push a sample application with full screen mode for allow you to test:
julien-duponchelle@75b373b

When i try to leave th full screen mode i got this error:
2012-07-15 18:48:26.435 FullScreen[93246:e07] /Users/noplay/.rvm/gems/macruby-0.11/gems/hotcocoa-0.7.0/lib/hotcocoa/layout_view.rb:422:in <<': view does not support the #layout method (ArgumentError) from /Users/noplay/.rvm/gems/macruby-0.11/gems/hotcocoa-0.7.0/lib/hotcocoa/mappings/appkit/application.rb:10:inhandle_block'
from /Users/noplay/.rvm/gems/macruby-0.11/gems/hotcocoa-0.7.0/lib/hotcocoa/mapper.rb:155:in block' from /Users/noplay/code/hotcocoa/examples/full_screen/FullScreen.app/Contents/Resources/lib/application.rb:8:instart'
from /Users/noplay/code/hotcocoa/examples/full_screen/FullScreen.app/Contents/Resources/lib/application.rb:42:in <main>' from /Users/noplay/code/hotcocoa/examples/full_screen/FullScreen.app/Contents/Resources/rb_main.rb:17:inblock'
from /Users/noplay/code/hotcocoa/examples/full_screen/FullScreen.app/Contents/Resources/rb_main.rb:15:in `

'

I fix the problem by checking in addSubview if view is nil. But i'm not sure this fix is valid.

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

1 participant