forked from machinecodex/CodexFab_LicenseExample
/
XMAppDelegate.m
54 lines (37 loc) · 1.08 KB
/
XMAppDelegate.m
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
//
// CodexFab LicenseExample
//
// XMAppDelegate.m
//
// App delegate: substitute with your own AppDelegate or main NSDocument class.
// The important thing is to register for the XMDidChangeRegistrationNotification notification.
//
// Licensed under CC Attribution License 3.0 <http://creativecommons.org/licenses/by/3.0/>
//
// Based on CocoaFob by Gleb Dolgich
// <http://github.com/gbd/cocoafob/tree/master>
//
// Created by Alex Clarke on 10/06/09.
// Copyright 2009 MachineCodex Software Australia. All rights reserved.
// <http://www.machinecodex.com>
#import "XMAppDelegate.h"
#import "XMArgumentKeys.h"
@interface XMAppDelegate (Private)
- (void)registerForNotifications;
@end
@implementation XMAppDelegate
- (id) init
{
self = [super init];
if (self != nil) {
[self registerForNotifications];
[self launchCheck];
}
return self;
}
#pragma mark -
#pragma mark Notification
- (void)registerForNotifications {
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(registrationChanged:) name:XMDidChangeRegistrationNotification object:nil];
}
@end