<<Description Forthcoming.>>
- (BOOL)windowShouldClose:(id)sender
NO
to prevent sender from
closing.- (BOOL)windowShouldZoom:(NSWindow
*)sender toFrame:(NSRect)newFrame
NO
to prevent sender from zooming.See Also: - windowWillUseStandardFrame:defaultFrame:
- (NSSize)windowWillResize:(NSWindow
*)sender toSize:(NSSize)proposedFrameSize
While the user is resizing an NSWindow, the delegate is sent a series of windowWillResize:toSize: messages as the NSWindow's outline is dragged. The NSWindow's outline is displayed at the constrained size as set by this method.
- (id)windowWillReturnFieldEditor:(NSWindow
*)sender toObject:(id)anObject
nil
, the NSWindow substitutes
it for the field editor and returns it to anObject.See Also: - fieldEditor:forObject:
- (NSRect)windowWillUseStandardFrame:(NSWindow
*)sender defaultFrame (NSRect)defaultFrame
The standard frame for a window should supply the size and location that are "best" for the type of information shown in the window, taking into account the available display or displays. For example, the best width for a window that displays a word-processing document is the width of a page or the width of the display, whichever is smaller. The best height can be determined similarly. On return from this method, the zoom: method modifies the returned standard frame, if necessary, to fit on the current screen.
To customize the standard state, you implement windowWillUseStandardFrame:defaultFrame: in the class of the window's delegate or, if necessary, in a window subclass. Your version should return a suitable standard frame, based on the currently displayed data or other factors.
See Also: - windowShouldZoom:toFrame:, - zoom: (NSWindow class)
- (NSUndoManager *)windowWillReturnUndoManager:(NSWindow
*)sender