Files
macvim-mirror/PSMTabBarControl/source/AppController.m
T
Bjorn Winckler 9ed9a9f105 Initial import
git-svn-id: http://macvim.googlecode.com/svn/trunk@5 96c4425d-ca35-0410-94e5-3396d5c13a8f
2007-07-25 07:09:26 +00:00

31 lines
650 B
Objective-C

//
// AppController.m
// TabBarControl
//
// Created by John Pannell on 12/19/05.
// Copyright 2005 Positive Spin Media. All rights reserved.
//
#import "AppController.h"
#import "WindowController.h"
@implementation AppController
- (void)awakeFromNib
{
[self newWindow:self];
[self newWindow:self];
NSRect frontFrame = [[NSApp keyWindow] frame];
frontFrame.origin.x += 400;
[[NSApp keyWindow] setFrame:frontFrame display:YES];
}
- (IBAction)newWindow:(id)sender
{
// put up a window
WindowController *newWindow = [[WindowController alloc] initWithWindowNibName:@"Window"];
[newWindow showWindow:self];
}
@end