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

NSWindow — Mac OS X 10.0

Synopsis

This class declares an interface to application windows and is one of the key components of the Application Kit architecture. NSWindow objects are responsible for managing and displaying a hierarchy of views within the window, as well as handling mouse and keyboard events that occur in the window.

image with no caption

@interface NSWindow : NSResponder
                                  // Initializers
   - (id)initWithContentRect:(NSRect)contentRect 
                                 styleMask:(unsigned int)aStyle
                                 backing:(NSBackingStoreType)bufferingType 
                                 defer:(BOOL)flag;
   - (id)initWithContentRect:(NSRect)contentRect 
                                 styleMask:(unsigned int)aStyle
                                 backing:(NSBackingStoreType)bufferingType 
                                 defer:(BOOL)flag 
                                 screen:(NSScreen *)screen;
   - (NSWindow *)initWithWindowRef:(void * /* WindowRef */)windowRef;
   - (NSView *)initialFirstResponder;
                                  // Accessor Methods
   - (void)setAspectRatio:(NSSize)ratio;
   - (NSSize)aspectRatio;
   - (void)setOrderedIndex:(int)index;
   - (int)orderedIndex;
   - (void)setIsVisible:(BOOL)flag;
   - (BOOL)isVisible;
   - (void)setTitle:(NSString *)aString;
   - (NSString *)title;
   - (void)setIsMiniaturized:(BOOL)flag;
   - (BOOL)isMiniaturized;
   - (void)setRepresentedFilename:(NSString *)aString;
   - (NSString *)representedFilename;
   - (void)setTitleWithRepresentedFilename:(NSString *)filename;
   - (void)setExcludedFromWindowsMenu:(BOOL)flag;
   - (void)setIsZoomed:(BOOL)flag;
   - (BOOL)isZoomed;
 - (void) ...

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