Did you ever want to make a full screen application with AppleScript Studio? It’s not that hard! Just subclass NSWindow with Objective-C. Here are the steps to make a full screen window:
Step 1: Subclass NSWindow
Add the following file’s to your project:
Personally, I think this function is amazingly simple, but what would be nice is a way to TOGGLE it.
Right now, it’s full screen only.
Preferably if I made a full screen app, I wouldn’t just have the window take over the screen. I would give the user a menu item or something to choose whether they want it or not.
Is there a simple edit I can make to add this small feature?
Well, you could implant it, but you’d loose the ability to create a window without a title bar. That is because you can’t change the style mask of a window after you’ve created it. IEFFullScreen.h
IEFFullScreen.m
An AppleScript Text File with clicked handlers connected
-- AppController.applescript
-- FS
-- Created by ief2 on 11/03/10.
-- Copyright 2010 __MyCompanyName__. All rights reserved.
on clicked theObject
if name of theObject is "Toggle" then
call method "toggleFullscreen" of (window 1)
end if
if name of theObject is "ON" then
call method "setFullscreenEnabled:" of (window 1) with parameters {yes}
end if
if name of theObject is "OFF" then
call method "setFullscreenEnabled:" of (window 1) with parameters {no}
end if
end clicked