2
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

RubyMotion の OS X アプリで Lion-style Fullscreen

Posted at

なんかインターネット探してもいまいちはっきりわからなかったので。備忘録。

@mainWindow = NSWindow.alloc.initWithContentRect([[240, 180], [480, 360]],
  styleMask: NSTitledWindowMask|NSClosableWindowMask|NSMiniaturizableWindowMask|NSResizableWindowMask,
  backing: NSBackingStoreBuffered,
  defer: false)

# この1行を追加
@mainWindow.setCollectionBehavior(NSWindowCollectionBehaviorFullScreenPrimary)

これでウィンドウの右上のボタンが Lion の Fullscreen に対応するようになる。

スクリーンショット 2015-02-13 17.25.02.png

やったー。

2
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?