-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
9b33b35
commit 7c3785b
Showing
6 changed files
with
707 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
Oops, something went wrong.