Skip to content

Instantly share code, notes, and snippets.

@tolmasky
Created September 14, 2009 01:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tolmasky/186411 to your computer and use it in GitHub Desktop.
Save tolmasky/186411 to your computer and use it in GitHub Desktop.
- (CPWindow)window
{
if (!_window)
{
[self windowWillLoad];
[_document windowControllerWillLoadCib:self];
[self loadWindow];
if (_window === nil && _document !== nil && _cibOwner === _document)
[self setWindow:[_document valueForKey:@"window"]];
[self windowDidLoad];
[_document windowControllerDidLoadCib:self];
[self synchronizeWindowTitleWithDocumentName];
}
return _window;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment