Skip to content

Crash when leaving Lion Full Screen #50

Open
@julien-duponchelle

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: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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions