Skip to content
Permalink
Browse files

Added HelpController, Help.xib, and Help.rtf. Bare bones help system …

…support. Other minor edits.
  • Loading branch information...
FlyingDiver committed Sep 6, 2011
1 parent 4e0646f commit de1af140dbed46a53a29835d6f6ae6a1480a0282
Showing with 1,048 additions and 28 deletions.
  1. +491 −12 English.lproj/MainMenu.xib
  2. +12 −0 Help.rtf
  3. +450 −0 Help.xib
  4. +17 −0 HelpController.h
  5. +44 −0 HelpController.m
  6. BIN Icon.png
  7. +0 −1 PreferencesController.m
  8. +3 −3 StokerX-Info.plist
  9. +14 −0 StokerX.xcodeproj/project.pbxproj
  10. +5 −0 StokerXAppDelegate.h
  11. +12 −12 StokerXAppDelegate.m

Large diffs are not rendered by default.

Oops, something went wrong.
@@ -0,0 +1,12 @@
{\rtf1\ansi\ansicpg1252\cocoartf1138\cocoasubrtf150
{\fonttbl\f0\fswiss\fcharset0 Helvetica;}
{\colortbl;\red255\green255\blue255;}
\margl1440\margr1440\vieww9000\viewh8400\viewkind0
\pard\tx720\tx1440\tx2160\tx2880\tx3600\tx4320\tx5040\tx5760\tx6480\tx7200\tx7920\tx8640\pardirnatural\qc

\f0\b\fs36 \cf0 StokerX Help and Tutorial\
\
\pard\tx560\tx1120\tx1680\tx2240\tx2800\tx3360\tx3920\tx4480\tx5040\tx5600\tx6160\tx6720\pardirnatural
\b0\fs28 \cf0 This is placeholder text.\
}
450 Help.xib

Large diffs are not rendered by default.

Oops, something went wrong.
@@ -0,0 +1,17 @@
//
// HelpController.h
// StokerX
//
// Created by Joe Keenan on 9/6/11.
// Copyright 2011 Joseph P Keenan Jr. All rights reserved.
//

#import <Cocoa/Cocoa.h>

@interface HelpController : NSWindowController
{
IBOutlet NSTextView *helpTextView;
NSAttributedString *helpText;

}
@end
@@ -0,0 +1,44 @@
//
// HelpController.m
// StokerX
//
// Created by Joe Keenan on 9/6/11.
// Copyright 2011 Joseph P Keenan Jr. All rights reserved.
//

#import "HelpController.h"

@implementation HelpController

- (id) init
{
if (!(self = [super initWithWindowNibName:@"Help"]))
return nil;

return self;
}

- (void)windowDidLoad
{
[super windowDidLoad];

if (self)
{
NSString *filePath = [[NSBundle mainBundle] pathForResource:@"Help" ofType:@"rtf"];
if (filePath)
{
helpText = [[NSAttributedString alloc] initWithPath:filePath documentAttributes: nil];
if (helpText)
{
[[helpTextView textStorage]replaceCharactersInRange: NSMakeRange(0, [[helpTextView string] length])
withAttributedString: helpText];
[helpText release];
}
}
}

[self.window setFrameAutosaveName:@"Help Window"];
[self.window makeKeyAndOrderFront:nil];
}

@end
BIN +151 KB Icon.png
Binary file not shown.
@@ -105,7 +105,6 @@ - (void)windowDidLoad
[[self window] setFrameAutosaveName:@"Prefs Window"];
[[self window] makeKeyAndOrderFront: self];


}

@end
@@ -3,7 +3,7 @@
<plist version="1.0">
<dict>
<key>CFBuildDate</key>
<string>Mon Sep 5 14:59:33 EDT 2011</string>
<string>Tue Sep 6 17:08:45 EDT 2011</string>
<key>CFBundleDevelopmentRegion</key>
<string>English</string>
<key>CFBundleDocumentTypes</key>
@@ -34,11 +34,11 @@
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleShortVersionString</key>
<string>0.6.11</string>
<string>0.7.0</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
<string>80</string>
<string>75</string>
<key>FRFeedbackReporter.addressbookEmail </key>
<string>YES</string>
<key>FRFeedbackReporter.sendDetailsIsOptional</key>
@@ -35,6 +35,9 @@
C99B85C014002FB000E27494 /* Credits.rtf in Resources */ = {isa = PBXBuildFile; fileRef = C99B85BF14002FB000E27494 /* Credits.rtf */; };
C9A3616813FCB87500D98912 /* Notifications.xib in Resources */ = {isa = PBXBuildFile; fileRef = C9A3616613FCB87400D98912 /* Notifications.xib */; };
C9AF1F18140D2DC2002AEEFE /* FRFeedbackReporter.sh in Resources */ = {isa = PBXBuildFile; fileRef = C9AF1F17140D2DC2002AEEFE /* FRFeedbackReporter.sh */; };
C9B084971416B4B800F1C567 /* Help.rtf in Resources */ = {isa = PBXBuildFile; fileRef = C9B084961416B4B800F1C567 /* Help.rtf */; };
C9B0849A1416BB6100F1C567 /* HelpController.m in Sources */ = {isa = PBXBuildFile; fileRef = C9B084991416BB6100F1C567 /* HelpController.m */; };
C9B0849C1416BB8B00F1C567 /* Help.xib in Resources */ = {isa = PBXBuildFile; fileRef = C9B0849B1416BB8B00F1C567 /* Help.xib */; };
C9B1CF65123352B200648DF4 /* Preferences.xib in Resources */ = {isa = PBXBuildFile; fileRef = C9B1CF63123352B200648DF4 /* Preferences.xib */; };
C9BE1F1D12E4C345007FAEC5 /* LVColorWellCell.m in Sources */ = {isa = PBXBuildFile; fileRef = C9BE1F1912E4C345007FAEC5 /* LVColorWellCell.m */; };
C9C83DE51412B2C300AB8261 /* To-Do.rtf in Resources */ = {isa = PBXBuildFile; fileRef = C9C83DE41412B2C300AB8261 /* To-Do.rtf */; };
@@ -142,6 +145,10 @@
C99B85BF14002FB000E27494 /* Credits.rtf */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.rtf; path = Credits.rtf; sourceTree = "<group>"; };
C9A3616713FCB87400D98912 /* English */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = English; path = English.lproj/Notifications.xib; sourceTree = "<group>"; };
C9AF1F17140D2DC2002AEEFE /* FRFeedbackReporter.sh */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.script.sh; path = FRFeedbackReporter.sh; sourceTree = "<group>"; };
C9B084961416B4B800F1C567 /* Help.rtf */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.rtf; path = Help.rtf; sourceTree = "<group>"; };
C9B084981416BB6100F1C567 /* HelpController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = HelpController.h; sourceTree = "<group>"; };
C9B084991416BB6100F1C567 /* HelpController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = HelpController.m; sourceTree = "<group>"; };
C9B0849B1416BB8B00F1C567 /* Help.xib */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.xib; path = Help.xib; sourceTree = "<group>"; };
C9B1CF64123352B200648DF4 /* English */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = English; path = English.lproj/Preferences.xib; sourceTree = "<group>"; };
C9BE1F1812E4C345007FAEC5 /* LVColorWellCell.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = LVColorWellCell.h; sourceTree = "<group>"; };
C9BE1F1912E4C345007FAEC5 /* LVColorWellCell.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = LVColorWellCell.m; sourceTree = "<group>"; };
@@ -206,6 +213,8 @@
C929300313F810C2007F685C /* StokerXTwitter.m */,
C9EC2EE81278F6DA00289387 /* Stoker.h */,
C9EC2EE91278F6DA00289387 /* Stoker.m */,
C9B084981416BB6100F1C567 /* HelpController.h */,
C9B084991416BB6100F1C567 /* HelpController.m */,
C967348E13E46DD10042841B /* PreferencesController.h */,
C967348F13E46DD70042841B /* PreferencesController.m */,
);
@@ -278,11 +287,13 @@
8D1107310486CEB800E47090 /* StokerX-Info.plist */,
089C165CFE840E0CC02AAC07 /* InfoPlist.strings */,
1DDD58140DA1D0A300B32029 /* MainMenu.xib */,
C9B0849B1416BB8B00F1C567 /* Help.xib */,
C9B1CF63123352B200648DF4 /* Preferences.xib */,
C9A3616613FCB87400D98912 /* Notifications.xib */,
C9AF1F17140D2DC2002AEEFE /* FRFeedbackReporter.sh */,
C9F6710D140B2ADB0033F39C /* StokerX.png */,
C946B0F6140B35AD00EA46D6 /* StokerX.icns */,
C9B084961416B4B800F1C567 /* Help.rtf */,
C99B85BF14002FB000E27494 /* Credits.rtf */,
);
name = Resources;
@@ -478,6 +489,8 @@
C946B0F7140B35AD00EA46D6 /* StokerX.icns in Resources */,
C9AF1F18140D2DC2002AEEFE /* FRFeedbackReporter.sh in Resources */,
C9C83DE51412B2C300AB8261 /* To-Do.rtf in Resources */,
C9B084971416B4B800F1C567 /* Help.rtf in Resources */,
C9B0849C1416BB8B00F1C567 /* Help.xib in Resources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
@@ -539,6 +552,7 @@
C91ADC631402ACF600A6472E /* NotificationTest.m in Sources */,
C91ADC661402B1D700A6472E /* NotificationAction.m in Sources */,
C98BDAF2140A61AE00D1424F /* SoundPicker.m in Sources */,
C9B0849A1416BB6100F1C567 /* HelpController.m in Sources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
@@ -9,6 +9,7 @@
#import <Cocoa/Cocoa.h>
#import "JSON.h"
#import "Stoker.h"
#import "HelpController.h"
#import "PreferencesController.h"
#import "NotificationController.h"
#import "LVColorWellCell.h"
@@ -36,6 +37,7 @@
IBOutlet CPTLayerHostingView *graphView;

IBOutlet PreferencesController *preferencesController;
IBOutlet HelpController *helpController;
IBOutlet StokerXTwitter *tweetController;
IBOutlet NotificationController *notificationController;

@@ -50,8 +52,11 @@
Boolean exitWaiting;
Boolean updateWaiting;
NSInvocation *updateInvocation;


}

- (IBAction) showHelpWindow:(id)sender;
- (IBAction) showFeedbackForm:(id)sender;
- (IBAction) showPreferencePanel:(id)sender;
- (IBAction) showNotificationsWindow:(id)sender;
@@ -149,17 +149,8 @@ - (void) applicationDidFinishLaunching:(NSNotification *) notes

if ([[NSUserDefaults standardUserDefaults] stringForKey: kStokeripAddressKey])
{
if ([[NSUserDefaults standardUserDefaults] stringForKey: kStokerhttpPortKey])
{
[theStoker connectToIPAddress: [[NSUserDefaults standardUserDefaults] stringForKey: kStokeripAddressKey]
andPort: [[NSUserDefaults standardUserDefaults] stringForKey: kStokerhttpPortKey]];
}
else
{
[theStoker connectToIPAddress: [[NSUserDefaults standardUserDefaults] stringForKey: kStokeripAddressKey]
andPort: @"80"];

}
[theStoker connectToIPAddress: [[NSUserDefaults standardUserDefaults] stringForKey: kStokeripAddressKey]
andPort: [[NSUserDefaults standardUserDefaults] stringForKey: kStokerhttpPortKey]];
}
else
{
@@ -270,6 +261,16 @@ - (IBAction)showPreferencePanel:(id)sender
[preferencesController showWindow:self];
}


- (IBAction)showHelpWindow:(id)sender
{
if (!helpController)
helpController = [[HelpController alloc] init];

[helpController showWindow:self];
}


- (IBAction)showNotificationsWindow:(id)sender
{
[notificationController showWindow: self];
@@ -285,7 +286,6 @@ - (IBAction)lidDetectOnOff:(id)sender

}


- (IBAction)showFeedbackForm:(id)sender
{
[[FRFeedbackReporter sharedReporter] reportFeedback];

0 comments on commit de1af14

Please sign in to comment.
You can’t perform that action at this time.