Permalink
Browse files

added feedback reporter

  • Loading branch information...
1 parent bba1b29 commit 0bd044d09363b4668623883425f770bc42f163ed @tcurdt committed May 26, 2008

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.
Binary file not shown.
@@ -0,0 +1,27 @@
+/*
+ * Copyright 2008, Torsten Curdt
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+#import <Cocoa/Cocoa.h>
+
+
+@interface FRFeedbackReporter : NSObject
+{
+}
+
++ (void) reportAsUser:(NSString*)user;
++ (void) reportCrashAsUser:(NSString*)user;
+
+@end

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.
@@ -0,0 +1,22 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<plist version="1.0">
+<dict>
+ <key>CFBundleDevelopmentRegion</key>
+ <string>English</string>
+ <key>CFBundleExecutable</key>
+ <string>FeedbackReporter</string>
+ <key>CFBundleIdentifier</key>
+ <string>com.yourcompany.yourcocoaframework</string>
+ <key>CFBundleInfoDictionaryVersion</key>
+ <string>6.0</string>
+ <key>CFBundleName</key>
+ <string>FeedbackReporter</string>
+ <key>CFBundlePackageType</key>
+ <string>FMWK</string>
+ <key>CFBundleSignature</key>
+ <string>????</string>
+ <key>CFBundleVersion</key>
+ <string>1.0</string>
+</dict>
+</plist>
View
@@ -51,5 +51,7 @@
<string>NSApplication</string>
<key>SUFeedURL</key>
<string>http://vafer.org/projects/uif2iso4mac/appcast.xml</string>
+ <key>FRFeedbacReporter.targetURL</key>
+ <string>http://vafer.org/feedback.php?project=%@</string>
</dict>
</plist>
View
@@ -23,4 +23,7 @@
@interface AppController : NSObject
{
}
+
+- (IBAction)sendFeedback:(id)sender;
+
@end
View
@@ -19,6 +19,7 @@
*/
#import "AppController.h"
+#import <FeedbackReporter/FRFeedbackReporter.h>
@implementation AppController
@@ -32,7 +33,13 @@ - (id) init
- (void) awakeFromNib
{
[[NSApplication sharedApplication] setDelegate:self];
-
+
+ [FRFeedbackReporter reportCrashAsUser:nil];
+}
+
+- (IBAction)sendFeedback:(id)sender
+{
+ [FRFeedbackReporter reportAsUser:nil];
}
- (BOOL) applicationShouldOpenUntitledFile:(NSApplication *)sender
@@ -19,6 +19,8 @@
9D7259460D99CC7B00326CAF /* MyDocument.m in Sources */ = {isa = PBXBuildFile; fileRef = 9D7259410D99CC7B00326CAF /* MyDocument.m */; };
9D7259470D99CC7B00326CAF /* uif.c in Sources */ = {isa = PBXBuildFile; fileRef = 9D7259420D99CC7B00326CAF /* uif.c */; };
9D7259610D99CD1800326CAF /* Sparkle.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 9D7259600D99CD1800326CAF /* Sparkle.framework */; };
+ 9DF81ED70DEAC40600F2EA54 /* FeedbackReporter.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 9DF81ED60DEAC40600F2EA54 /* FeedbackReporter.framework */; };
+ 9DF81EDC0DEAC40F00F2EA54 /* FeedbackReporter.framework in CopyFiles */ = {isa = PBXBuildFile; fileRef = 9DF81ED60DEAC40600F2EA54 /* FeedbackReporter.framework */; };
/* End PBXBuildFile section */
/* Begin PBXCopyFilesBuildPhase section */
@@ -28,6 +30,7 @@
dstPath = "";
dstSubfolderSpec = 10;
files = (
+ 9DF81EDC0DEAC40F00F2EA54 /* FeedbackReporter.framework in CopyFiles */,
9D04AF970D99CFAF00D5E1C3 /* Sparkle.framework in CopyFiles */,
);
runOnlyForDeploymentPostprocessing = 0;
@@ -54,6 +57,7 @@
9D7259420D99CC7B00326CAF /* uif.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; name = uif.c; path = Sources/uif.c; sourceTree = SOURCE_ROOT; };
9D7259430D99CC7B00326CAF /* uif.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = uif.h; path = Sources/uif.h; sourceTree = SOURCE_ROOT; };
9D7259600D99CD1800326CAF /* Sparkle.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Sparkle.framework; path = Frameworks/Sparkle.framework; sourceTree = SOURCE_ROOT; };
+ 9DF81ED60DEAC40600F2EA54 /* FeedbackReporter.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = FeedbackReporter.framework; path = Frameworks/FeedbackReporter.framework; sourceTree = SOURCE_ROOT; };
/* End PBXFileReference section */
/* Begin PBXFrameworksBuildPhase section */
@@ -63,6 +67,7 @@
files = (
8D15AC340486D014006FF6A4 /* Cocoa.framework in Frameworks */,
9D7259610D99CD1800326CAF /* Sparkle.framework in Frameworks */,
+ 9DF81ED70DEAC40600F2EA54 /* FeedbackReporter.framework in Frameworks */,
);
runOnlyForDeploymentPostprocessing = 0;
};
@@ -144,6 +149,7 @@
2A37F4C3FDCFA73011CA2CEA /* Frameworks */ = {
isa = PBXGroup;
children = (
+ 9DF81ED60DEAC40600F2EA54 /* FeedbackReporter.framework */,
9D7259600D99CD1800326CAF /* Sparkle.framework */,
1058C7A6FEA54F5311CA2CBB /* Linked Frameworks */,
1058C7A8FEA54F5311CA2CBB /* Other Frameworks */,
@@ -262,8 +268,10 @@
FRAMEWORK_SEARCH_PATHS = (
"$(inherited)",
"$(FRAMEWORK_SEARCH_PATHS_QUOTED_FOR_TARGET_1)",
+ "$(FRAMEWORK_SEARCH_PATHS_QUOTED_FOR_TARGET_2)",
);
FRAMEWORK_SEARCH_PATHS_QUOTED_FOR_TARGET_1 = "\"$(SRCROOT)/Frameworks\"";
+ FRAMEWORK_SEARCH_PATHS_QUOTED_FOR_TARGET_2 = "\"$(SRCROOT)/Frameworks\"";
GCC_DYNAMIC_NO_PIC = NO;
GCC_ENABLE_FIX_AND_CONTINUE = YES;
GCC_MODEL_TUNING = G5;
@@ -287,8 +295,10 @@
FRAMEWORK_SEARCH_PATHS = (
"$(inherited)",
"$(FRAMEWORK_SEARCH_PATHS_QUOTED_FOR_TARGET_1)",
+ "$(FRAMEWORK_SEARCH_PATHS_QUOTED_FOR_TARGET_2)",
);
FRAMEWORK_SEARCH_PATHS_QUOTED_FOR_TARGET_1 = "\"$(SRCROOT)/Frameworks\"";
+ FRAMEWORK_SEARCH_PATHS_QUOTED_FOR_TARGET_2 = "\"$(SRCROOT)/Frameworks\"";
GCC_GENERATE_DEBUGGING_SYMBOLS = NO;
GCC_MODEL_TUNING = G5;
INFOPLIST_FILE = Info.plist;

0 comments on commit 0bd044d

Please sign in to comment.