O'Reilly logo

Cocoa in a Nutshell by James Duncan Davidson, Michael Beam

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Name

NSWindowScripting — Mac OS X 10.0

Synopsis

This informal protocol declares the methods that must be implemented by window classes in order to be scriptable. The methods of this protocol define an interface to setting and retrieving properties of the window, as well as to control operations such as saving, printing, and closing the window. NSWindow implements all of the methods in this protocol as part of Cocoa’s built-in support for scripting.

@interface NSObject (NSWindowScripting)
                                  // Instance Methods
   - (BOOL)hasCloseBox;
   - (BOOL)hasTitleBar;
   - (BOOL)isFloatingPanel;
   - (BOOL)isModalPanel;
   - (BOOL)isResizable;
   - (BOOL)isZoomable;
   - (BOOL)isMiniaturizable;
   - (void)setIsZoomed:(BOOL)flag;
   - (void)setIsMiniaturized:(BOOL)flag;
   - (void)setIsVisible:(BOOL)flag;
   - (int)orderedIndex;
   - (void)setOrderedIndex:(int)index;
   - (id)handleSaveScriptCommand:(NSScriptCommand *)command;
   - (id)handleCloseScriptCommand:(NSCloseCommand *)command;
   - (id)handlePrintScriptCommand:(NSScriptCommand *)command;
@end

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required