Skip to content
This repository has been archived by the owner on Feb 19, 2019. It is now read-only.

Commit

Permalink
added feedback reporter
Browse files Browse the repository at this point in the history
  • Loading branch information
tcurdt committed May 26, 2008
1 parent bba1b29 commit 0bd044d
Show file tree
Hide file tree
Showing 19 changed files with 169 additions and 2 deletions.
5 changes: 5 additions & 0 deletions English.lproj/MainMenu.nib/classes.nib

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion English.lproj/MainMenu.nib/info.nib

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file modified English.lproj/MainMenu.nib/keyedobjects.nib
Binary file not shown.
1 change: 1 addition & 0 deletions Frameworks/FeedbackReporter.framework/FeedbackReporter
1 change: 1 addition & 0 deletions Frameworks/FeedbackReporter.framework/Headers
1 change: 1 addition & 0 deletions Frameworks/FeedbackReporter.framework/Resources
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
Binary file not shown.
Binary file not shown.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file not shown.
@@ -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>
1 change: 1 addition & 0 deletions Frameworks/FeedbackReporter.framework/Versions/Current
2 changes: 2 additions & 0 deletions Info.plist
Expand Up @@ -51,5 +51,7 @@
<string>NSApplication</string> <string>NSApplication</string>
<key>SUFeedURL</key> <key>SUFeedURL</key>
<string>http://vafer.org/projects/uif2iso4mac/appcast.xml</string> <string>http://vafer.org/projects/uif2iso4mac/appcast.xml</string>
<key>FRFeedbacReporter.targetURL</key>
<string>http://vafer.org/feedback.php?project=%@</string>
</dict> </dict>
</plist> </plist>
3 changes: 3 additions & 0 deletions Sources/AppController.h
Expand Up @@ -23,4 +23,7 @@
@interface AppController : NSObject @interface AppController : NSObject
{ {
} }

- (IBAction)sendFeedback:(id)sender;

@end @end
9 changes: 8 additions & 1 deletion Sources/AppController.m
Expand Up @@ -19,6 +19,7 @@
*/ */


#import "AppController.h" #import "AppController.h"
#import <FeedbackReporter/FRFeedbackReporter.h>


@implementation AppController @implementation AppController


Expand All @@ -32,7 +33,13 @@ - (id) init
- (void) awakeFromNib - (void) awakeFromNib
{ {
[[NSApplication sharedApplication] setDelegate:self]; [[NSApplication sharedApplication] setDelegate:self];


[FRFeedbackReporter reportCrashAsUser:nil];
}

- (IBAction)sendFeedback:(id)sender
{
[FRFeedbackReporter reportAsUser:nil];
} }


- (BOOL) applicationShouldOpenUntitledFile:(NSApplication *)sender - (BOOL) applicationShouldOpenUntitledFile:(NSApplication *)sender
Expand Down
10 changes: 10 additions & 0 deletions uif2iso4mac.xcodeproj/project.pbxproj
Expand Up @@ -19,6 +19,8 @@
9D7259460D99CC7B00326CAF /* MyDocument.m in Sources */ = {isa = PBXBuildFile; fileRef = 9D7259410D99CC7B00326CAF /* MyDocument.m */; }; 9D7259460D99CC7B00326CAF /* MyDocument.m in Sources */ = {isa = PBXBuildFile; fileRef = 9D7259410D99CC7B00326CAF /* MyDocument.m */; };
9D7259470D99CC7B00326CAF /* uif.c in Sources */ = {isa = PBXBuildFile; fileRef = 9D7259420D99CC7B00326CAF /* uif.c */; }; 9D7259470D99CC7B00326CAF /* uif.c in Sources */ = {isa = PBXBuildFile; fileRef = 9D7259420D99CC7B00326CAF /* uif.c */; };
9D7259610D99CD1800326CAF /* Sparkle.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 9D7259600D99CD1800326CAF /* Sparkle.framework */; }; 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 */ /* End PBXBuildFile section */


/* Begin PBXCopyFilesBuildPhase section */ /* Begin PBXCopyFilesBuildPhase section */
Expand All @@ -28,6 +30,7 @@
dstPath = ""; dstPath = "";
dstSubfolderSpec = 10; dstSubfolderSpec = 10;
files = ( files = (
9DF81EDC0DEAC40F00F2EA54 /* FeedbackReporter.framework in CopyFiles */,
9D04AF970D99CFAF00D5E1C3 /* Sparkle.framework in CopyFiles */, 9D04AF970D99CFAF00D5E1C3 /* Sparkle.framework in CopyFiles */,
); );
runOnlyForDeploymentPostprocessing = 0; runOnlyForDeploymentPostprocessing = 0;
Expand All @@ -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; }; 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; }; 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; }; 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 */ /* End PBXFileReference section */


/* Begin PBXFrameworksBuildPhase section */ /* Begin PBXFrameworksBuildPhase section */
Expand All @@ -63,6 +67,7 @@
files = ( files = (
8D15AC340486D014006FF6A4 /* Cocoa.framework in Frameworks */, 8D15AC340486D014006FF6A4 /* Cocoa.framework in Frameworks */,
9D7259610D99CD1800326CAF /* Sparkle.framework in Frameworks */, 9D7259610D99CD1800326CAF /* Sparkle.framework in Frameworks */,
9DF81ED70DEAC40600F2EA54 /* FeedbackReporter.framework in Frameworks */,
); );
runOnlyForDeploymentPostprocessing = 0; runOnlyForDeploymentPostprocessing = 0;
}; };
Expand Down Expand Up @@ -144,6 +149,7 @@
2A37F4C3FDCFA73011CA2CEA /* Frameworks */ = { 2A37F4C3FDCFA73011CA2CEA /* Frameworks */ = {
isa = PBXGroup; isa = PBXGroup;
children = ( children = (
9DF81ED60DEAC40600F2EA54 /* FeedbackReporter.framework */,
9D7259600D99CD1800326CAF /* Sparkle.framework */, 9D7259600D99CD1800326CAF /* Sparkle.framework */,
1058C7A6FEA54F5311CA2CBB /* Linked Frameworks */, 1058C7A6FEA54F5311CA2CBB /* Linked Frameworks */,
1058C7A8FEA54F5311CA2CBB /* Other Frameworks */, 1058C7A8FEA54F5311CA2CBB /* Other Frameworks */,
Expand Down Expand Up @@ -262,8 +268,10 @@
FRAMEWORK_SEARCH_PATHS = ( FRAMEWORK_SEARCH_PATHS = (
"$(inherited)", "$(inherited)",
"$(FRAMEWORK_SEARCH_PATHS_QUOTED_FOR_TARGET_1)", "$(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_1 = "\"$(SRCROOT)/Frameworks\"";
FRAMEWORK_SEARCH_PATHS_QUOTED_FOR_TARGET_2 = "\"$(SRCROOT)/Frameworks\"";
GCC_DYNAMIC_NO_PIC = NO; GCC_DYNAMIC_NO_PIC = NO;
GCC_ENABLE_FIX_AND_CONTINUE = YES; GCC_ENABLE_FIX_AND_CONTINUE = YES;
GCC_MODEL_TUNING = G5; GCC_MODEL_TUNING = G5;
Expand All @@ -287,8 +295,10 @@
FRAMEWORK_SEARCH_PATHS = ( FRAMEWORK_SEARCH_PATHS = (
"$(inherited)", "$(inherited)",
"$(FRAMEWORK_SEARCH_PATHS_QUOTED_FOR_TARGET_1)", "$(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_1 = "\"$(SRCROOT)/Frameworks\"";
FRAMEWORK_SEARCH_PATHS_QUOTED_FOR_TARGET_2 = "\"$(SRCROOT)/Frameworks\"";
GCC_GENERATE_DEBUGGING_SYMBOLS = NO; GCC_GENERATE_DEBUGGING_SYMBOLS = NO;
GCC_MODEL_TUNING = G5; GCC_MODEL_TUNING = G5;
INFOPLIST_FILE = Info.plist; INFOPLIST_FILE = Info.plist;
Expand Down

0 comments on commit 0bd044d

Please sign in to comment.