Permalink
Browse files

upgraded to FeedbackReporter 1.0.1

  • Loading branch information...
1 parent 0bd044d commit bc8f3e9e91eafe6666dd1304b6683fae21da69e3 @tcurdt committed Jun 1, 2008
@@ -0,0 +1,24 @@
+/*
+ * Copyright 2008, Jens Alfke, 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 FRExceptionReportingApplication : NSApplication {
+
+}
+
+@end
@@ -21,7 +21,15 @@
{
}
++ (void) setUser:(NSString*)user;
+
++ (int) reportFeedback;
++ (int) reportIfCrash;
++ (int) reportException:(NSException *)exception;
+
+// deprecated
+ (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.
@@ -7,7 +7,7 @@
<key>CFBundleExecutable</key>
<string>FeedbackReporter</string>
<key>CFBundleIdentifier</key>
- <string>com.yourcompany.yourcocoaframework</string>
+ <string>org.vafer.FeedbackReporter</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundleName</key>
View
@@ -48,10 +48,10 @@
<key>NSMainNibFile</key>
<string>MainMenu</string>
<key>NSPrincipalClass</key>
- <string>NSApplication</string>
+ <string>FRExceptionReportingApplication</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>
+ <key>FRFeedbacReporter.targetURL</key>
+ <string>http://vafer.org/feedback.php?project=%@</string>
</dict>
</plist>
View
@@ -34,12 +34,12 @@ - (void) awakeFromNib
{
[[NSApplication sharedApplication] setDelegate:self];
- [FRFeedbackReporter reportCrashAsUser:nil];
+ [FRFeedbackReporter reportIfCrash];
}
- (IBAction)sendFeedback:(id)sender
{
- [FRFeedbackReporter reportAsUser:nil];
+ [FRFeedbackReporter reportFeedback];
}
- (BOOL) applicationShouldOpenUntitledFile:(NSApplication *)sender

0 comments on commit bc8f3e9

Please sign in to comment.