DekGenius.com
[ Team LiB ] Previous Section Next Section

NSWindowScripting Mac OS X 10.0

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

    [ Team LiB ] Previous Section Next Section