You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
39 lines
1.2 KiB
39 lines
1.2 KiB
// |
|
// FeedbackDemoAppDelegate.m |
|
// FeedbackDemo |
|
// |
|
// Created by Andrew Wooster on 5/30/11. |
|
// Copyright 2011 Planetary Scale LLC. All rights reserved. |
|
// |
|
|
|
#import "FeedbackDemoAppDelegate.h" |
|
#import <ApptentiveConnect/ATConnect.h> |
|
#import <ApptentiveConnect/ATAppRatingFlow.h> |
|
#import "defines.h" |
|
|
|
@implementation FeedbackDemoAppDelegate |
|
|
|
@synthesize window; |
|
@synthesize versionTextField; |
|
|
|
- (void)applicationDidFinishLaunching:(NSNotification *)aNotification { |
|
// Insert code here to initialize your application |
|
[[ATConnect sharedConnection] setApiKey:kApptentiveAPIKey]; |
|
self.versionTextField.stringValue = [NSString stringWithFormat:@"ApptentiveConnect v%@", kATConnectVersionString]; |
|
ATAppRatingFlow *ratingFlow = [ATAppRatingFlow sharedRatingFlowWithAppID:kApptentiveAppID]; |
|
[ratingFlow appDidLaunch:YES]; |
|
} |
|
|
|
- (IBAction)showFeedbackWindow:(id)sender { |
|
[[ATConnect sharedConnection] showFeedbackWindow:sender]; |
|
} |
|
|
|
- (IBAction)showFeedbackWindowForFeedback:(id)sender { |
|
[[ATConnect sharedConnection] showFeedbackWindow:self]; |
|
} |
|
|
|
- (IBAction)showRatingFlow:(id)sender { |
|
ATAppRatingFlow *ratingFlow = [ATAppRatingFlow sharedRatingFlowWithAppID:kApptentiveAppID]; |
|
[ratingFlow showEnjoymentDialog:sender]; |
|
} |
|
@end
|
|
|