Skip to content

Commit

Permalink
New About window
Browse files Browse the repository at this point in the history
  • Loading branch information
OlivierWathgen committed Aug 2, 2011
1 parent 9b33b35 commit 7c3785b
Show file tree
Hide file tree
Showing 6 changed files with 707 additions and 5 deletions.
19 changes: 19 additions & 0 deletions AboutController.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
//
// AboutController.h
// GPS Assist Updater
//
// Created by Olivier Wathgen on 2/8/11.
// Copyright 2011 __MyCompanyName__. All rights reserved.
//

#import <Cocoa/Cocoa.h>

@interface AboutController : NSWindowController
{
IBOutlet NSButton *licence;
IBOutlet NSPopover *licencePopover;
}

- (IBAction)showLicence:(id)sender;

@end
37 changes: 37 additions & 0 deletions AboutController.m
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
//
// AboutController.m
// GPS Assist Updater
//

#import "AboutController.h"

@implementation AboutController

- (id)init
{
self = [super initWithWindowNibName:@"AboutWindow"];
if (self) {

}

return self;
}

- (void)windowDidLoad
{
[super windowDidLoad];
}

- (IBAction)showLicence:(id)sender
{
if ([licencePopover isShown])
{
[licencePopover close];
}
else
{
[licencePopover showRelativeToRect:[sender bounds] ofView:sender preferredEdge:NSMaxYEdge];
}
}

@end
Loading

0 comments on commit 7c3785b

Please sign in to comment.