Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
28 lines (21 sloc) 766 Bytes
// Copyright (c) 2010-2011, Rasmus Andersson. All rights reserved.
// Use of this source code is governed by a MIT-style license that can be
// found in the LICENSE file.
#import "KASTViewerWindowController.h"
#import "KASTViewerController.h"
#import "common.h"
static KASTViewerWindowController *gSharedInstance_ = nil;
@implementation KASTViewerWindowController
@synthesize outlineViewController = outlineViewController_;
+ (KASTViewerWindowController*)sharedInstance {
if (!gSharedInstance_) {
KASTViewerWindowController *controller =
[[self alloc] initWithWindowNibName:@"ast-viewer"];
if (h_casid(&gSharedInstance_, controller)) {
[controller showWindow:self];
[controller release];
return gSharedInstance_;
Jump to Line
Something went wrong with that request. Please try again.