# NSWindow

scottc@net-community.com
far@ix.netcom.com
richard@brainstorm.co.uk

The window class

1996 Free Software Foundation, Inc.
NSWindow

Instances of the NSWindow class handle on-screen windows, their associated NSViews, and events generate by the user. An NSWindow's size is defined by its frame rectangle, which encompasses its entire structure, and its content rectangle, which includes only the content.

Every NSWindow has a content view, the NSView which forms the root of the window's view hierarchy. This view can be set using the `setContentView:` method, and accessed through the `contentView` method. `setContentView:` replaces the default content view created by NSWindow.

Other views may be added to the window by using the content view's `addSubview:` method. These subviews can also have subviews added, forming a tree structure, the view hierarchy. When an NSWindow must display itself, it causes this hierarchy to draw itself. Leaf nodes in the view hierarchy are drawn last, causing them to potentially obscure views further up in the hierarchy.

A delegate can be specified for an NSWindow, which will receive notifications of events pertaining to the window. The delegate is set using `setDelegate:`, and can be retrieved using `delegate`. The delegate can restrain resizing by implementing the `windowWillResize: toSize:` method, or control the closing of the window by implementing `windowShouldClose:`.

AppKit/NSWindow.h
NSCoding

An NSWindow instance represents a window, panel or menu on the screen.
Each window has a style, which determines how the window is decorated: ie whether it has a border, a title bar, a resize bar, minimise and close buttons.

A window has a frame. This is the frame of the entire window on the screen, including all decorations and borders. The origin of the frame represents its bottom left corner and the frame is expressed in screen coordinates (see NSScreen ).

When a window is created, it has a private NSView instance which fills the entire window frame and whose coordinate system is the same as the base coordinate system of the window (ie zero x and y coordinates are at the bottom left corner of the window, with increasing x and y corresponding to points to the right and above the origin).
This view may be used by the library internals (and theme engines) to draw window decorations if the backend library is not handling the window decorations.

A window always contains a content view which is the highest level view available for public (application) use. This view fills the area of the window inside any decoration/border.
This is the only part of the window that application programmers are allowed to draw in directly.

You can convert between view coordinates and window base coordinates using the [NSView -convertPoint:fromView:], [NSView -convertPoint:toView:], [NSView -convertRect:fromView:], and [NSView -convertRect:toView:] methods with a `nil` view argument.
You can convert between window and screen coordinates using the -convertBaseToScreen: and -convertScreenToBase: methods.

Warning the underscore at the start of the name of this instance variable indicates that, even though it is not technically private, it is intended for internal use within the package, and you should not use the variable in other code.
Warning the underscore at the start of the name of this instance variable indicates that, even though it is not technically private, it is intended for internal use within the package, and you should not use the variable in other code.
Warning the underscore at the start of the name of this instance variable indicates that, even though it is not technically private, it is intended for internal use within the package, and you should not use the variable in other code.
Warning the underscore at the start of the name of this instance variable indicates that, even though it is not technically private, it is intended for internal use within the package, and you should not use the variable in other code.
Warning the underscore at the start of the name of this instance variable indicates that, even though it is not technically private, it is intended for internal use within the package, and you should not use the variable in other code.
Warning the underscore at the start of the name of this instance variable indicates that, even though it is not technically private, it is intended for internal use within the package, and you should not use the variable in other code.
Warning the underscore at the start of the name of this instance variable indicates that, even though it is not technically private, it is intended for internal use within the package, and you should not use the variable in other code.
Warning the underscore at the start of the name of this instance variable indicates that, even though it is not technically private, it is intended for internal use within the package, and you should not use the variable in other code.
Warning the underscore at the start of the name of this instance variable indicates that, even though it is not technically private, it is intended for internal use within the package, and you should not use the variable in other code.
Warning the underscore at the start of the name of this instance variable indicates that, even though it is not technically private, it is intended for internal use within the package, and you should not use the variable in other code.
Warning the underscore at the start of the name of this instance variable indicates that, even though it is not technically private, it is intended for internal use within the package, and you should not use the variable in other code.
Warning the underscore at the start of the name of this instance variable indicates that, even though it is not technically private, it is intended for internal use within the package, and you should not use the variable in other code.
Warning the underscore at the start of the name of this instance variable indicates that, even though it is not technically private, it is intended for internal use within the package, and you should not use the variable in other code.
Warning the underscore at the start of the name of this instance variable indicates that, even though it is not technically private, it is intended for internal use within the package, and you should not use the variable in other code.
Warning the underscore at the start of the name of this instance variable indicates that, even though it is not technically private, it is intended for internal use within the package, and you should not use the variable in other code.
Warning the underscore at the start of the name of this instance variable indicates that, even though it is not technically private, it is intended for internal use within the package, and you should not use the variable in other code.
Warning the underscore at the start of the name of this instance variable indicates that, even though it is not technically private, it is intended for internal use within the package, and you should not use the variable in other code.
Warning the underscore at the start of the name of this instance variable indicates that, even though it is not technically private, it is intended for internal use within the package, and you should not use the variable in other code.
Warning the underscore at the start of the name of this instance variable indicates that, even though it is not technically private, it is intended for internal use within the package, and you should not use the variable in other code.
Warning the underscore at the start of the name of this instance variable indicates that, even though it is not technically private, it is intended for internal use within the package, and you should not use the variable in other code.
Warning the underscore at the start of the name of this instance variable indicates that, even though it is not technically private, it is intended for internal use within the package, and you should not use the variable in other code.
Warning the underscore at the start of the name of this instance variable indicates that, even though it is not technically private, it is intended for internal use within the package, and you should not use the variable in other code.
Warning the underscore at the start of the name of this instance variable indicates that, even though it is not technically private, it is intended for internal use within the package, and you should not use the variable in other code.
Warning the underscore at the start of the name of this instance variable indicates that, even though it is not technically private, it is intended for internal use within the package, and you should not use the variable in other code.
Warning the underscore at the start of the name of this instance variable indicates that, even though it is not technically private, it is intended for internal use within the package, and you should not use the variable in other code.
Warning the underscore at the start of the name of this instance variable indicates that, even though it is not technically private, it is intended for internal use within the package, and you should not use the variable in other code.
Warning the underscore at the start of the name of this instance variable indicates that, even though it is not technically private, it is intended for internal use within the package, and you should not use the variable in other code.
Warning the underscore at the start of the name of this instance variable indicates that, even though it is not technically private, it is intended for internal use within the package, and you should not use the variable in other code.
Warning the underscore at the start of the name of this instance variable indicates that, even though it is not technically private, it is intended for internal use within the package, and you should not use the variable in other code.
Warning the underscore at the start of the name of this instance variable indicates that, even though it is not technically private, it is intended for internal use within the package, and you should not use the variable in other code.
Warning the underscore at the start of the name of this instance variable indicates that, even though it is not technically private, it is intended for internal use within the package, and you should not use the variable in other code.
Warning the underscore at the start of the name of this instance variable indicates that, even though it is not technically private, it is intended for internal use within the package, and you should not use the variable in other code.
Warning the underscore at the start of the name of this instance variable indicates that, even though it is not technically private, it is intended for internal use within the package, and you should not use the variable in other code.
Warning the underscore at the start of the name of this instance variable indicates that, even though it is not technically private, it is intended for internal use within the package, and you should not use the variable in other code.
Warning the underscore at the start of the name of this instance variable indicates that, even though it is not technically private, it is intended for internal use within the package, and you should not use the variable in other code.
Warning the underscore at the start of the name of this instance variable indicates that, even though it is not technically private, it is intended for internal use within the package, and you should not use the variable in other code.
Warning the underscore at the start of the name of this instance variable indicates that, even though it is not technically private, it is intended for internal use within the package, and you should not use the variable in other code.
Warning the underscore at the start of the name of this instance variable indicates that, even though it is not technically private, it is intended for internal use within the package, and you should not use the variable in other code.
Warning the underscore at the start of the name of this instance variable indicates that, even though it is not technically private, it is intended for internal use within the package, and you should not use the variable in other code.
Warning the underscore at the start of the name of this instance variable indicates that, even though it is not technically private, it is intended for internal use within the package, and you should not use the variable in other code.
Warning the underscore at the start of the name of this instance variable indicates that, even though it is not technically private, it is intended for internal use within the package, and you should not use the variable in other code.
Warning the underscore at the start of the name of this instance variable indicates that, even though it is not technically private, it is intended for internal use within the package, and you should not use the variable in other code.
Warning the underscore at the start of the name of this instance variable indicates that, even though it is not technically private, it is intended for internal use within the package, and you should not use the variable in other code.
contentRectForFrameRect:
aRect
styleMask:
aStyle
Returns the rectangle which would be used for the content view of a window whose on-screen size and position is specified by aRect and which is decorated with the border and title etc given by aStyle.
Both rectangles are expressed in screen coordinates.
defaultDepthLimit
Description forthcoming.
frameRectForContentRect:
aRect
styleMask:
aStyle
Returns the rectangle which would be used for the on-screen frame of a window if that window had a content view occupying the rectangle aRect and was decorated with the border and title etc given by aStyle.
Both rectangles are expressed in screen coordinates.
menuChanged:
aMenu
Description forthcoming.
minFrameWidthWithTitle:
aTitle
styleMask:
aStyle
Returns the smallest frame width that will fit the given title and style. This is the on-screen width of the window including decorations.
removeFrameUsingName:
name
Description forthcoming.
standardWindowButton:
button
forStyleMask:
mask
Description forthcoming.
acceptsMouseMovedEvents
Description forthcoming.
addChildWindow:
child
ordered:
place
Description forthcoming.
allowsToolTipsWhenApplicationIsInactive
Description forthcoming.
alphaValue
Description forthcoming.
animationResizeTime:
newFrame
Description forthcoming.
areCursorRectsEnabled
Description forthcoming.
aspectRatio
Description forthcoming.
autorecalculatesKeyViewLoop
Description forthcoming.
backgroundColor
Description forthcoming.
backingType
Description forthcoming.
becomeKeyWindow
Description forthcoming.
becomeMainWindow
Description forthcoming.
cacheImageInRect:
aRect
Description forthcoming.
canBecomeKeyWindow
Returns `YES` if the receiver can be made key. If this method returns `NO`, the window will not be made key. This implementation returns `YES` if the window is resizable or has a title bar. You can override this method to change it's behavior
canBecomeMainWindow
Returns `YES` if the receiver can be the main window. If this method returns `NO`, the window will not become the main window. This implementation returns `YES` if the window is resizable or has a title bar and is visible and is not an NSPanel. You can override this method to change it's behavior
canHide
Description forthcoming.
canStoreColor
Description forthcoming.
cascadeTopLeftFromPoint:
topLeftPoint
Positions the receiver at topLeftPoint (or if topLeftPoint is NSZeroPoint, leaves the receiver unmoved except for any necessary constraint to fit on screen).
Returns the position of the top left corner of the receivers content view (after repositioning), so that another window cascaded at the returned point will not obscure the title bar of the receiver.
center
Description forthcoming.
childWindows
Description forthcoming.
close
Description forthcoming.
constrainFrameRect:
frameRect
toScreen:
screen
Given a proposed frame rectangle, return a modified version which will fit inside the screen .
contentAspectRatio
Description forthcoming.
contentMaxSize
Description forthcoming.
contentMinSize
Description forthcoming.
contentRectForFrameRect:
frameRect
Description forthcoming.
contentResizeIncrements
Description forthcoming.
contentView
Description forthcoming.
convertBaseToScreen:
aPoint
Converts aPoint from the base coordinate system of the receiver to a point in the screen coordinate system.
Convert from a point in the base coordinate system for the window to a point in the screen coordinate system.
convertScreenToBase:
aPoint
Converts aPoint from the screen coordinate system to a point in the base coordinate system of the receiver.
Convert from a point in the screen coordinate system to a point in the screen coordinate system of the receiver.
counterpart
Description forthcoming.
currentEvent
Description forthcoming.
dataWithEPSInsideRect:
rect
Description forthcoming.
dataWithPDFInsideRect:
aRect
Description forthcoming.
deepestScreen
Returns the screen the window is on. Unlike (apparently) OpenStep and MacOSX, GNUstep does not support windows being split across multiple screens
defaultButtonCell
Description forthcoming.
delegate
Returns the delegate.
deminiaturize:
sender
Causes the window to deminiaturize. Normally you would not call this method directly. A window is automatically deminiaturized by the user via a mouse click event. Does nothing it the window isn't miniaturized.
depthLimit
Description forthcoming.
deviceDescription
Description forthcoming.
disableCursorRects
Description forthcoming.
disableFlushWindow
Description forthcoming.
disableKeyEquivalentForDefaultButtonCell
Description forthcoming.
discardCachedImage
Description forthcoming.
discardCursorRects
Description forthcoming.
discardEventsMatchingMask:
mask
beforeEvent:
lastEvent
Description forthcoming.
display
Description forthcoming.
displayIfNeeded
Description forthcoming.
displaysWhenScreenProfileChanges
Description forthcoming.
dragImage:
anImage
at:
baseLocation
offset:
initialOffset
event:
event
pasteboard:
pboard
source:
sourceObject
slideBack:
slideFlag
Description forthcoming.
drawers
Returns all drawers associated with this window.
enableCursorRects
Description forthcoming.
enableFlushWindow
Description forthcoming.
enableKeyEquivalentForDefaultButtonCell
Description forthcoming.
endEditingFor:
anObject
Description forthcoming.
fax:
sender
Opens the fax panel to allow the user to fax the contents of the window view.
fieldEditor:
createFlag
forObject:
anObject
Description forthcoming.
firstResponder
Returns the first responder of the window.
flushWindow
Flush all drawing in the windows buffer to the screen unless the window is not buffered or flushing is not enabled.
flushWindowIfNeeded
Description forthcoming.
frame
Returns the frame of the receiver... the rectangular area that the window (including any border, title, and other decorations) occupies on screen.
frameAutosaveName
Description forthcoming.
frameRectForContentRect:
contentRect
Description forthcoming.
gState
Description forthcoming.
graphicsContext
Description forthcoming.
hasDynamicDepthLimit
Description forthcoming.
hasShadow
Description forthcoming.
hidesOnDeactivate
Description forthcoming.
ignoresMouseEvents
Description forthcoming.
initWithContentRect:
contentRect
styleMask:
aStyle
backing:
bufferingType
defer:
flag

Initializes the receiver with a content rect of contentRect, a style mask of styleMask, and a backing store type of backingType.

The style mask values are `NSTitledWindowMask`, for a window with a title, `NSClosableWindowMask`, for a window with a close widget, `NSMiniaturizableWindowMask`, for a window with a miniaturize widget, and `NSResizableWindowMask`, for a window with a resizing widget. These mask values can be OR'd in any combination.

Backing store values are `NSBackingStoreBuffered`, `NSBackingStoreRetained` and `NSBackingStoreNonretained`.

initWithContentRect:
contentRect
styleMask:
aStyle
backing:
bufferingType
defer:
flag
screen:
aScreen
Creates a new window with the specified characteristics.
The contentRect is expressed in screen coordinates (for aScreen) and the window frame is calculated from the content rectangle and the window style mask.

Initializes the receiver with a content rect of contentRect, a style mask of styleMask, a backing store type of backingType and a boolean flag. flag specifies whether the window should be created now (`NO`), or when it is displayed (`YES`).

The style mask values are `NSTitledWindowMask`, for a window with a title, `NSClosableWindowMask`, for a window with a close widget, `NSMiniaturizableWindowMask`, for a window with a miniaturize widget, and `NSResizableWindowMask`, for a window with a resizing widget. These mask values can be OR'd in any combination.

Backing store values are `NSBackingStoreBuffered`, `NSBackingStoreRetained` and `NSBackingStoreNonretained`.

initWithWindowRef:
windowRef
Description forthcoming.
initialFirstResponder
returns the initial first responder of the receiver.
invalidateCursorRectsForView:
aView
Description forthcoming.
invalidateShadow
Description forthcoming.
isAutodisplay
Description forthcoming.
isDocumentEdited
Returns `YES`, if the document has been changed.
isExcludedFromWindowsMenu
Description forthcoming.
isFlushWindowDisabled
Description forthcoming.
isKeyWindow
Description forthcoming.
isMainWindow
Description forthcoming.
isMiniaturized
Description forthcoming.
isMovableByWindowBackground
Description forthcoming.
isOneShot
Description forthcoming.
isOpaque
Description forthcoming.
isReleasedWhenClosed
Returns `YES`, if the window is released when it is closed.
isVisible
Description forthcoming.
keyDown:
theEvent
Processes theEvent when a key is pressed while within the window.
keyViewSelectionDirection
Returns the value of _selectionDirection, the direction of the current key view.
See Also: -selectKeyViewFollowingView: -selectKeyViewPrecedingView: -selectNextKeyView: -selectPreviousKeyView:
level
Description forthcoming.
makeFirstResponder:
aResponder
This method attempts to make aResponder the first responder.
If aResponder is already the first responder, this method has no effect and simply returns `YES`. Otherwise, the method sends a -resignFirstResponder message to the current first responder (if there is one) and immediately returns `NO` if the current first responder refuses to resign.
Then the method asks aResponder to become first responder by sending it a -becomeFirstResponder message, and if that returns `YES` then this method immediately returns `YES`.
However, if that returns `NO`, the receiver is made the first responder by sending it a -becomeFirstResponder message, and this method returns `NO`.
If aResponder is neither `nil` nor an instance of NSResponder (or of a subclass of NSResponder) then behavior is undefined (though the current GNUstep implementation just returns `NO`).
Makes aResponder the first responder within the receiver.
makeKeyAndOrderFront:
sender
Description forthcoming.
makeKeyWindow
Description forthcoming.
makeMainWindow
Description forthcoming.
maxSize
Description forthcoming.
minSize
Description forthcoming.
miniaturize:
sender
Causes the window to miniaturize, that is the window is removed from the screen and it's counterpart (mini)window is displayed. Does nothing if the window can't be miniaturized (eg. because it's already miniaturized).
miniwindowImage
Description forthcoming.
miniwindowTitle
Description forthcoming.
mouseLocationOutsideOfEventStream
Description forthcoming.
nextEventMatchingMask:
mask
Description forthcoming.
nextEventMatchingMask:
mask
untilDate:
expiration
inMode:
mode
dequeue:
deqFlag
Description forthcoming.
orderBack:
sender
Orders the window to the back of its level. Equivalent to -orderWindow:relativeTo: with arguments NSWindowBelow and 0.
orderFront:
sender
If the application is active, orders the window to the front in its level. If the application is not active, the window is ordered in as far forward as possible in its level without being ordered in front of the key or main window of the currently active app. The current key and main window status is not changed. Equivalent to -orderWindow:relativeTo: with arguments NSWindowAbove and 0.
orderFrontRegardless
Orders the window to the front in its level (even in front of the key and main windows of the current app) regardless of whether the app is current or not. This method should only be used in rare cases where the app is cooperating with another app that is displaying data for it. The current key and main window status is not changed.
orderOut:
sender
Orders the window out from the screen. Equivalent to -orderWindow:relativeTo: with arguments NSWindowOut and 0.
orderWindow:
place
relativeTo:
otherWin

If place is NSWindowOut, removes the window from the screen. If place is NSWindowAbove, places the window directly above otherWin, or directly above all windows in its level if otherWin is 0. If place is NSWindowBelow, places the window directly below otherWin, or directly below all windows in its level if otherWin is 0.

If otherWin is zero and the key window is at the same window level as the receiver, the receiver cannot be positioned above the key window.

If place is NSWindowAbove or NSWindowBelow and the application is hidden, the application is unhidden.

parentWindow
Description forthcoming.
performClose:
sender
Causes the window to close. Calls the windowShouldClose: method on the delegate to determine if it should close and calls shouldCloseWindowController on the controller for the receiver.
performMiniaturize:
sender
Miniaturize the receiver... as long as its style mask includes NSMiniaturizableWindowMask (and as long as the receiver is not an icon or mini window itsself). Calls -miniaturize: to do this.
Beeps if the window can't be miniaturised.
Should ideally provide visual feedback (highlighting the miniaturize button as if it had been clicked) first... but that's not yet implemented.
performZoom:
sender
Performs the zoom method on the receiver.
postEvent:
event
atStart:
flag
Description forthcoming.
preservesContentDuringLiveResize
Description forthcoming.
print:
sender
Opens the print panel to allow the user to print the contents of the window view.
recalculateKeyViewLoop
Description forthcoming.
registerForDraggedTypes:
newTypes
Description forthcoming.
removeChildWindow:
child
Description forthcoming.
representedFilename
Description forthcoming.
resetCursorRects
Description forthcoming.
resignKeyWindow
Description forthcoming.
resignMainWindow
Description forthcoming.
resizeFlags
Description forthcoming.
resizeIncrements
Description forthcoming.
restoreCachedImage
Description forthcoming.
saveFrameUsingName:
name
Description forthcoming.
screen
Returns the screen the window is on.
selectKeyViewFollowingView:
aView
If aView responds to -nextValidKeyView with a new NSView, call -makeFirstResponder: for the returned view.
selectKeyViewPrecedingView:
aView
If aView responds to -previousValidKeyView with a new NSView, call -makeFirstResponder: for this view.
selectNextKeyView:
sender
This method checks if: _firstResponder answers to -nextValidKeyView _initialFirstResponder answers to -acceptsFirstResponder _initialFirstResponder answers to -previousValidKeyView If any of these checks return a NSView, call -makeFirstResponder: on this NSView.
selectPreviousKeyView:
sender
This method checks if: _firstResponder answers to -previousValidKeyView _initialFirstResponder answers to -acceptsFirstResponder _initialFirstResponder answers to -previousValidKeyView If any of these checks return a NSView, call -makeFirstResponder: on this NSView.
sendEvent:
theEvent
Handles mouse and other events sent to the receiver by NSApplication. Do not invoke this method directly.
setAcceptsMouseMovedEvents:
flag
Description forthcoming.
setAllowsToolTipsWhenApplicationIsInactive:
flag
Description forthcoming.
setAlphaValue:
windowAlpha
Description forthcoming.
setAspectRatio:
ratio
Description forthcoming.
setAutodisplay:
flag
Description forthcoming.
setAutorecalculatesKeyViewLoop:
flag
Description forthcoming.
setBackgroundColor:
color
Description forthcoming.
setBackingType:
type
Description forthcoming.
setCanHide:
flag
Description forthcoming.
setContentAspectRatio:
ratio
Description forthcoming.
setContentMaxSize:
size
Description forthcoming.
setContentMinSize:
size
Description forthcoming.
setContentResizeIncrements:
increments
Description forthcoming.
setContentSize:
aSize
Sets the size of the receiver's content view to aSize, implicitly adjusting the size of the receiver's frame to match.
setContentView:
aView
Sets the window's content view to aView, replacing any previous content view.
setDefaultButtonCell:
aCell
Description forthcoming.
setDelegate:
anObject
Sets the delegate to anObject.
setDepthLimit:
limit
Description forthcoming.
setDisplaysWhenScreenProfileChanges:
flag
Description forthcoming.
setDocumentEdited:
flag
Set document edit status. If `YES`, then, if the receiver has a close button, the close button will show a broken X. If `NO`, then, if the reciever has a close button, the close button will show a solid X.
setDynamicDepthLimit:
flag
Description forthcoming.
setExcludedFromWindowsMenu:
flag
Description forthcoming.
setFrame:
frameRect
display:
flag

Sets the frame for the receiver to frameRect and if flag is `YES` causes the window contents to be refreshed. The value of frameRect is the desired on-screen size and position of the window including all border/decoration.

The size of the frame is constrained to the minimum and maximum sizes set for the receiver (if any).
Its position is constrained to be on screen if it is a titled window.

setFrame:
frameRect
display:
displayFlag
animate:
animationFlag
Description forthcoming.
setFrameAutosaveName:
name
Description forthcoming.
setFrameFromString:
string
Description forthcoming.
setFrameOrigin:
aPoint
Sets the origin (bottom left corner) of the receiver's frame to be the specified point (in screen coordinates).
setFrameTopLeftPoint:
aPoint
Sets the top left corner of the receiver's frame to be the specified point (in screen coordinates).
setFrameUsingName:
name
Description forthcoming.
setFrameUsingName:
name
force:
force
Description forthcoming.
setHasShadow:
hasShadow
Description forthcoming.
setHidesOnDeactivate:
flag
Description forthcoming.
setIgnoresMouseEvents:
flag
Description forthcoming.
setInitialFirstResponder:
aView
Sets the initial first responder of the receiver.
setLevel:
newLevel
Description forthcoming.
setMaxSize:
aSize
Description forthcoming.
setMinSize:
aSize
Description forthcoming.
setMiniwindowImage:
image
Description forthcoming.
setMiniwindowTitle:
title
Description forthcoming.
setMovableByWindowBackground:
flag
Description forthcoming.
setOneShot:
flag
Description forthcoming.
setOpaque:
isOpaque
Description forthcoming.
setParentWindow:
window
Description forthcoming.
setPreservesContentDuringLiveResize:
flag
Description forthcoming.
setReleasedWhenClosed:
flag
If `YES`, then the window is released when the close method is called.
setRepresentedFilename:
aString
Description forthcoming.
setResizeIncrements:
aSize
Description forthcoming.
setShowsResizeIndicator:
show
Description forthcoming.
setShowsToolbarButton:
flag
Description forthcoming.
setTitle:
aString
Sets the window's title to the string aString.
setTitleWithRepresentedFilename:
aString
Description forthcoming.
setViewsNeedDisplay:
flag
Description forthcoming.
setWindowController:
windowController
Description forthcoming.
showsResizeIndicator
Description forthcoming.
showsToolbarButton
Description forthcoming.
standardWindowButton:
button
Description forthcoming.
stringWithSavedFrame
Description forthcoming.
styleMask
Description forthcoming.
title
Returns an NSString containing the text of the window's title.
tryToPerform:
anAction
with:
anObject
Description forthcoming.
unregisterDraggedTypes
Description forthcoming.
update
Description forthcoming.
useOptimizedDrawing:
flag
Description forthcoming.
userSpaceScaleFactor
Description forthcoming.
validRequestorForSendType:
sendType
returnType:
returnType
Description forthcoming.
viewsNeedDisplay
Description forthcoming.
windowController
Description forthcoming.
windowHandle
Description forthcoming.
windowNumber
Description forthcoming.
windowRef
Description forthcoming.
worksWhenModal
Description forthcoming.
zoom:
sender
Zooms the receiver. This method calls the delegate method windowShouldZoom:toFrame: to determine if the window should be allowed to zoom to full screen.
Software documentation for the NSObject(NSWindowDelegate) informal protocol
AppKit/NSWindow.h
Description forthcoming.
attachedSheet
Description forthcoming.
window:
window
willPositionSheet:
sheet
usingRect:
rect
Description forthcoming.
windowDidBecomeKey:
aNotification
Description forthcoming.
windowDidBecomeMain:
aNotification
Description forthcoming.
windowDidChangeScreen:
aNotification
Description forthcoming.
windowDidChangeScreenProfile:
aNotification
Description forthcoming.
windowDidDeminiaturize:
aNotification
Description forthcoming.
windowDidEndSheet:
aNotification
Description forthcoming.
windowDidExpose:
aNotification
Description forthcoming.
windowDidMiniaturize:
aNotification
Description forthcoming.
windowDidMove:
aNotification
Description forthcoming.
windowDidResignKey:
aNotification
Description forthcoming.
windowDidResignMain:
aNotification
Description forthcoming.
windowDidResize:
aNotification
Description forthcoming.
windowDidUpdate:
aNotification
Description forthcoming.
windowShouldClose:
sender
Description forthcoming.
windowShouldZoom:
sender
toFrame:
aFrame
Description forthcoming.
windowWillBeginSheet:
aNotification
Description forthcoming.
windowWillClose:
aNotification
Description forthcoming.
windowWillMiniaturize:
aNotification
Description forthcoming.
windowWillMove:
aNotification
Description forthcoming.
windowWillResize:
sender
toSize:
frameSize
Description forthcoming.
windowWillReturnFieldEditor:
sender
toObject:
client
Description forthcoming.
windowWillReturnUndoManager:
sender
Description forthcoming.
windowWillUseStandardFrame:
sender
defaultFrame:
aFrame
Description forthcoming.
Software documentation for the NSWindow(GNUstepBackend) category
AppKit/NSWindow.h
Description forthcoming.
_captureMouse:
sender
Warning the underscore at the start of the name of this method indicates that it is private, for internal use only, and you should not use the method in your code.
_initDefaults
Warning the underscore at the start of the name of this method indicates that it is private, for internal use only, and you should not use the method in your code.
_releaseMouse:
sender
Warning the underscore at the start of the name of this method indicates that it is private, for internal use only, and you should not use the method in your code.
_setVisible:
flag
Warning the underscore at the start of the name of this method indicates that it is private, for internal use only, and you should not use the method in your code.
Software documentation for the NSWindow(GNUstepTextView) category
AppKit/NSWindow.h
Description forthcoming.
_futureFirstResponder
Warning the underscore at the start of the name of this method indicates that it is private, for internal use only, and you should not use the method in your code.
Software documentation for the NSWindow(Toolbar) category
AppKit/NSWindow.h
Description forthcoming.
runToolbarCustomizationPalette:
sender
Description forthcoming.
setToolbar:
toolbar
Description forthcoming.
toggleToolbarShown:
sender
Description forthcoming.
toolbar
Description forthcoming.