diff --git a/ChangeLog b/ChangeLog index 2cc2f985e..7b59dcf63 100644 --- a/ChangeLog +++ b/ChangeLog @@ -4,6 +4,7 @@ * Source/NSFontManager.m: Improved documentation * Source/NSFontPanel.m: Improved documentation * Source/NSMatrix.m: Improved documentation + * Source/NSPanel.m: Improved documentation 2005-12-04 Fabien VALLON diff --git a/Source/NSPanel.m b/Source/NSPanel.m index 1358af45e..d53524f4e 100644 --- a/Source/NSPanel.m +++ b/Source/NSPanel.m @@ -89,14 +89,19 @@ [super keyDown: theEvent]; } -/* - * Determining the Panel's Behavior +/**

Returns whether the NSPanel is a floating panel, e.g. the window level + is NSFloatingWindowLevel instead of NSNormalWindowLevel.

+

See Also: -setFloatingPanel:

*/ - (BOOL) isFloatingPanel { return _isFloatingPanel; } +/**

Sets whether the NSPanel is a floating panel, e.g. the window level + is NSFloatingWindowLevel instead of NSNormalWindowLevel.

+

See Also: -isFloatingPanel [NSWindow-setLevel:]

+ */ - (void) setFloatingPanel: (BOOL)flag { if (_isFloatingPanel != flag) @@ -113,21 +118,38 @@ } } +/**

Returns whether the NSPanel can receive events when another window/panel + runs modally.

See Also: -setWorksWhenModal: + [NSApplication-runModalSession:]

+ */ - (BOOL) worksWhenModal { return _worksWhenModal; } +/**

Sets whether the NSPanel can receive events when another window/panel + runs modally.

See Also: -worksWhenModal [NSApplication-runModalSession:] + */ - (void) setWorksWhenModal: (BOOL)flag { _worksWhenModal = flag; } +/**

Returns whether if the NSPanel becomes key window only when a view + require to be the first responder.

+

See Also: -setBecomesKeyOnlyIfNeeded: [NSView-needsPanelToBecomeKey] + [NSWindow-sendEvent:]

+ */ - (BOOL) becomesKeyOnlyIfNeeded { return _becomesKeyOnlyIfNeeded; } +/**

Sets whether if the NSPanel becomes key window only when a view + require to be the first responder.

+

See Also: -setBecomesKeyOnlyIfNeeded: [NSView-needsPanelToBecomeKey] + [NSWindow-sendEvent:]

+ */ - (void) setBecomesKeyOnlyIfNeeded: (BOOL)flag { _becomesKeyOnlyIfNeeded = flag;