mirror of
https://github.com/macvim-dev/macvim.git
synced 2026-06-19 15:38:39 +02:00
9ed9a9f105
git-svn-id: http://macvim.googlecode.com/svn/trunk@5 96c4425d-ca35-0410-94e5-3396d5c13a8f
31 lines
650 B
Objective-C
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
|