Description
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:in
handle_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:in
start'
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:in
block'
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.
Activity