Re: [MacRuby-devel] Fullscreen sample app

2010-07-07 Thread Michael Jackson
I was going for the second approach (i.e. resize the window to the size of the screen but don't "take it over") because I like to keep the cmd-tab functionality. I've actually enhanced the example today to work with windows that have toolbars. I'll update it when I get the chance (may not be for a

Re: [MacRuby-devel] Fullscreen sample app

2010-07-07 Thread Eloy Duran
For completeness sake; I just read this difference explanation in the article [1] that the code was based on: “There are two basic types of fullscreen on the Mac: • Screen takeover — where one view gains exclusive control of the screen. • Basic fullscreen window — where a regular window oc

Re: [MacRuby-devel] Fullscreen sample app

2010-07-07 Thread Matt Aimonetti
+1 for enterFullScreenMode:withOptions: MacRuby won't run on anything < 10.5 anyway. - Matt On Wed, Jul 7, 2010 at 10:44 AM, Eloy Duran wrote: > Hey Michael, > > You might also want to consider NSView's enterFullScreenMode:withOptions: > [1] > It's available from 10.5 and higher only, but wit

Re: [MacRuby-devel] Fullscreen sample app

2010-07-07 Thread Eloy Duran
Hey Michael, You might also want to consider NSView's enterFullScreenMode:withOptions: [1] It's available from 10.5 and higher only, but with MacRuby that should not be a problem. Cheers, Eloy [1] http://developer.apple.com/mac/library/documentation/Cocoa/Reference/ApplicationKit/Classes/

Re: [MacRuby-devel] Fullscreen sample app

2010-07-06 Thread Michael Jackson
Of course, that's fine with me. ;) Would you like a patch or are you going to merge it in yourself? -- Michael Jackson http://mjijackson.com @mjijackson On Tue, Jul 6, 2010 at 6:21 PM, Laurent Sansonetti wrote: > Hi Michael, > > Thanks for porting it :) Would you mind if we bundle your sample

Re: [MacRuby-devel] Fullscreen sample app

2010-07-06 Thread Laurent Sansonetti
Hi Michael, Thanks for porting it :) Would you mind if we bundle your sample as part of the MacRuby sample code? If you agree, would you also be willing to license the code under the Ruby license? (which is the default license for everything in MacRuby, so no need to mention it). Laurent On J

[MacRuby-devel] Fullscreen sample app

2010-07-06 Thread Michael Jackson
Hi all, I created a fullscreen sample app in MacRuby, and I thought someone else might be able to get some use out of it. http://mjijackson.com/2010/07/fullscreen-macruby http://github.com/mjijackson/Fullscreen It's basically a port of someone else's Objective-C code, but it uses NSApp's present