Merge pull request #15 from iamleeg/document-nswindowcontroller

Document methods I have recently used in NSWindowController
This commit is contained in:
Fred Kiefer 2018-05-28 02:57:29 -04:00 committed by GitHub
commit 0f647519ac
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 16 additions and 0 deletions

View file

@ -1,3 +1,7 @@
2018-03-29 Graham Lee <graham@iamleeg.com>
* Source/NSWindowController.m: gsdoc
2018-03-30 Fred Kiefer <FredKiefer@gmx.de>
* Source/NSDocument.m (-revertToContentsOfURL:ofType:error:): Add

View file

@ -388,6 +388,8 @@
}
}
/** Orders the receiver's window front, also making it the key window
if appropriate. */
- (IBAction) showWindow: (id)sender
{
NSWindow *window = [self window];
@ -434,15 +436,20 @@
}
}
/** Returns YES if the receiver's window has loaded. */
- (BOOL) isWindowLoaded
{
return _wcFlags.nib_is_loaded;
}
/** Subclasses can override this method to perform any customisation
needed after the receiver has loaded its window. */
- (void) windowDidLoad
{
}
/** Subclasses can override this method to perform any customisation
needed before the receiver loads its window. */
- (void) windowWillLoad
{
}
@ -470,6 +477,11 @@
[self windowDidLoad];
}
/** Loads the receiver's window. You can override this method if the
way that the window is loaded is not appropriate. You should not
normally need to call this method directly; it will be called when
the window controller needs to access the window.
*/
- (void) loadWindow
{
NSDictionary *table;