-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathmain.m
30 lines (23 loc) · 802 Bytes
/
main.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
//
// main.m
// PTE_Mac
//
// Created by Paul Freshney on 19/05/2011.
// Copyright 2011-2016 freshney.org. All rights reserved.
//
#import <Cocoa/Cocoa.h>
const NSString * global_bundleVersion = @"1.5";
const NSString * global_bundleIdentifier = @"com.paulalanfreshney.ptemac";
int main(int argc, char *argv[])
{
// put the example receipt on the desktop (or change that path)
//NSString * pathToReceipt = @"~/Desktop/receipt";
// in your own code you have to do:
//NSString * pathToReceipt = [[[NSBundle mainBundle] bundlePath] stringByAppendingPathComponent:@"Contents/_MASReceipt/receipt"];
// this example is not a bundle so it wont work here.
//if (!validateReceiptAtPath(pathToReceipt))
//{
// exit(173);
//}
return NSApplicationMain(argc, (const char **) argv);
}