[macruby-changes] [718] MacRuby/trunk/lib/hotcocoa/mappings/view.rb
source_changes at macosforge.org
source_changes at macosforge.org
Fri Nov 7 13:54:30 PST 2008
Revision: 718
http://trac.macosforge.org/projects/ruby/changeset/718
Author: rich at infoether.com
Date: 2008-11-07 13:54:30 -0800 (Fri, 07 Nov 2008)
Log Message:
-----------
add full screen operations
Modified Paths:
--------------
MacRuby/trunk/lib/hotcocoa/mappings/view.rb
Modified: MacRuby/trunk/lib/hotcocoa/mappings/view.rb
===================================================================
--- MacRuby/trunk/lib/hotcocoa/mappings/view.rb 2008-11-07 20:18:02 UTC (rev 717)
+++ MacRuby/trunk/lib/hotcocoa/mappings/view.rb 2008-11-07 21:54:30 UTC (rev 718)
@@ -54,6 +54,14 @@
options[:needs_display] == false ? subview.removeFromSuperviewWithoutNeedingDisplay : subview.removeFromSuperview
end
+ def enter_full_screen(options={})
+ enterFullScreenMode((options.delete(:screen) || NSScreen.mainScreen), withOptions:options)
+ end
+
+ def leave_full_screen(options={})
+ exitFullScreenModeWithOptions(options)
+ end
+
end
end
\ No newline at end of file
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macruby-changes/attachments/20081107/e72e1ae8/attachment.html>
More information about the macruby-changes
mailing list