Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

User may choose b/w Growl or Notification Center

  • Loading branch information...
commit 8e246c126db9a51f5bd036e0a42eb08a34406958 1 parent 1c9e425
@alindeman authored
View
16 Reflecticle Activity Feed.xcodeproj/project.pbxproj
@@ -20,6 +20,9 @@
F15EE1D615D2B4CE00B19E6B /* Growl.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = F15EE1D515D2B4CE00B19E6B /* Growl.framework */; };
F15EE1D815D2B4E100B19E6B /* Growl.framework in CopyFiles */ = {isa = PBXBuildFile; fileRef = F15EE1D515D2B4CE00B19E6B /* Growl.framework */; };
F15EE1DB15D2B65600B19E6B /* ReflecticleActivityFeed.m in Sources */ = {isa = PBXBuildFile; fileRef = F15EE1DA15D2B65600B19E6B /* ReflecticleActivityFeed.m */; };
+ F1E4366415D6F62400C9DC68 /* PreferencesWindowController.m in Sources */ = {isa = PBXBuildFile; fileRef = F1E4366215D6F62400C9DC68 /* PreferencesWindowController.m */; };
+ F1E4366515D6F62400C9DC68 /* PreferencesWindowController.xib in Resources */ = {isa = PBXBuildFile; fileRef = F1E4366315D6F62400C9DC68 /* PreferencesWindowController.xib */; };
+ F1E4366915D6F9C600C9DC68 /* ReflecticleActivityFeedPreferences.m in Sources */ = {isa = PBXBuildFile; fileRef = F1E4366815D6F9C600C9DC68 /* ReflecticleActivityFeedPreferences.m */; };
/* End PBXBuildFile section */
/* Begin PBXCopyFilesBuildPhase section */
@@ -61,6 +64,11 @@
F15EE1D515D2B4CE00B19E6B /* Growl.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; path = Growl.framework; sourceTree = "<group>"; };
F15EE1D915D2B65600B19E6B /* ReflecticleActivityFeed.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ReflecticleActivityFeed.h; sourceTree = "<group>"; };
F15EE1DA15D2B65600B19E6B /* ReflecticleActivityFeed.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = ReflecticleActivityFeed.m; sourceTree = "<group>"; };
+ F1E4366115D6F62400C9DC68 /* PreferencesWindowController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = PreferencesWindowController.h; sourceTree = "<group>"; };
+ F1E4366215D6F62400C9DC68 /* PreferencesWindowController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = PreferencesWindowController.m; sourceTree = "<group>"; };
+ F1E4366315D6F62400C9DC68 /* PreferencesWindowController.xib */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.xib; path = PreferencesWindowController.xib; sourceTree = "<group>"; };
+ F1E4366715D6F9C600C9DC68 /* ReflecticleActivityFeedPreferences.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ReflecticleActivityFeedPreferences.h; sourceTree = "<group>"; };
+ F1E4366815D6F9C600C9DC68 /* ReflecticleActivityFeedPreferences.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = ReflecticleActivityFeedPreferences.m; sourceTree = "<group>"; };
/* End PBXFileReference section */
/* Begin PBXFrameworksBuildPhase section */
@@ -120,6 +128,8 @@
F15EE1C715D2B34E00B19E6B /* ReflecticleActivity.m */,
F125483615D2BB360030A1D8 /* ReflecticleActivityNotification.h */,
F125483715D2BB360030A1D8 /* ReflecticleActivityNotification.m */,
+ F1E4366715D6F9C600C9DC68 /* ReflecticleActivityFeedPreferences.h */,
+ F1E4366815D6F9C600C9DC68 /* ReflecticleActivityFeedPreferences.m */,
F15EE1D915D2B65600B19E6B /* ReflecticleActivityFeed.h */,
F15EE1DA15D2B65600B19E6B /* ReflecticleActivityFeed.m */,
F15EE1C815D2B34E00B19E6B /* ReflecticleClient.h */,
@@ -131,6 +141,9 @@
F15EE1BB15D2B32400B19E6B /* AppDelegate.h */,
F15EE1BC15D2B32400B19E6B /* AppDelegate.m */,
F15EE1BE15D2B32400B19E6B /* MainMenu.xib */,
+ F1E4366115D6F62400C9DC68 /* PreferencesWindowController.h */,
+ F1E4366215D6F62400C9DC68 /* PreferencesWindowController.m */,
+ F1E4366315D6F62400C9DC68 /* PreferencesWindowController.xib */,
F15EE1B015D2B32400B19E6B /* Supporting Files */,
);
path = "Reflecticle Activity Feed";
@@ -201,6 +214,7 @@
files = (
F15EE1B415D2B32400B19E6B /* InfoPlist.strings in Resources */,
F15EE1C015D2B32400B19E6B /* MainMenu.xib in Resources */,
+ F1E4366515D6F62400C9DC68 /* PreferencesWindowController.xib in Resources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
@@ -219,6 +233,8 @@
F15EE1DB15D2B65600B19E6B /* ReflecticleActivityFeed.m in Sources */,
F125483815D2BB360030A1D8 /* ReflecticleActivityNotification.m in Sources */,
F125483F15D2BDFF0030A1D8 /* ReflecticleProject.m in Sources */,
+ F1E4366415D6F62400C9DC68 /* PreferencesWindowController.m in Sources */,
+ F1E4366915D6F9C600C9DC68 /* ReflecticleActivityFeedPreferences.m in Sources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
View
6 Reflecticle Activity Feed/AppDelegate.h
@@ -9,16 +9,22 @@
#import <Cocoa/Cocoa.h>
#import <Growl/Growl.h>
+#import "ReflecticleActivityFeedPreferences.h"
#import "ReflecticleClient.h"
#import "ReflecticleActivityFeed.h"
+#import "PreferencesWindowController.h"
@interface AppDelegate : NSObject <NSApplicationDelegate, GrowlApplicationBridgeDelegate, NSUserNotificationCenterDelegate> {
NSTimer *feedTimer;
ReflecticleClient *client;
ReflecticleActivityFeed *feed;
+
+ PreferencesWindowController *preferencesController;
}
+- (IBAction)openPreferences:(id)sender;
+
@property (assign) IBOutlet NSWindow *window;
@end
View
11 Reflecticle Activity Feed/AppDelegate.m
@@ -13,11 +13,11 @@ @implementation AppDelegate
const NSTimeInterval CHECK_INTERVAL = 30.0;
- (void)applicationDidFinishLaunching:(NSNotification *)aNotification
-{
+{
[GrowlApplicationBridge setGrowlDelegate:self];
[[NSUserNotificationCenter defaultUserNotificationCenter] setDelegate:self];
- client = [[ReflecticleClient alloc] initWithApiKeyFromDotFile];
+ client = [[ReflecticleClient alloc] initWithApiKey:[ReflecticleActivityFeedPreferences apiKey]];
feed = [[ReflecticleActivityFeed alloc] initWithClient:client];
// Stop timer upon sleep; start it again upon waking
@@ -64,4 +64,11 @@ -(void)userNotificationCenter:(NSUserNotificationCenter *)center didActivateNoti
[self openReflecticleInBrowser];
}
+- (IBAction)openPreferences:(id)sender {
+ if (!preferencesController) {
+ preferencesController = [[PreferencesWindowController alloc] initWithWindowNibName:@"PreferencesWindowController"];
+ }
+
+ [preferencesController showWindow:sender];
+}
@end
View
19 Reflecticle Activity Feed/PreferencesWindowController.h
@@ -0,0 +1,19 @@
+//
+// PreferencesWindowController.h
+// Reflecticle Activity Feed
+//
+// Created by ADML on 2012-08-11.
+// Copyright (c) 2012 Highgroove. All rights reserved.
+//
+
+#import <Cocoa/Cocoa.h>
+
+#import "ReflecticleActivityFeedPreferences.h"
+
+@interface PreferencesWindowController : NSWindowController {
+ IBOutlet NSPopUpButton *notificationTypePopUpButton;
+}
+
+-(IBAction)notificationTypePopUpButtonChanged:(id)sender;
+
+@end
View
24 Reflecticle Activity Feed/PreferencesWindowController.m
@@ -0,0 +1,24 @@
+//
+// PreferencesWindowController.m
+// Reflecticle Activity Feed
+//
+// Created by ADML on 2012-08-11.
+// Copyright (c) 2012 Highgroove. All rights reserved.
+//
+
+#import "PreferencesWindowController.h"
+
+@implementation PreferencesWindowController
+
+-(void)windowDidLoad {
+ [super windowDidLoad];
+
+ [notificationTypePopUpButton selectItemWithTag:[ReflecticleActivityFeedPreferences notificationType]];
+}
+
+-(void)notificationTypePopUpButtonChanged:(id)sender {
+ NotificationType notificationType = (NotificationType)[notificationTypePopUpButton.selectedCell tag];
+ [ReflecticleActivityFeedPreferences setNotificationType:notificationType];
+}
+
+@end
View
711 Reflecticle Activity Feed/PreferencesWindowController.xib
@@ -0,0 +1,711 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<archive type="com.apple.InterfaceBuilder3.Cocoa.XIB" version="8.00">
+ <data>
+ <int key="IBDocument.SystemTarget">1080</int>
+ <string key="IBDocument.SystemVersion">12A269</string>
+ <string key="IBDocument.InterfaceBuilderVersion">2549</string>
+ <string key="IBDocument.AppKitVersion">1187</string>
+ <string key="IBDocument.HIToolboxVersion">624.00</string>
+ <object class="NSMutableDictionary" key="IBDocument.PluginVersions">
+ <string key="NS.key.0">com.apple.InterfaceBuilder.CocoaPlugin</string>
+ <string key="NS.object.0">2549</string>
+ </object>
+ <array key="IBDocument.IntegratedClassDependencies">
+ <string>IBNSLayoutConstraint</string>
+ <string>NSCustomObject</string>
+ <string>NSMenu</string>
+ <string>NSMenuItem</string>
+ <string>NSPopUpButton</string>
+ <string>NSPopUpButtonCell</string>
+ <string>NSTextField</string>
+ <string>NSTextFieldCell</string>
+ <string>NSView</string>
+ <string>NSWindowTemplate</string>
+ </array>
+ <array key="IBDocument.PluginDependencies">
+ <string>com.apple.InterfaceBuilder.CocoaPlugin</string>
+ </array>
+ <object class="NSMutableDictionary" key="IBDocument.Metadata">
+ <string key="NS.key.0">PluginDependencyRecalculationVersion</string>
+ <integer value="1" key="NS.object.0"/>
+ </object>
+ <array class="NSMutableArray" key="IBDocument.RootObjects" id="1000">
+ <object class="NSCustomObject" id="1001">
+ <string key="NSClassName">PreferencesWindowController</string>
+ </object>
+ <object class="NSCustomObject" id="1003">
+ <string key="NSClassName">FirstResponder</string>
+ </object>
+ <object class="NSCustomObject" id="1004">
+ <string key="NSClassName">NSApplication</string>
+ </object>
+ <object class="NSWindowTemplate" id="1005">
+ <int key="NSWindowStyleMask">3</int>
+ <int key="NSWindowBacking">2</int>
+ <string key="NSWindowRect">{{196, 240}, {393, 86}}</string>
+ <int key="NSWTFlags">544735232</int>
+ <string key="NSWindowTitle">Reflecticle Activity Feed Preferences</string>
+ <string key="NSWindowClass">NSWindow</string>
+ <nil key="NSViewClass"/>
+ <nil key="NSUserInterfaceItemIdentifier"/>
+ <object class="NSView" key="NSWindowView" id="1006">
+ <reference key="NSNextResponder"/>
+ <int key="NSvFlags">256</int>
+ <array class="NSMutableArray" key="NSSubviews">
+ <object class="NSTextField" id="600715714">
+ <reference key="NSNextResponder" ref="1006"/>
+ <int key="NSvFlags">268</int>
+ <string key="NSFrame">{{17, 49}, {165, 17}}</string>
+ <reference key="NSSuperview" ref="1006"/>
+ <reference key="NSWindow"/>
+ <reference key="NSNextKeyView" ref="714618031"/>
+ <string key="NSReuseIdentifierKey">_NS:1535</string>
+ <bool key="NSEnabled">YES</bool>
+ <object class="NSTextFieldCell" key="NSCell" id="889445831">
+ <int key="NSCellFlags">68157504</int>
+ <int key="NSCellFlags2">71304192</int>
+ <string key="NSContents">Reflecticle API Key:</string>
+ <object class="NSFont" key="NSSupport" id="868216775">
+ <string key="NSName">LucidaGrande</string>
+ <double key="NSSize">13</double>
+ <int key="NSfFlags">1044</int>
+ </object>
+ <string key="NSCellIdentifier">_NS:1535</string>
+ <reference key="NSControlView" ref="600715714"/>
+ <object class="NSColor" key="NSBackgroundColor" id="1034877328">
+ <int key="NSColorSpace">6</int>
+ <string key="NSCatalogName">System</string>
+ <string key="NSColorName">controlColor</string>
+ <object class="NSColor" key="NSColor">
+ <int key="NSColorSpace">3</int>
+ <bytes key="NSWhite">MC42NjY2NjY2NjY3AA</bytes>
+ </object>
+ </object>
+ <object class="NSColor" key="NSTextColor" id="647807359">
+ <int key="NSColorSpace">6</int>
+ <string key="NSCatalogName">System</string>
+ <string key="NSColorName">controlTextColor</string>
+ <object class="NSColor" key="NSColor">
+ <int key="NSColorSpace">3</int>
+ <bytes key="NSWhite">MAA</bytes>
+ </object>
+ </object>
+ </object>
+ <bool key="NSAllowsLogicalLayoutDirection">NO</bool>
+ </object>
+ <object class="NSTextField" id="714618031">
+ <reference key="NSNextResponder" ref="1006"/>
+ <int key="NSvFlags">268</int>
+ <string key="NSFrame">{{184, 49}, {38, 17}}</string>
+ <reference key="NSSuperview" ref="1006"/>
+ <reference key="NSWindow"/>
+ <reference key="NSNextKeyView" ref="328096288"/>
+ <string key="NSReuseIdentifierKey">_NS:1535</string>
+ <bool key="NSEnabled">YES</bool>
+ <object class="NSTextFieldCell" key="NSCell" id="503055815">
+ <int key="NSCellFlags">68157504</int>
+ <int key="NSCellFlags2">272630784</int>
+ <string key="NSContents">Label</string>
+ <reference key="NSSupport" ref="868216775"/>
+ <string key="NSCellIdentifier">_NS:1535</string>
+ <reference key="NSControlView" ref="714618031"/>
+ <reference key="NSBackgroundColor" ref="1034877328"/>
+ <reference key="NSTextColor" ref="647807359"/>
+ </object>
+ <bool key="NSAllowsLogicalLayoutDirection">NO</bool>
+ </object>
+ <object class="NSTextField" id="328096288">
+ <reference key="NSNextResponder" ref="1006"/>
+ <int key="NSvFlags">268</int>
+ <string key="NSFrame">{{17, 22}, {165, 17}}</string>
+ <reference key="NSSuperview" ref="1006"/>
+ <reference key="NSWindow"/>
+ <reference key="NSNextKeyView" ref="235720084"/>
+ <string key="NSReuseIdentifierKey">_NS:1535</string>
+ <bool key="NSEnabled">YES</bool>
+ <object class="NSTextFieldCell" key="NSCell" id="899200872">
+ <int key="NSCellFlags">68157504</int>
+ <int key="NSCellFlags2">71304192</int>
+ <string key="NSContents">Show notifications using:</string>
+ <reference key="NSSupport" ref="868216775"/>
+ <string key="NSCellIdentifier">_NS:1535</string>
+ <reference key="NSControlView" ref="328096288"/>
+ <reference key="NSBackgroundColor" ref="1034877328"/>
+ <reference key="NSTextColor" ref="647807359"/>
+ </object>
+ <bool key="NSAllowsLogicalLayoutDirection">NO</bool>
+ </object>
+ <object class="NSPopUpButton" id="235720084">
+ <reference key="NSNextResponder" ref="1006"/>
+ <int key="NSvFlags">268</int>
+ <string key="NSFrame">{{184, 17}, {192, 26}}</string>
+ <reference key="NSSuperview" ref="1006"/>
+ <reference key="NSWindow"/>
+ <reference key="NSNextKeyView"/>
+ <string key="NSReuseIdentifierKey">_NS:9</string>
+ <bool key="NSEnabled">YES</bool>
+ <object class="NSPopUpButtonCell" key="NSCell" id="443414742">
+ <int key="NSCellFlags">-2076180416</int>
+ <int key="NSCellFlags2">2048</int>
+ <reference key="NSSupport" ref="868216775"/>
+ <string key="NSCellIdentifier">_NS:9</string>
+ <reference key="NSControlView" ref="235720084"/>
+ <int key="NSButtonFlags">109199360</int>
+ <int key="NSButtonFlags2">129</int>
+ <string key="NSAlternateContents"/>
+ <string key="NSKeyEquivalent"/>
+ <int key="NSPeriodicDelay">400</int>
+ <int key="NSPeriodicInterval">75</int>
+ <nil key="NSMenuItem"/>
+ <bool key="NSMenuItemRespectAlignment">YES</bool>
+ <object class="NSMenu" key="NSMenu" id="310461686">
+ <string key="NSTitle">OtherViews</string>
+ <array class="NSMutableArray" key="NSMenuItems">
+ <object class="NSMenuItem" id="671761387">
+ <reference key="NSMenu" ref="310461686"/>
+ <string key="NSTitle">Growl</string>
+ <string key="NSKeyEquiv"/>
+ <int key="NSKeyEquivModMask">1048576</int>
+ <int key="NSMnemonicLoc">2147483647</int>
+ <object class="NSCustomResource" key="NSOnImage" id="657373251">
+ <string key="NSClassName">NSImage</string>
+ <string key="NSResourceName">NSMenuCheckmark</string>
+ </object>
+ <object class="NSCustomResource" key="NSMixedImage" id="711135974">
+ <string key="NSClassName">NSImage</string>
+ <string key="NSResourceName">NSMenuMixedState</string>
+ </object>
+ <string key="NSAction">_popUpItemAction:</string>
+ <int key="NSTag">1</int>
+ <reference key="NSTarget" ref="443414742"/>
+ </object>
+ <object class="NSMenuItem" id="204749980">
+ <reference key="NSMenu" ref="310461686"/>
+ <string key="NSTitle">Notification Center</string>
+ <string key="NSKeyEquiv"/>
+ <int key="NSKeyEquivModMask">1048576</int>
+ <int key="NSMnemonicLoc">2147483647</int>
+ <reference key="NSOnImage" ref="657373251"/>
+ <reference key="NSMixedImage" ref="711135974"/>
+ <string key="NSAction">_popUpItemAction:</string>
+ <int key="NSTag">2</int>
+ <reference key="NSTarget" ref="443414742"/>
+ </object>
+ </array>
+ <reference key="NSMenuFont" ref="868216775"/>
+ </object>
+ <int key="NSSelectedIndex">-1</int>
+ <int key="NSPreferredEdge">1</int>
+ <bool key="NSUsesItemFromMenu">YES</bool>
+ <bool key="NSAltersState">YES</bool>
+ <int key="NSArrowPosition">2</int>
+ </object>
+ <bool key="NSAllowsLogicalLayoutDirection">NO</bool>
+ </object>
+ </array>
+ <string key="NSFrameSize">{393, 86}</string>
+ <reference key="NSSuperview"/>
+ <reference key="NSWindow"/>
+ <reference key="NSNextKeyView" ref="600715714"/>
+ </object>
+ <string key="NSScreenRect">{{0, 0}, {1440, 878}}</string>
+ <string key="NSMaxSize">{10000000000000, 10000000000000}</string>
+ <bool key="NSWindowIsRestorable">YES</bool>
+ </object>
+ </array>
+ <object class="IBObjectContainer" key="IBDocument.Objects">
+ <array class="NSMutableArray" key="connectionRecords">
+ <object class="IBConnectionRecord">
+ <object class="IBOutletConnection" key="connection">
+ <string key="label">window</string>
+ <reference key="source" ref="1001"/>
+ <reference key="destination" ref="1005"/>
+ </object>
+ <int key="connectionID">5</int>
+ </object>
+ <object class="IBConnectionRecord">
+ <object class="IBOutletConnection" key="connection">
+ <string key="label">notificationTypePopUpButton</string>
+ <reference key="source" ref="1001"/>
+ <reference key="destination" ref="235720084"/>
+ </object>
+ <int key="connectionID">45</int>
+ </object>
+ <object class="IBConnectionRecord">
+ <object class="IBActionConnection" key="connection">
+ <string key="label">notificationTypePopUpButtonChanged:</string>
+ <reference key="source" ref="1001"/>
+ <reference key="destination" ref="235720084"/>
+ </object>
+ <int key="connectionID">46</int>
+ </object>
+ <object class="IBConnectionRecord">
+ <object class="IBOutletConnection" key="connection">
+ <string key="label">delegate</string>
+ <reference key="source" ref="1005"/>
+ <reference key="destination" ref="1001"/>
+ </object>
+ <int key="connectionID">4</int>
+ </object>
+ </array>
+ <object class="IBMutableOrderedSet" key="objectRecords">
+ <array key="orderedObjects">
+ <object class="IBObjectRecord">
+ <int key="objectID">0</int>
+ <array key="object" id="0"/>
+ <reference key="children" ref="1000"/>
+ <nil key="parent"/>
+ </object>
+ <object class="IBObjectRecord">
+ <int key="objectID">-2</int>
+ <reference key="object" ref="1001"/>
+ <reference key="parent" ref="0"/>
+ <string key="objectName">File's Owner</string>
+ </object>
+ <object class="IBObjectRecord">
+ <int key="objectID">-1</int>
+ <reference key="object" ref="1003"/>
+ <reference key="parent" ref="0"/>
+ <string key="objectName">First Responder</string>
+ </object>
+ <object class="IBObjectRecord">
+ <int key="objectID">-3</int>
+ <reference key="object" ref="1004"/>
+ <reference key="parent" ref="0"/>
+ <string key="objectName">Application</string>
+ </object>
+ <object class="IBObjectRecord">
+ <int key="objectID">1</int>
+ <reference key="object" ref="1005"/>
+ <array class="NSMutableArray" key="children">
+ <reference ref="1006"/>
+ </array>
+ <reference key="parent" ref="0"/>
+ </object>
+ <object class="IBObjectRecord">
+ <int key="objectID">2</int>
+ <reference key="object" ref="1006"/>
+ <array class="NSMutableArray" key="children">
+ <reference ref="600715714"/>
+ <object class="IBNSLayoutConstraint" id="922948161">
+ <reference key="firstItem" ref="1006"/>
+ <int key="firstAttribute">4</int>
+ <int key="relation">0</int>
+ <reference key="secondItem" ref="235720084"/>
+ <int key="secondAttribute">4</int>
+ <float key="multiplier">1</float>
+ <object class="IBNSLayoutSymbolicConstant" key="constant">
+ <double key="value">20</double>
+ </object>
+ <float key="priority">1000</float>
+ <reference key="containingView" ref="1006"/>
+ <int key="scoringType">8</int>
+ <float key="scoringTypeFloat">29</float>
+ <int key="contentType">3</int>
+ </object>
+ <object class="IBNSLayoutConstraint" id="249478758">
+ <reference key="firstItem" ref="1006"/>
+ <int key="firstAttribute">6</int>
+ <int key="relation">0</int>
+ <reference key="secondItem" ref="235720084"/>
+ <int key="secondAttribute">6</int>
+ <float key="multiplier">1</float>
+ <object class="IBNSLayoutSymbolicConstant" key="constant">
+ <double key="value">20</double>
+ </object>
+ <float key="priority">1000</float>
+ <reference key="containingView" ref="1006"/>
+ <int key="scoringType">8</int>
+ <float key="scoringTypeFloat">29</float>
+ <int key="contentType">3</int>
+ </object>
+ <object class="IBNSLayoutConstraint" id="151249599">
+ <reference key="firstItem" ref="235720084"/>
+ <int key="firstAttribute">5</int>
+ <int key="relation">0</int>
+ <reference key="secondItem" ref="328096288"/>
+ <int key="secondAttribute">6</int>
+ <float key="multiplier">1</float>
+ <object class="IBNSLayoutSymbolicConstant" key="constant">
+ <double key="value">8</double>
+ </object>
+ <float key="priority">1000</float>
+ <reference key="containingView" ref="1006"/>
+ <int key="scoringType">6</int>
+ <float key="scoringTypeFloat">24</float>
+ <int key="contentType">3</int>
+ </object>
+ <object class="IBNSLayoutConstraint" id="163279589">
+ <reference key="firstItem" ref="235720084"/>
+ <int key="firstAttribute">5</int>
+ <int key="relation">0</int>
+ <reference key="secondItem" ref="714618031"/>
+ <int key="secondAttribute">5</int>
+ <float key="multiplier">1</float>
+ <object class="IBLayoutConstant" key="constant">
+ <double key="value">0.0</double>
+ </object>
+ <float key="priority">1000</float>
+ <reference key="containingView" ref="1006"/>
+ <int key="scoringType">6</int>
+ <float key="scoringTypeFloat">24</float>
+ <int key="contentType">2</int>
+ </object>
+ <object class="IBNSLayoutConstraint" id="737035396">
+ <reference key="firstItem" ref="235720084"/>
+ <int key="firstAttribute">10</int>
+ <int key="relation">0</int>
+ <reference key="secondItem" ref="328096288"/>
+ <int key="secondAttribute">10</int>
+ <float key="multiplier">1</float>
+ <object class="IBLayoutConstant" key="constant">
+ <double key="value">0.0</double>
+ </object>
+ <float key="priority">1000</float>
+ <reference key="containingView" ref="1006"/>
+ <int key="scoringType">6</int>
+ <float key="scoringTypeFloat">24</float>
+ <int key="contentType">2</int>
+ </object>
+ <object class="IBNSLayoutConstraint" id="469707330">
+ <reference key="firstItem" ref="714618031"/>
+ <int key="firstAttribute">5</int>
+ <int key="relation">0</int>
+ <reference key="secondItem" ref="600715714"/>
+ <int key="secondAttribute">6</int>
+ <float key="multiplier">1</float>
+ <object class="IBNSLayoutSymbolicConstant" key="constant">
+ <double key="value">8</double>
+ </object>
+ <float key="priority">1000</float>
+ <reference key="containingView" ref="1006"/>
+ <int key="scoringType">6</int>
+ <float key="scoringTypeFloat">24</float>
+ <int key="contentType">3</int>
+ </object>
+ <object class="IBNSLayoutConstraint" id="124622981">
+ <reference key="firstItem" ref="714618031"/>
+ <int key="firstAttribute">3</int>
+ <int key="relation">0</int>
+ <reference key="secondItem" ref="1006"/>
+ <int key="secondAttribute">3</int>
+ <float key="multiplier">1</float>
+ <object class="IBNSLayoutSymbolicConstant" key="constant">
+ <double key="value">20</double>
+ </object>
+ <float key="priority">1000</float>
+ <reference key="containingView" ref="1006"/>
+ <int key="scoringType">8</int>
+ <float key="scoringTypeFloat">29</float>
+ <int key="contentType">3</int>
+ </object>
+ <object class="IBNSLayoutConstraint" id="525986326">
+ <reference key="firstItem" ref="328096288"/>
+ <int key="firstAttribute">5</int>
+ <int key="relation">0</int>
+ <reference key="secondItem" ref="1006"/>
+ <int key="secondAttribute">5</int>
+ <float key="multiplier">1</float>
+ <object class="IBNSLayoutSymbolicConstant" key="constant">
+ <double key="value">20</double>
+ </object>
+ <float key="priority">1000</float>
+ <reference key="containingView" ref="1006"/>
+ <int key="scoringType">8</int>
+ <float key="scoringTypeFloat">29</float>
+ <int key="contentType">3</int>
+ </object>
+ <object class="IBNSLayoutConstraint" id="557604737">
+ <reference key="firstItem" ref="600715714"/>
+ <int key="firstAttribute">5</int>
+ <int key="relation">0</int>
+ <reference key="secondItem" ref="1006"/>
+ <int key="secondAttribute">5</int>
+ <float key="multiplier">1</float>
+ <object class="IBNSLayoutSymbolicConstant" key="constant">
+ <double key="value">20</double>
+ </object>
+ <float key="priority">1000</float>
+ <reference key="containingView" ref="1006"/>
+ <int key="scoringType">8</int>
+ <float key="scoringTypeFloat">29</float>
+ <int key="contentType">3</int>
+ </object>
+ <object class="IBNSLayoutConstraint" id="719565116">
+ <reference key="firstItem" ref="600715714"/>
+ <int key="firstAttribute">3</int>
+ <int key="relation">0</int>
+ <reference key="secondItem" ref="1006"/>
+ <int key="secondAttribute">3</int>
+ <float key="multiplier">1</float>
+ <object class="IBNSLayoutSymbolicConstant" key="constant">
+ <double key="value">20</double>
+ </object>
+ <float key="priority">1000</float>
+ <reference key="containingView" ref="1006"/>
+ <int key="scoringType">8</int>
+ <float key="scoringTypeFloat">29</float>
+ <int key="contentType">3</int>
+ </object>
+ <reference ref="714618031"/>
+ <reference ref="328096288"/>
+ <reference ref="235720084"/>
+ </array>
+ <reference key="parent" ref="1005"/>
+ </object>
+ <object class="IBObjectRecord">
+ <int key="objectID">6</int>
+ <reference key="object" ref="600715714"/>
+ <array class="NSMutableArray" key="children">
+ <reference ref="889445831"/>
+ <object class="IBNSLayoutConstraint" id="109405472">
+ <reference key="firstItem" ref="600715714"/>
+ <int key="firstAttribute">7</int>
+ <int key="relation">0</int>
+ <nil key="secondItem"/>
+ <int key="secondAttribute">0</int>
+ <float key="multiplier">1</float>
+ <object class="IBLayoutConstant" key="constant">
+ <double key="value">159</double>
+ </object>
+ <float key="priority">1000</float>
+ <reference key="containingView" ref="600715714"/>
+ <int key="scoringType">3</int>
+ <float key="scoringTypeFloat">9</float>
+ <int key="contentType">1</int>
+ </object>
+ </array>
+ <reference key="parent" ref="1006"/>
+ </object>
+ <object class="IBObjectRecord">
+ <int key="objectID">7</int>
+ <reference key="object" ref="889445831"/>
+ <reference key="parent" ref="600715714"/>
+ </object>
+ <object class="IBObjectRecord">
+ <int key="objectID">8</int>
+ <reference key="object" ref="719565116"/>
+ <reference key="parent" ref="1006"/>
+ </object>
+ <object class="IBObjectRecord">
+ <int key="objectID">9</int>
+ <reference key="object" ref="557604737"/>
+ <reference key="parent" ref="1006"/>
+ </object>
+ <object class="IBObjectRecord">
+ <int key="objectID">11</int>
+ <reference key="object" ref="714618031"/>
+ <array class="NSMutableArray" key="children">
+ <reference ref="503055815"/>
+ </array>
+ <reference key="parent" ref="1006"/>
+ </object>
+ <object class="IBObjectRecord">
+ <int key="objectID">12</int>
+ <reference key="object" ref="503055815"/>
+ <reference key="parent" ref="714618031"/>
+ </object>
+ <object class="IBObjectRecord">
+ <int key="objectID">14</int>
+ <reference key="object" ref="124622981"/>
+ <reference key="parent" ref="1006"/>
+ </object>
+ <object class="IBObjectRecord">
+ <int key="objectID">15</int>
+ <reference key="object" ref="469707330"/>
+ <reference key="parent" ref="1006"/>
+ </object>
+ <object class="IBObjectRecord">
+ <int key="objectID">16</int>
+ <reference key="object" ref="109405472"/>
+ <reference key="parent" ref="600715714"/>
+ </object>
+ <object class="IBObjectRecord">
+ <int key="objectID">17</int>
+ <reference key="object" ref="328096288"/>
+ <array class="NSMutableArray" key="children">
+ <reference ref="899200872"/>
+ </array>
+ <reference key="parent" ref="1006"/>
+ </object>
+ <object class="IBObjectRecord">
+ <int key="objectID">18</int>
+ <reference key="object" ref="899200872"/>
+ <reference key="parent" ref="328096288"/>
+ </object>
+ <object class="IBObjectRecord">
+ <int key="objectID">23</int>
+ <reference key="object" ref="525986326"/>
+ <reference key="parent" ref="1006"/>
+ </object>
+ <object class="IBObjectRecord">
+ <int key="objectID">29</int>
+ <reference key="object" ref="235720084"/>
+ <array class="NSMutableArray" key="children">
+ <reference ref="443414742"/>
+ </array>
+ <reference key="parent" ref="1006"/>
+ </object>
+ <object class="IBObjectRecord">
+ <int key="objectID">30</int>
+ <reference key="object" ref="443414742"/>
+ <array class="NSMutableArray" key="children">
+ <reference ref="310461686"/>
+ </array>
+ <reference key="parent" ref="235720084"/>
+ </object>
+ <object class="IBObjectRecord">
+ <int key="objectID">31</int>
+ <reference key="object" ref="310461686"/>
+ <array class="NSMutableArray" key="children">
+ <reference ref="671761387"/>
+ <reference ref="204749980"/>
+ </array>
+ <reference key="parent" ref="443414742"/>
+ </object>
+ <object class="IBObjectRecord">
+ <int key="objectID">32</int>
+ <reference key="object" ref="671761387"/>
+ <reference key="parent" ref="310461686"/>
+ </object>
+ <object class="IBObjectRecord">
+ <int key="objectID">33</int>
+ <reference key="object" ref="204749980"/>
+ <reference key="parent" ref="310461686"/>
+ </object>
+ <object class="IBObjectRecord">
+ <int key="objectID">38</int>
+ <reference key="object" ref="737035396"/>
+ <reference key="parent" ref="1006"/>
+ </object>
+ <object class="IBObjectRecord">
+ <int key="objectID">39</int>
+ <reference key="object" ref="163279589"/>
+ <reference key="parent" ref="1006"/>
+ </object>
+ <object class="IBObjectRecord">
+ <int key="objectID">40</int>
+ <reference key="object" ref="151249599"/>
+ <reference key="parent" ref="1006"/>
+ </object>
+ <object class="IBObjectRecord">
+ <int key="objectID">43</int>
+ <reference key="object" ref="249478758"/>
+ <reference key="parent" ref="1006"/>
+ </object>
+ <object class="IBObjectRecord">
+ <int key="objectID">44</int>
+ <reference key="object" ref="922948161"/>
+ <reference key="parent" ref="1006"/>
+ </object>
+ </array>
+ </object>
+ <dictionary class="NSMutableDictionary" key="flattenedProperties">
+ <string key="-1.IBPluginDependency">com.apple.InterfaceBuilder.CocoaPlugin</string>
+ <string key="-2.IBPluginDependency">com.apple.InterfaceBuilder.CocoaPlugin</string>
+ <string key="-3.IBPluginDependency">com.apple.InterfaceBuilder.CocoaPlugin</string>
+ <string key="1.IBPluginDependency">com.apple.InterfaceBuilder.CocoaPlugin</string>
+ <string key="1.IBWindowTemplateEditedContentRect">{{357, 418}, {480, 270}}</string>
+ <integer value="1" key="1.NSWindowTemplate.visibleAtLaunch"/>
+ <boolean value="NO" key="11.IBNSViewMetadataTranslatesAutoresizingMaskIntoConstraints"/>
+ <string key="11.IBPluginDependency">com.apple.InterfaceBuilder.CocoaPlugin</string>
+ <string key="12.IBPluginDependency">com.apple.InterfaceBuilder.CocoaPlugin</string>
+ <string key="14.IBPluginDependency">com.apple.InterfaceBuilder.CocoaPlugin</string>
+ <string key="15.IBPluginDependency">com.apple.InterfaceBuilder.CocoaPlugin</string>
+ <string key="16.IBPluginDependency">com.apple.InterfaceBuilder.CocoaPlugin</string>
+ <boolean value="NO" key="17.IBNSViewMetadataTranslatesAutoresizingMaskIntoConstraints"/>
+ <string key="17.IBPluginDependency">com.apple.InterfaceBuilder.CocoaPlugin</string>
+ <string key="18.IBPluginDependency">com.apple.InterfaceBuilder.CocoaPlugin</string>
+ <array class="NSMutableArray" key="2.IBNSViewMetadataConstraints">
+ <reference ref="719565116"/>
+ <reference ref="557604737"/>
+ <reference ref="525986326"/>
+ <reference ref="124622981"/>
+ <reference ref="469707330"/>
+ <reference ref="737035396"/>
+ <reference ref="163279589"/>
+ <reference ref="151249599"/>
+ <reference ref="249478758"/>
+ <reference ref="922948161"/>
+ </array>
+ <string key="2.IBPluginDependency">com.apple.InterfaceBuilder.CocoaPlugin</string>
+ <string key="23.IBPluginDependency">com.apple.InterfaceBuilder.CocoaPlugin</string>
+ <boolean value="NO" key="29.IBNSViewMetadataTranslatesAutoresizingMaskIntoConstraints"/>
+ <string key="29.IBPluginDependency">com.apple.InterfaceBuilder.CocoaPlugin</string>
+ <string key="30.IBPluginDependency">com.apple.InterfaceBuilder.CocoaPlugin</string>
+ <string key="31.IBPluginDependency">com.apple.InterfaceBuilder.CocoaPlugin</string>
+ <string key="32.IBPluginDependency">com.apple.InterfaceBuilder.CocoaPlugin</string>
+ <string key="33.IBPluginDependency">com.apple.InterfaceBuilder.CocoaPlugin</string>
+ <string key="38.IBPluginDependency">com.apple.InterfaceBuilder.CocoaPlugin</string>
+ <string key="39.IBPluginDependency">com.apple.InterfaceBuilder.CocoaPlugin</string>
+ <string key="40.IBPluginDependency">com.apple.InterfaceBuilder.CocoaPlugin</string>
+ <string key="43.IBPluginDependency">com.apple.InterfaceBuilder.CocoaPlugin</string>
+ <string key="44.IBPluginDependency">com.apple.InterfaceBuilder.CocoaPlugin</string>
+ <array class="NSMutableArray" key="6.IBNSViewMetadataConstraints">
+ <reference ref="109405472"/>
+ </array>
+ <boolean value="NO" key="6.IBNSViewMetadataTranslatesAutoresizingMaskIntoConstraints"/>
+ <string key="6.IBPluginDependency">com.apple.InterfaceBuilder.CocoaPlugin</string>
+ <string key="7.IBPluginDependency">com.apple.InterfaceBuilder.CocoaPlugin</string>
+ <string key="8.IBPluginDependency">com.apple.InterfaceBuilder.CocoaPlugin</string>
+ <string key="9.IBPluginDependency">com.apple.InterfaceBuilder.CocoaPlugin</string>
+ </dictionary>
+ <dictionary class="NSMutableDictionary" key="unlocalizedProperties"/>
+ <nil key="activeLocalization"/>
+ <dictionary class="NSMutableDictionary" key="localizations"/>
+ <nil key="sourceID"/>
+ <int key="maxID">46</int>
+ </object>
+ <object class="IBClassDescriber" key="IBDocument.Classes">
+ <array class="NSMutableArray" key="referencedPartialClassDescriptions">
+ <object class="IBPartialClassDescription">
+ <string key="className">NSLayoutConstraint</string>
+ <string key="superclassName">NSObject</string>
+ <object class="IBClassDescriptionSource" key="sourceIdentifier">
+ <string key="majorKey">IBProjectSource</string>
+ <string key="minorKey">./Classes/NSLayoutConstraint.h</string>
+ </object>
+ </object>
+ <object class="IBPartialClassDescription">
+ <string key="className">PreferencesWindowController</string>
+ <string key="superclassName">NSWindowController</string>
+ <object class="NSMutableDictionary" key="actions">
+ <string key="NS.key.0">notificationTypePopUpButtonChanged:</string>
+ <string key="NS.object.0">id</string>
+ </object>
+ <object class="NSMutableDictionary" key="actionInfosByName">
+ <string key="NS.key.0">notificationTypePopUpButtonChanged:</string>
+ <object class="IBActionInfo" key="NS.object.0">
+ <string key="name">notificationTypePopUpButtonChanged:</string>
+ <string key="candidateClassName">id</string>
+ </object>
+ </object>
+ <object class="NSMutableDictionary" key="outlets">
+ <string key="NS.key.0">notificationTypePopUpButton</string>
+ <string key="NS.object.0">NSPopUpButton</string>
+ </object>
+ <object class="NSMutableDictionary" key="toOneOutletInfosByName">
+ <string key="NS.key.0">notificationTypePopUpButton</string>
+ <object class="IBToOneOutletInfo" key="NS.object.0">
+ <string key="name">notificationTypePopUpButton</string>
+ <string key="candidateClassName">NSPopUpButton</string>
+ </object>
+ </object>
+ <object class="IBClassDescriptionSource" key="sourceIdentifier">
+ <string key="majorKey">IBProjectSource</string>
+ <string key="minorKey">./Classes/PreferencesWindowController.h</string>
+ </object>
+ </object>
+ </array>
+ </object>
+ <int key="IBDocument.localizationMode">0</int>
+ <string key="IBDocument.TargetRuntimeIdentifier">IBCocoaFramework</string>
+ <bool key="IBDocument.PluginDeclaredDependenciesTrackSystemTargetVersion">YES</bool>
+ <int key="IBDocument.defaultPropertyAccessControl">3</int>
+ <dictionary class="NSMutableDictionary" key="IBDocument.LastKnownImageSizes">
+ <string key="NSMenuCheckmark">{11, 11}</string>
+ <string key="NSMenuMixedState">{10, 3}</string>
+ </dictionary>
+ <bool key="IBDocument.UseAutolayout">YES</bool>
+ </data>
+</archive>
View
3  Reflecticle Activity Feed/ReflecticleActivityFeed.h
@@ -10,6 +10,7 @@
#import "ReflecticleClient.h"
#import "ReflecticleActivityNotification.h"
+#import "ReflecticleActivityFeedPreferences.h"
@interface ReflecticleActivityFeed : NSObject {
NSDate *lastCheckDate;
@@ -19,6 +20,6 @@
@property (retain, nonatomic) ReflecticleClient *client;
-(id)initWithClient:(ReflecticleClient*)client;
--(void)notifyOfActivitySinceLastCheck;
+-(void)notifyOfActivitySinceLastCheck:(NSTimer*)timer;
@end
View
10 Reflecticle Activity Feed/ReflecticleActivityFeed.m
@@ -33,7 +33,7 @@ -(void)notifyOfActivitySinceLastCheck:(NSTimer*)timer {
for (ReflecticleActivity *activity in activities) {
if (activity.activityId > lastId) {
ReflecticleActivityNotification *notification = [[ReflecticleActivityNotification alloc] initWithActivity:activity];
- [notification showWithNotificationCenter];
+ [self showNotification:notification];
}
}
@@ -42,4 +42,12 @@ -(void)notifyOfActivitySinceLastCheck:(NSTimer*)timer {
}
}
+-(void)showNotification:(ReflecticleActivityNotification*)notification {
+ if ([ReflecticleActivityFeedPreferences notificationType] == Growl) {
+ [notification showWithGrowl];
+ } else if ([ReflecticleActivityFeedPreferences notificationType] == NotificationCenter) {
+ [notification showWithNotificationCenter];
+ }
+}
+
@end
View
23 Reflecticle Activity Feed/ReflecticleActivityFeedPreferences.h
@@ -0,0 +1,23 @@
+//
+// ReflecticleActivityFeedPreferences.h
+// Reflecticle Activity Feed
+//
+// Created by ADML on 2012-08-11.
+// Copyright (c) 2012 Highgroove. All rights reserved.
+//
+
+#import <Foundation/Foundation.h>
+
+typedef enum {
+ Growl = 1,
+ NotificationCenter = 2
+} NotificationType;
+
+@interface ReflecticleActivityFeedPreferences : NSObject
+
++(NotificationType)notificationType;
++(void)setNotificationType:(NotificationType)notificationType;
+
++(NSString*)apiKey;
+
+@end
View
43 Reflecticle Activity Feed/ReflecticleActivityFeedPreferences.m
@@ -0,0 +1,43 @@
+//
+// ReflecticleActivityFeedPreferences.m
+// Reflecticle Activity Feed
+//
+// Created by ADML on 2012-08-11.
+// Copyright (c) 2012 Highgroove. All rights reserved.
+//
+
+#import "ReflecticleActivityFeedPreferences.h"
+
+@implementation ReflecticleActivityFeedPreferences
+
++(NotificationType)notificationType {
+ NSInteger type = [[NSUserDefaults standardUserDefaults] integerForKey:@"NotificationType"];
+ if (type == 0) {
+ type = Growl; // Default
+ }
+
+ return (NotificationType)type;
+}
+
++(void)setNotificationType:(NotificationType)notificationType {
+ NSUserDefaults *defaults = [NSUserDefaults standardUserDefaults];
+
+ [defaults setInteger:notificationType forKey:@"NotificationType"];
+ [defaults synchronize];
+}
+
++(NSString*)apiKey {
+ // For now this is set in ~/.reflecticle
+ NSString *apiPath = [NSHomeDirectory() stringByAppendingPathComponent:@".reflecticle"];
+ NSError *error;
+ NSString *contents = [NSString stringWithContentsOfFile:apiPath encoding:NSUTF8StringEncoding error:&error];
+
+ if (nil == contents) {
+ NSLog(@"Error reading file at %@\n%@", apiPath, [error localizedFailureReason]);
+ }
+
+ NSArray *lines = [contents componentsSeparatedByCharactersInSet:[NSCharacterSet characterSetWithCharactersInString:@"\n"]];
+ return [lines objectAtIndex:0];
+}
+
+@end
View
1  Reflecticle Activity Feed/ReflecticleClient.h
@@ -15,7 +15,6 @@
@property (copy, nonatomic) NSString *apiKey;
-(id)initWithApiKey:(NSString*)apiKey;
--(id)initWithApiKeyFromDotFile;
-(NSArray*)activitySince:(NSDate*)since;
View
18 Reflecticle Activity Feed/ReflecticleClient.m
@@ -12,24 +12,6 @@ @implementation ReflecticleClient
@synthesize apiKey;
--(id)initWithApiKeyFromDotFile {
- self = [super init];
- if (self) {
- NSString *apiPath = [NSHomeDirectory() stringByAppendingPathComponent:@".reflecticle"];
- NSError *error;
- NSString *contents = [NSString stringWithContentsOfFile:apiPath encoding:NSUTF8StringEncoding error:&error];
-
- if (nil == contents) {
- NSLog(@"Error reading file at %@\n%@", apiPath, [error localizedFailureReason]);
- }
-
- NSArray *lines = [contents componentsSeparatedByCharactersInSet:[NSCharacterSet characterSetWithCharactersInString:@"\n"]];
- self.apiKey = [lines objectAtIndex:0];
- }
-
- return self;
-}
-
-(id)initWithApiKey:(NSString *)key {
self = [super init];
if (self) {
View
72 Reflecticle Activity Feed/en.lproj/MainMenu.xib
@@ -14,8 +14,6 @@
<string>NSCustomObject</string>
<string>NSMenu</string>
<string>NSMenuItem</string>
- <string>NSView</string>
- <string>NSWindowTemplate</string>
</array>
<array key="IBDocument.PluginDependencies">
<string>com.apple.InterfaceBuilder.CocoaPlugin</string>
@@ -226,25 +224,6 @@
</array>
<string key="NSName">_NSMainMenu</string>
</object>
- <object class="NSWindowTemplate" id="972006081">
- <int key="NSWindowStyleMask">15</int>
- <int key="NSWindowBacking">2</int>
- <string key="NSWindowRect">{{335, 390}, {480, 360}}</string>
- <int key="NSWTFlags">1954021376</int>
- <string key="NSWindowTitle">Reflecticle Activity Feed</string>
- <string key="NSWindowClass">NSWindow</string>
- <nil key="NSViewClass"/>
- <nil key="NSUserInterfaceItemIdentifier"/>
- <object class="NSView" key="NSWindowView" id="439893737">
- <reference key="NSNextResponder"/>
- <int key="NSvFlags">256</int>
- <string key="NSFrameSize">{480, 360}</string>
- <reference key="NSSuperview"/>
- </object>
- <string key="NSScreenRect">{{0, 0}, {1440, 878}}</string>
- <string key="NSMaxSize">{10000000000000, 10000000000000}</string>
- <bool key="NSWindowIsRestorable">YES</bool>
- </object>
<object class="NSCustomObject" id="976324537">
<string key="NSClassName">AppDelegate</string>
</object>
@@ -303,12 +282,12 @@
<int key="connectionID">370</int>
</object>
<object class="IBConnectionRecord">
- <object class="IBOutletConnection" key="connection">
- <string key="label">window</string>
+ <object class="IBActionConnection" key="connection">
+ <string key="label">openPreferences:</string>
<reference key="source" ref="976324537"/>
- <reference key="destination" ref="972006081"/>
+ <reference key="destination" ref="609285721"/>
</object>
- <int key="connectionID">532</int>
+ <int key="connectionID">536</int>
</object>
</array>
<object class="IBMutableOrderedSet" key="objectRecords">
@@ -376,19 +355,6 @@
<reference key="parent" ref="649796088"/>
</object>
<object class="IBObjectRecord">
- <int key="objectID">371</int>
- <reference key="object" ref="972006081"/>
- <array class="NSMutableArray" key="children">
- <reference ref="439893737"/>
- </array>
- <reference key="parent" ref="0"/>
- </object>
- <object class="IBObjectRecord">
- <int key="objectID">372</int>
- <reference key="object" ref="439893737"/>
- <reference key="parent" ref="972006081"/>
- </object>
- <object class="IBObjectRecord">
<int key="objectID">375</int>
<reference key="object" ref="302598603"/>
<array class="NSMutableArray" key="children"/>
@@ -520,10 +486,6 @@
<string key="236.IBPluginDependency">com.apple.InterfaceBuilder.CocoaPlugin</string>
<string key="29.IBPluginDependency">com.apple.InterfaceBuilder.CocoaPlugin</string>
<string key="295.IBPluginDependency">com.apple.InterfaceBuilder.CocoaPlugin</string>
- <string key="371.IBPluginDependency">com.apple.InterfaceBuilder.CocoaPlugin</string>
- <string key="371.IBWindowTemplateEditedContentRect">{{380, 496}, {480, 360}}</string>
- <boolean value="NO" key="371.NSWindowTemplate.visibleAtLaunch"/>
- <string key="372.IBPluginDependency">com.apple.InterfaceBuilder.CocoaPlugin</string>
<string key="375.IBPluginDependency">com.apple.InterfaceBuilder.CocoaPlugin</string>
<string key="420.IBPluginDependency">com.apple.InterfaceBuilder.CocoaPlugin</string>
<string key="490.IBPluginDependency">com.apple.InterfaceBuilder.CocoaPlugin</string>
@@ -537,31 +499,9 @@
<nil key="activeLocalization"/>
<dictionary class="NSMutableDictionary" key="localizations"/>
<nil key="sourceID"/>
- <int key="maxID">535</int>
- </object>
- <object class="IBClassDescriber" key="IBDocument.Classes">
- <array class="NSMutableArray" key="referencedPartialClassDescriptions">
- <object class="IBPartialClassDescription">
- <string key="className">AppDelegate</string>
- <string key="superclassName">NSObject</string>
- <object class="NSMutableDictionary" key="outlets">
- <string key="NS.key.0">window</string>
- <string key="NS.object.0">NSWindow</string>
- </object>
- <object class="NSMutableDictionary" key="toOneOutletInfosByName">
- <string key="NS.key.0">window</string>
- <object class="IBToOneOutletInfo" key="NS.object.0">
- <string key="name">window</string>
- <string key="candidateClassName">NSWindow</string>
- </object>
- </object>
- <object class="IBClassDescriptionSource" key="sourceIdentifier">
- <string key="majorKey">IBProjectSource</string>
- <string key="minorKey">./Classes/AppDelegate.h</string>
- </object>
- </object>
- </array>
+ <int key="maxID">536</int>
</object>
+ <object class="IBClassDescriber" key="IBDocument.Classes"/>
<int key="IBDocument.localizationMode">0</int>
<string key="IBDocument.TargetRuntimeIdentifier">IBCocoaFramework</string>
<bool key="IBDocument.PluginDeclaredDependenciesTrackSystemTargetVersion">YES</bool>
Please sign in to comment.
Something went wrong with that request. Please try again.