Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Merge pull request #1 from revyver/inappstorewindow

INAppStoreWindow.
  • Loading branch information...
commit b6904a7f245870ddd19fb2e87606c6f9c7ebecf9 2 parents a271599 + e8bdeca
Bryan Veloso authored
View
12 .gitignore
@@ -0,0 +1,12 @@
+.DS_Store
+*.swp
+*~.nib
+
+build/
+
+*.pbxuser
+*.perspective
+*.perspectivev3
+*.mode1v3
+*.mode2v3
+xcuserdata
View
3  AppDelegate.h
@@ -7,10 +7,11 @@
//
#import <Cocoa/Cocoa.h>
+#import "INAppStoreWindow.h"
@interface AppDelegate : NSObject <NSApplicationDelegate>
-@property (unsafe_unretained) IBOutlet NSWindow *window;
+@property (unsafe_unretained) IBOutlet INAppStoreWindow *window;
@property (weak) IBOutlet NSButton *playButton;
@property (weak) IBOutlet NSSlider *startSlider;
@property (weak) IBOutlet NSSlider *endSlider;
View
11 AppDelegate.m
@@ -25,6 +25,12 @@ @implementation AppDelegate
@synthesize paused;
+- (void)applicationDidFinishLaunching:(NSNotification *)aNotification
+{
+ [[self window] setTitleBarHeight:30.0];
+ [[self window] setTrafficLightButtonsLeftMargin:7.0];
+}
+
-(void) checkTime:(NSTimer*)theTimer{
currentTime = [music currentTime];
if([music isPlaying]){
@@ -47,11 +53,6 @@ -(void) checkTime:(NSTimer*)theTimer{
}
-- (void)applicationDidFinishLaunching:(NSNotification *)aNotification
-{
-
-}
-
- (void)loadMusic:(NSURL *) fileURL {
NSSound * m = [NSSound alloc];
music = [m initWithContentsOfURL:fileURL byReference:YES];
View
44 Perpetual.xcodeproj/project.pbxproj
@@ -7,6 +7,9 @@
objects = {
/* Begin PBXBuildFile section */
+ 351CA58DF08E43309D0C1A7C /* libPods.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 4F63DF7AE63C4BFF97E85379 /* libPods.a */; };
+ 9395B6AD14EB88A8002999D9 /* QuartzCore.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 9395B6AC14EB88A8002999D9 /* QuartzCore.framework */; };
+ 9395B6B014EB8D91002999D9 /* Podfile in Resources */ = {isa = PBXBuildFile; fileRef = 9395B6AF14EB8D91002999D9 /* Podfile */; };
9A041EBD14EAEBA2009AC43F /* cover.jpg in Resources */ = {isa = PBXBuildFile; fileRef = 9A041EBC14EAEBA2009AC43F /* cover.jpg */; };
9AC739D314EAEAB6000A57AD /* Cocoa.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 9AC739D214EAEAB6000A57AD /* Cocoa.framework */; };
9AC739DD14EAEAB6000A57AD /* InfoPlist.strings in Resources */ = {isa = PBXBuildFile; fileRef = 9AC739DB14EAEAB6000A57AD /* InfoPlist.strings */; };
@@ -17,6 +20,9 @@
/* End PBXBuildFile section */
/* Begin PBXFileReference section */
+ 4F63DF7AE63C4BFF97E85379 /* libPods.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = libPods.a; sourceTree = BUILT_PRODUCTS_DIR; };
+ 9395B6AC14EB88A8002999D9 /* QuartzCore.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = QuartzCore.framework; path = System/Library/Frameworks/QuartzCore.framework; sourceTree = SDKROOT; };
+ 9395B6AF14EB8D91002999D9 /* Podfile */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = Podfile; sourceTree = "<group>"; };
9A041EBC14EAEBA2009AC43F /* cover.jpg */ = {isa = PBXFileReference; lastKnownFileType = image.jpeg; path = cover.jpg; sourceTree = "<group>"; };
9AC739CE14EAEAB6000A57AD /* Perpetual.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = Perpetual.app; sourceTree = BUILT_PRODUCTS_DIR; };
9AC739D214EAEAB6000A57AD /* Cocoa.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Cocoa.framework; path = System/Library/Frameworks/Cocoa.framework; sourceTree = SDKROOT; };
@@ -31,6 +37,7 @@
9AC739E414EAEAB6000A57AD /* AppDelegate.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = AppDelegate.h; sourceTree = "<group>"; };
9AC739E514EAEAB6000A57AD /* AppDelegate.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = AppDelegate.m; sourceTree = "<group>"; };
9AC739E814EAEAB6000A57AD /* en */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = en; path = en.lproj/MainMenu.xib; sourceTree = "<group>"; };
+ DDB3CDEF03204F9F8C7160C4 /* Pods.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; name = Pods.xcconfig; path = Pods/Pods.xcconfig; sourceTree = SOURCE_ROOT; };
/* End PBXFileReference section */
/* Begin PBXFrameworksBuildPhase section */
@@ -38,7 +45,9 @@
isa = PBXFrameworksBuildPhase;
buildActionMask = 2147483647;
files = (
+ 9395B6AD14EB88A8002999D9 /* QuartzCore.framework in Frameworks */,
9AC739D314EAEAB6000A57AD /* Cocoa.framework in Frameworks */,
+ 351CA58DF08E43309D0C1A7C /* libPods.a in Frameworks */,
);
runOnlyForDeploymentPostprocessing = 0;
};
@@ -48,9 +57,11 @@
9AC739C314EAEAB6000A57AD = {
isa = PBXGroup;
children = (
+ 9395B6AC14EB88A8002999D9 /* QuartzCore.framework */,
9AC739D814EAEAB6000A57AD /* Perpetual */,
9AC739D114EAEAB6000A57AD /* Frameworks */,
9AC739CF14EAEAB6000A57AD /* Products */,
+ DDB3CDEF03204F9F8C7160C4 /* Pods.xcconfig */,
);
sourceTree = "<group>";
};
@@ -67,6 +78,7 @@
children = (
9AC739D214EAEAB6000A57AD /* Cocoa.framework */,
9AC739D414EAEAB6000A57AD /* Other Frameworks */,
+ 4F63DF7AE63C4BFF97E85379 /* libPods.a */,
);
name = Frameworks;
sourceTree = "<group>";
@@ -95,12 +107,13 @@
9AC739D914EAEAB6000A57AD /* Supporting Files */ = {
isa = PBXGroup;
children = (
+ 9395B6AF14EB8D91002999D9 /* Podfile */,
9A041EBC14EAEBA2009AC43F /* cover.jpg */,
- 9AC739DA14EAEAB6000A57AD /* Info.plist */,
- 9AC739DB14EAEAB6000A57AD /* InfoPlist.strings */,
9AC739DE14EAEAB6000A57AD /* main.m */,
9AC739E014EAEAB6000A57AD /* Prefix.pch */,
+ 9AC739DA14EAEAB6000A57AD /* Info.plist */,
9AC739E114EAEAB6000A57AD /* Credits.rtf */,
+ 9AC739DB14EAEAB6000A57AD /* InfoPlist.strings */,
);
name = "Supporting Files";
sourceTree = "<group>";
@@ -115,6 +128,7 @@
9AC739CA14EAEAB6000A57AD /* Sources */,
9AC739CB14EAEAB6000A57AD /* Frameworks */,
9AC739CC14EAEAB6000A57AD /* Resources */,
+ 51F08C4914594861905B6EBE /* Copy Pods Resources */,
);
buildRules = (
);
@@ -160,11 +174,29 @@
9AC739E314EAEAB6000A57AD /* Credits.rtf in Resources */,
9AC739E914EAEAB6000A57AD /* MainMenu.xib in Resources */,
9A041EBD14EAEBA2009AC43F /* cover.jpg in Resources */,
+ 9395B6B014EB8D91002999D9 /* Podfile in Resources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
/* End PBXResourcesBuildPhase section */
+/* Begin PBXShellScriptBuildPhase section */
+ 51F08C4914594861905B6EBE /* Copy Pods Resources */ = {
+ isa = PBXShellScriptBuildPhase;
+ buildActionMask = 2147483647;
+ files = (
+ );
+ inputPaths = (
+ );
+ name = "Copy Pods Resources";
+ outputPaths = (
+ );
+ runOnlyForDeploymentPostprocessing = 0;
+ shellPath = /bin/sh;
+ shellScript = "\"${SRCROOT}/Pods/Pods-resources.sh\"\n";
+ };
+/* End PBXShellScriptBuildPhase section */
+
/* Begin PBXSourcesBuildPhase section */
9AC739CA14EAEAB6000A57AD /* Sources */ = {
isa = PBXSourcesBuildPhase;
@@ -254,22 +286,30 @@
};
9AC739ED14EAEAB6000A57AD /* Debug */ = {
isa = XCBuildConfiguration;
+ baseConfigurationReference = DDB3CDEF03204F9F8C7160C4 /* Pods.xcconfig */;
buildSettings = {
+ DSTROOT = /tmp/xcodeproj.dst;
GCC_PRECOMPILE_PREFIX_HEADER = YES;
GCC_PREFIX_HEADER = Prefix.pch;
+ GCC_VERSION = com.apple.compilers.llvm.clang.1_0;
INFOPLIST_FILE = Info.plist;
PRODUCT_NAME = "$(TARGET_NAME)";
+ SKIP_INSTALL = YES;
WRAPPER_EXTENSION = app;
};
name = Debug;
};
9AC739EE14EAEAB6000A57AD /* Release */ = {
isa = XCBuildConfiguration;
+ baseConfigurationReference = DDB3CDEF03204F9F8C7160C4 /* Pods.xcconfig */;
buildSettings = {
+ DSTROOT = /tmp/xcodeproj.dst;
GCC_PRECOMPILE_PREFIX_HEADER = YES;
GCC_PREFIX_HEADER = Prefix.pch;
+ GCC_VERSION = com.apple.compilers.llvm.clang.1_0;
INFOPLIST_FILE = Info.plist;
PRODUCT_NAME = "$(TARGET_NAME)";
+ SKIP_INSTALL = YES;
WRAPPER_EXTENSION = app;
};
name = Release;
View
1  Perpetual.xcworkspace/contents.xcworkspacedata
@@ -0,0 +1 @@
+<?xml version="1.0" encoding="UTF-8" standalone="yes"?><Workspace version="1.0"><FileRef location="group:Perpetual.xcodeproj"></FileRef><FileRef location="group:Pods/Pods.xcodeproj"></FileRef></Workspace>
View
2  Podfile
@@ -1,2 +1,2 @@
platform :osx
-
+dependency 'INAppStoreWindow', :git => 'https://github.com/indragiek/INAppStoreWindow.git'
View
5 Podfile.lock
@@ -0,0 +1,5 @@
+PODS:
+ - INAppStoreWindow (1.0)
+
+DEPENDENCIES:
+ - INAppStoreWindow (from `https://github.com/indragiek/INAppStoreWindow.git')
View
1  Pods/Headers/INAppStoreWindow/INAppStoreWindow.h
View
12 Pods/INAppStoreWindow/.gitignore
@@ -0,0 +1,12 @@
+.DS_Store
+*.swp
+*~.nib
+
+build/
+
+*.pbxuser
+*.perspective
+*.perspectivev3
+*.mode1v3
+*.mode2v3
+xcuserdata
View
65 Pods/INAppStoreWindow/INAppStoreWindow.h
@@ -0,0 +1,65 @@
+//
+// INAppStoreWindow.h
+//
+// Copyright 2011 Indragie Karunaratne. All rights reserved.
+//
+// Licensed under the BSD License <http://www.opensource.org/licenses/bsd-license>
+// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY
+// EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
+// OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT
+// SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
+// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED
+// TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
+// BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
+// STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF
+// THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+//
+
+#import <Foundation/Foundation.h>
+
+#if __has_feature(objc_arc)
+#define INAppStoreWindowCopy nonatomic, strong
+#define INAppStoreWindowRetain nonatomic, strong
+#else
+#define INAppStoreWindowCopy nonatomic, copy
+#define INAppStoreWindowRetain nonatomic, retain
+#endif
+
+/** @class INTitlebarView
+ Draws a default style Mac OS X title bar.
+ **/
+@interface INTitlebarView : NSView
+- (NSBezierPath*)clippingPathWithRect:(NSRect)aRect cornerRadius:(CGFloat)radius;
+@end
+
+/** @class INAppStoreWindow
+ Creates a window similar to the Mac App Store window, with centered traffic lights and an enlarged title bar. This does not handle creating the toolbar.
+ **/
+@interface INAppStoreWindow : NSWindow {
+ CGFloat _titleBarHeight;
+ NSView *_titleBarView;
+ NSString *_windowMenuTitle;
+ BOOL _centerFullScreenButton;
+ BOOL _hideTitleBarInFullScreen;
+ BOOL _showsBaselineSeparator;
+ BOOL _centerTrafficLightButtons;
+ CGFloat _cachedTitleBarHeight;
+ CGFloat _trafficLightButtonsLeftMargin;
+ CGFloat _fullScreenButtonRightMargin;
+ BOOL _setFullScreenButtonRightMargin;
+}
+/** The height of the title bar. By default, this is set to the standard title bar height. **/
+@property (nonatomic) CGFloat titleBarHeight;
+/** The title bar view itself. Add subviews to this view that you want to show in the title bar (e.g. buttons, a toolbar, etc.). This view can also be set if you want to use a different styled title bar aside from the default one (textured, etc.). **/
+@property (INAppStoreWindowRetain) NSView *titleBarView;
+@property (nonatomic) BOOL centerFullScreenButton;
+@property (nonatomic) BOOL centerTrafficLightButtons;
+/** If you want to hide the title bar in fullscreen mode, set this boolean to YES **/
+@property (nonatomic) BOOL hideTitleBarInFullScreen;
+/** Use this API to hide the baseline INAppStoreWindow draws between itself and the main window contents. */
+@property (nonatomic) BOOL showsBaselineSeparator;
+/** Adjust the left and right padding of the trafficlight and fullscreen buttons */
+@property (nonatomic) CGFloat trafficLightButtonsLeftMargin;
+@property (nonatomic) CGFloat fullScreenButtonRightMargin;
+
+@end
View
555 Pods/INAppStoreWindow/INAppStoreWindow.m
@@ -0,0 +1,555 @@
+//
+// INAppStoreWindow.m
+//
+// Copyright 2011 Indragie Karunaratne. All rights reserved.
+//
+// Licensed under the BSD License <http://www.opensource.org/licenses/bsd-license>
+// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY
+// EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
+// OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT
+// SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
+// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED
+// TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
+// BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
+// STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF
+// THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+//
+
+#import "INAppStoreWindow.h"
+
+#define IN_RUNNING_LION (floor(NSAppKitVersionNumber) > NSAppKitVersionNumber10_6)
+#define IN_COMPILING_LION __MAC_OS_X_VERSION_MAX_ALLOWED >= 1070
+
+/** -----------------------------------------
+ - There are 2 sets of colors, one for an active (key) state and one for an inactivate state
+ - Each set contains 3 colors. 2 colors for the start and end of the title gradient, and another color to draw the separator line on the bottom
+ - These colors are meant to mimic the color of the default titlebar (taken from OS X 10.6), but are subject
+ to change at any time
+ ----------------------------------------- **/
+
+#define IN_COLOR_MAIN_START [NSColor colorWithDeviceWhite:0.659 alpha:1.0]
+#define IN_COLOR_MAIN_END [NSColor colorWithDeviceWhite:0.812 alpha:1.0]
+#define IN_COLOR_MAIN_BOTTOM [NSColor colorWithDeviceWhite:0.318 alpha:1.0]
+
+#define IN_COLOR_NOTMAIN_START [NSColor colorWithDeviceWhite:0.851 alpha:1.0]
+#define IN_COLOR_NOTMAIN_END [NSColor colorWithDeviceWhite:0.929 alpha:1.0]
+#define IN_COLOR_NOTMAIN_BOTTOM [NSColor colorWithDeviceWhite:0.600 alpha:1.0]
+
+/** Lion */
+
+#define IN_COLOR_MAIN_START_L [NSColor colorWithDeviceWhite:0.66 alpha:1.0]
+#define IN_COLOR_MAIN_END_L [NSColor colorWithDeviceWhite:0.9 alpha:1.0]
+#define IN_COLOR_MAIN_BOTTOM_L [NSColor colorWithDeviceWhite:0.408 alpha:1.0]
+
+#define IN_COLOR_NOTMAIN_START_L [NSColor colorWithDeviceWhite:0.878 alpha:1.0]
+#define IN_COLOR_NOTMAIN_END_L [NSColor colorWithDeviceWhite:0.976 alpha:1.0]
+#define IN_COLOR_NOTMAIN_BOTTOM_L [NSColor colorWithDeviceWhite:0.655 alpha:1.0]
+
+/** Corner clipping radius **/
+const CGFloat INCornerClipRadius = 4.0;
+const CGFloat INButtonTopOffset = 3.0;
+
+NS_INLINE CGFloat INMidHeight(NSRect aRect) {
+ return (aRect.size.height * (CGFloat)0.5);
+}
+
+static CGImageRef createNoiseImageRef(NSUInteger width, NSUInteger height, CGFloat factor)
+{
+ NSUInteger size = width*height;
+ char *rgba = (char *)malloc(size); srand(124);
+ for(NSUInteger i=0; i < size; ++i){rgba[i] = rand()%256*factor;}
+ CGColorSpaceRef colorSpace = CGColorSpaceCreateDeviceGray();
+ CGContextRef bitmapContext =
+ CGBitmapContextCreate(rgba, width, height, 8, width, colorSpace, kCGImageAlphaNone);
+ CFRelease(colorSpace);
+ free(rgba);
+ CGImageRef image = CGBitmapContextCreateImage(bitmapContext);
+ CFRelease(bitmapContext);
+ return image;
+}
+
+@interface INAppStoreWindow ()
+@property (INAppStoreWindowCopy) NSString *windowMenuTitle;
+- (void)_doInitialWindowSetup;
+- (void)_createTitlebarView;
+- (void)_setupTrafficLightsTrackingArea;
+- (void)_recalculateFrameForTitleBarView;
+- (void)_layoutTrafficLightsAndContent;
+- (CGFloat)_minimumTitlebarHeight;
+- (void)_displayWindowAndTitlebar;
+- (void)_hideTitleBarView:(BOOL)hidden;
+- (CGFloat)_defaultTrafficLightLeftMargin;
+- (CGFloat)_trafficLightSeparation;
+@end
+
+@implementation INTitlebarView
+
+- (void)drawRect:(NSRect)dirtyRect
+{
+ BOOL drawsAsMainWindow = ([[self window] isMainWindow] && [[NSApplication sharedApplication] isActive]);
+ NSRect drawingRect = [self bounds];
+ drawingRect.size.height -= 1.0; // Decrease the height by 1.0px to show the highlight line at the top
+ NSColor *startColor = nil;
+ NSColor *endColor = nil;
+ if (IN_RUNNING_LION) {
+ startColor = drawsAsMainWindow ? IN_COLOR_MAIN_START_L : IN_COLOR_NOTMAIN_START_L;
+ endColor = drawsAsMainWindow ? IN_COLOR_MAIN_END_L : IN_COLOR_NOTMAIN_END_L;
+ } else {
+ startColor = drawsAsMainWindow ? IN_COLOR_MAIN_START : IN_COLOR_NOTMAIN_START;
+ endColor = drawsAsMainWindow ? IN_COLOR_MAIN_END : IN_COLOR_NOTMAIN_END;
+ }
+ [[self clippingPathWithRect:drawingRect cornerRadius:INCornerClipRadius] addClip];
+ NSGradient *gradient = [[NSGradient alloc] initWithStartingColor:startColor endingColor:endColor];
+ [gradient drawInRect:drawingRect angle:90];
+#if !__has_feature(objc_arc)
+ [gradient release];
+#endif
+ if (IN_RUNNING_LION && drawsAsMainWindow) {
+ static CGImageRef noisePattern = nil;
+ if (noisePattern == nil) noisePattern = createNoiseImageRef(128, 128, 0.015);
+ [NSGraphicsContext saveGraphicsState];
+ [[NSGraphicsContext currentContext] setCompositingOperation:NSCompositePlusLighter];
+ CGRect noisePatternRect = CGRectZero;
+ noisePatternRect.size = CGSizeMake(CGImageGetWidth(noisePattern), CGImageGetHeight(noisePattern));
+ CGContextRef context = [[NSGraphicsContext currentContext] graphicsPort];
+ CGContextDrawTiledImage(context, noisePatternRect, noisePattern);
+ [NSGraphicsContext restoreGraphicsState];
+ }
+
+ if ([(INAppStoreWindow *)[self window] showsBaselineSeparator]) {
+ NSColor *bottomColor = nil;
+ if (IN_RUNNING_LION) {
+ bottomColor = drawsAsMainWindow ? IN_COLOR_MAIN_BOTTOM_L : IN_COLOR_NOTMAIN_BOTTOM_L;
+ } else {
+ bottomColor = drawsAsMainWindow ? IN_COLOR_MAIN_BOTTOM : IN_COLOR_NOTMAIN_BOTTOM;
+ }
+ NSRect bottomRect = NSMakeRect(0.0, NSMinY(drawingRect), NSWidth(drawingRect), 1.0);
+ [bottomColor set];
+ NSRectFill(bottomRect);
+
+ if (IN_RUNNING_LION) {
+ bottomRect.origin.y += 1.0;
+ [[NSColor colorWithDeviceWhite:1.0 alpha:0.12] setFill];
+ [[NSBezierPath bezierPathWithRect:bottomRect] fill];
+ }
+ }
+}
+
+// Uses code from NSBezierPath+PXRoundedRectangleAdditions by Andy Matuschak
+// <http://code.andymatuschak.org/pixen/trunk/NSBezierPath+PXRoundedRectangleAdditions.m>
+
+- (NSBezierPath*)clippingPathWithRect:(NSRect)aRect cornerRadius:(CGFloat)radius
+{
+ NSBezierPath *path = [NSBezierPath bezierPath];
+ NSRect rect = NSInsetRect(aRect, radius, radius);
+ NSPoint cornerPoint = NSMakePoint(NSMinX(aRect), NSMinY(aRect));
+ // Create a rounded rectangle path, omitting the bottom left/right corners
+ [path appendBezierPathWithPoints:&cornerPoint count:1];
+ cornerPoint = NSMakePoint(NSMaxX(aRect), NSMinY(aRect));
+ [path appendBezierPathWithPoints:&cornerPoint count:1];
+ [path appendBezierPathWithArcWithCenter:NSMakePoint(NSMaxX(rect), NSMaxY(rect)) radius:radius startAngle: 0.0 endAngle: 90.0];
+ [path appendBezierPathWithArcWithCenter:NSMakePoint(NSMinX(rect), NSMaxY(rect)) radius:radius startAngle: 90.0 endAngle:180.0];
+ [path closePath];
+ return path;
+}
+
+- (void)mouseUp:(NSEvent *)theEvent
+{
+ if ([theEvent clickCount] == 2) {
+ // Get settings from "System Preferences" > "Appearance" > "Double-click on windows title bar to minimize"
+ NSString *const MDAppleMiniaturizeOnDoubleClickKey = @"AppleMiniaturizeOnDoubleClick";
+ NSUserDefaults *userDefaults = [NSUserDefaults standardUserDefaults];
+ [userDefaults addSuiteNamed:NSGlobalDomain];
+ BOOL shouldMiniaturize = [[userDefaults objectForKey:MDAppleMiniaturizeOnDoubleClickKey] boolValue];
+ if (shouldMiniaturize) {
+ [[self window] miniaturize:self];
+ }
+ }
+}
+
+@end
+
+@implementation INAppStoreWindow
+@synthesize windowMenuTitle = _windowMenuTitle;
+@synthesize centerFullScreenButton = _centerFullScreenButton;
+@synthesize centerTrafficLightButtons = _centerTrafficLightButtons;
+@synthesize hideTitleBarInFullScreen = _hideTitleBarInFullScreen;
+#pragma mark -
+#pragma mark Initialization
+
+- (id)initWithContentRect:(NSRect)contentRect styleMask:(NSUInteger)aStyle backing:(NSBackingStoreType)bufferingType defer:(BOOL)flag
+{
+ if ((self = [super initWithContentRect:contentRect styleMask:aStyle backing:bufferingType defer:flag])) {
+ [self _doInitialWindowSetup];
+ }
+ return self;
+}
+
+- (id)initWithContentRect:(NSRect)contentRect styleMask:(NSUInteger)aStyle backing:(NSBackingStoreType)bufferingType defer:(BOOL)flag screen:(NSScreen *)screen
+{
+ if ((self = [super initWithContentRect:contentRect styleMask:aStyle backing:bufferingType defer:flag screen:screen])) {
+ [self _doInitialWindowSetup];
+ }
+ return self;
+}
+
+#pragma mark -
+#pragma mark Memory Management
+
+- (void)dealloc
+{
+ [[NSNotificationCenter defaultCenter] removeObserver:self];
+#if !__has_feature(objc_arc)
+ [_titleBarView release];
+ [_windowMenuTitle release];
+ [super dealloc];
+#endif
+}
+
+#pragma mark -
+#pragma mark NSWindow Overrides
+
+// Disable window titles
+
+- (NSString*)title
+{
+ return @"";
+}
+
+- (void)setTitle:(NSString*)title
+{
+ self.windowMenuTitle = title;
+ if ( ![self isExcludedFromWindowsMenu] )
+ [NSApp changeWindowsItem:self title:self.windowMenuTitle filename:NO];
+}
+
+- (void)setRepresentedURL:(NSURL *)url
+{
+ // do nothing, don't want to show document icon in menu bar
+}
+
+- (void)makeKeyAndOrderFront:(id)sender
+{
+ [super makeKeyAndOrderFront:sender];
+ if (![self isExcludedFromWindowsMenu]) {
+ [NSApp addWindowsItem:self title:self.windowMenuTitle filename:NO];
+ }
+}
+
+- (void)becomeKeyWindow
+{
+ [super becomeKeyWindow];
+ [_titleBarView setNeedsDisplay:YES];
+}
+
+- (void)resignKeyWindow
+{
+ [super resignKeyWindow];
+ [_titleBarView setNeedsDisplay:YES];
+}
+
+- (void)orderFront:(id)sender
+{
+ [super orderFront:sender];
+ if (![self isExcludedFromWindowsMenu]) {
+ [NSApp addWindowsItem:self title:self.windowMenuTitle filename:NO];
+ }
+}
+
+- (void)orderOut:(id)sender
+{
+ [super orderOut:sender];
+ [NSApp removeWindowsItem:self];
+}
+
+#pragma mark -
+#pragma mark Accessors
+
+- (void)setTitleBarView:(NSView *)newTitleBarView
+{
+ if ((_titleBarView != newTitleBarView) && newTitleBarView) {
+ [_titleBarView removeFromSuperview];
+#if __has_feature(objc_arc)
+ _titleBarView = newTitleBarView;
+#else
+ [_titleBarView release];
+ _titleBarView = [newTitleBarView retain];
+#endif
+ // Configure the view properties and add it as a subview of the theme frame
+ NSView *themeFrame = [[self contentView] superview];
+ NSView *firstSubview = [[themeFrame subviews] objectAtIndex:0];
+ [_titleBarView setAutoresizingMask:(NSViewMinYMargin | NSViewWidthSizable)];
+ [self _recalculateFrameForTitleBarView];
+ [themeFrame addSubview:_titleBarView positioned:NSWindowBelow relativeTo:firstSubview];
+ [self _layoutTrafficLightsAndContent];
+ [self _displayWindowAndTitlebar];
+ }
+}
+
+- (NSView *)titleBarView
+{
+ return _titleBarView;
+}
+
+- (void)setTitleBarHeight:(CGFloat)newTitleBarHeight
+{
+ if (_titleBarHeight != newTitleBarHeight) {
+ _cachedTitleBarHeight = newTitleBarHeight;
+ _titleBarHeight = newTitleBarHeight;
+ [self _recalculateFrameForTitleBarView];
+ [self _layoutTrafficLightsAndContent];
+ [self _displayWindowAndTitlebar];
+ }
+}
+
+- (CGFloat)titleBarHeight
+{
+ return _titleBarHeight;
+}
+
+- (void)setShowsBaselineSeparator:(BOOL)showsBaselineSeparator
+{
+ if (_showsBaselineSeparator != showsBaselineSeparator) {
+ _showsBaselineSeparator = showsBaselineSeparator;
+ [self.titleBarView setNeedsDisplay:YES];
+ }
+}
+
+- (BOOL)showsBaselineSeparator
+{
+ return _showsBaselineSeparator;
+}
+
+- (void)setTrafficLightButtonsLeftMargin:(CGFloat)newTrafficLightButtonsLeftMargin
+{
+ if (_trafficLightButtonsLeftMargin != newTrafficLightButtonsLeftMargin) {
+ _trafficLightButtonsLeftMargin = newTrafficLightButtonsLeftMargin;
+ [self _recalculateFrameForTitleBarView];
+ [self _layoutTrafficLightsAndContent];
+ [self _displayWindowAndTitlebar];
+ }
+}
+
+- (CGFloat)trafficLightButtonsLeftMargin
+{
+ return _trafficLightButtonsLeftMargin;
+}
+
+
+- (void)setFullScreenButtonRightMargin:(CGFloat)newFullScreenButtonRightMargin
+{
+ if (_fullScreenButtonRightMargin != newFullScreenButtonRightMargin) {
+ _setFullScreenButtonRightMargin = YES;
+ _fullScreenButtonRightMargin = newFullScreenButtonRightMargin;
+ [self _recalculateFrameForTitleBarView];
+ [self _layoutTrafficLightsAndContent];
+ [self _displayWindowAndTitlebar];
+ }
+}
+
+- (CGFloat)fullScreenButtonRightMargin
+{
+ return _fullScreenButtonRightMargin;
+}
+
+- (void)setCenterFullScreenButton:(BOOL)centerFullScreenButton{
+ if( _centerFullScreenButton != centerFullScreenButton ) {
+ _centerFullScreenButton = centerFullScreenButton;
+ [self _layoutTrafficLightsAndContent];
+ }
+}
+
+- (void)setCenterTrafficLightButtons:(BOOL)centerTrafficLightButtons
+{
+ if ( _centerTrafficLightButtons != centerTrafficLightButtons ) {
+ _centerTrafficLightButtons = centerTrafficLightButtons;
+ [self _layoutTrafficLightsAndContent];
+ }
+}
+
+#pragma mark -
+#pragma mark Private
+
+- (void)_doInitialWindowSetup
+{
+ _showsBaselineSeparator = YES;
+ _centerTrafficLightButtons = YES;
+ _titleBarHeight = [self _minimumTitlebarHeight];
+ _trafficLightButtonsLeftMargin = [self _defaultTrafficLightLeftMargin];
+ [self setMovableByWindowBackground:YES];
+
+ /** -----------------------------------------
+ - The window automatically does layout every time its moved or resized, which means that the traffic lights and content view get reset at the original positions, so we need to put them back in place
+ - NSWindow is hardcoded to redraw the traffic lights in a specific rect, so when they are moved down, only part of the buttons get redrawn, causing graphical artifacts. Therefore, the window must be force redrawn every time it becomes key/resigns key
+ ----------------------------------------- **/
+ NSNotificationCenter *nc = [NSNotificationCenter defaultCenter];
+ [nc addObserver:self selector:@selector(_layoutTrafficLightsAndContent) name:NSWindowDidResizeNotification object:self];
+ [nc addObserver:self selector:@selector(_layoutTrafficLightsAndContent) name:NSWindowDidMoveNotification object:self];
+ [nc addObserver:self selector:@selector(_displayWindowAndTitlebar) name:NSWindowDidResignKeyNotification object:self];
+ [nc addObserver:self selector:@selector(_displayWindowAndTitlebar) name:NSWindowDidBecomeKeyNotification object:self];
+ [nc addObserver:self selector:@selector(_setupTrafficLightsTrackingArea) name:NSWindowDidBecomeKeyNotification object:self];
+ [nc addObserver:self selector:@selector(_displayWindowAndTitlebar) name:NSApplicationDidBecomeActiveNotification object:nil];
+ [nc addObserver:self selector:@selector(_displayWindowAndTitlebar) name:NSApplicationDidResignActiveNotification object:nil];
+#if IN_COMPILING_LION
+ if (IN_RUNNING_LION) {
+ [nc addObserver:self selector:@selector(_setupTrafficLightsTrackingArea) name:NSWindowDidExitFullScreenNotification object:nil];
+ [nc addObserver:self selector:@selector(windowWillEnterFullScreen:) name:NSWindowWillEnterFullScreenNotification object:nil];
+ [nc addObserver:self selector:@selector(windowWillExitFullScreen:) name:NSWindowWillExitFullScreenNotification object:nil];
+ }
+#endif
+ [self _createTitlebarView];
+ [self _layoutTrafficLightsAndContent];
+ [self _setupTrafficLightsTrackingArea];
+}
+
+- (void)_layoutTrafficLightsAndContent
+{
+ NSButton *close = [self standardWindowButton:NSWindowCloseButton];
+ NSButton *minimize = [self standardWindowButton:NSWindowMiniaturizeButton];
+ NSButton *zoom = [self standardWindowButton:NSWindowZoomButton];
+
+ // Set the frame of the window buttons
+ NSRect closeFrame = [close frame];
+ NSRect minimizeFrame = [minimize frame];
+ NSRect zoomFrame = [zoom frame];
+ NSRect titleBarFrame = [_titleBarView frame];
+ CGFloat buttonOrigin = 0.0;
+ if ( self.centerTrafficLightButtons ) {
+ buttonOrigin = round(NSMidY(titleBarFrame) - INMidHeight(closeFrame));
+ } else {
+ buttonOrigin = NSMaxY(titleBarFrame) - NSHeight(closeFrame) - INButtonTopOffset;
+ }
+ closeFrame.origin.y = buttonOrigin;
+ minimizeFrame.origin.y = buttonOrigin;
+ zoomFrame.origin.y = buttonOrigin;
+ closeFrame.origin.x = _trafficLightButtonsLeftMargin;
+ minimizeFrame.origin.x = _trafficLightButtonsLeftMargin + [self _trafficLightSeparation];
+ zoomFrame.origin.x = _trafficLightButtonsLeftMargin + [self _trafficLightSeparation] * 2;
+ [close setFrame:closeFrame];
+ [minimize setFrame:minimizeFrame];
+ [zoom setFrame:zoomFrame];
+
+#if IN_COMPILING_LION
+ // Set the frame of the FullScreen button in Lion if available
+ if ( IN_RUNNING_LION ) {
+ NSButton *fullScreen = [self standardWindowButton:NSWindowFullScreenButton];
+ if( fullScreen ) {
+ NSRect fullScreenFrame = [fullScreen frame];
+ if ( !_setFullScreenButtonRightMargin ) {
+ self.fullScreenButtonRightMargin = NSWidth([_titleBarView frame]) - NSMaxX(fullScreen.frame);
+ }
+ fullScreenFrame.origin.x = NSWidth(titleBarFrame) - NSWidth(fullScreenFrame) - _fullScreenButtonRightMargin;
+ if( self.centerFullScreenButton ) {
+ fullScreenFrame.origin.y = round(NSMidY(titleBarFrame) - INMidHeight(fullScreenFrame));
+ } else {
+ fullScreenFrame.origin.y = NSMaxY(titleBarFrame) - NSHeight(fullScreenFrame) - INButtonTopOffset;
+ }
+ [fullScreen setFrame:fullScreenFrame];
+ }
+ }
+#endif
+
+ // Reposition the content view
+ NSView *contentView = [self contentView];
+ NSRect windowFrame = [self frame];
+ NSRect newFrame = [contentView frame];
+ CGFloat titleHeight = NSHeight(windowFrame) - NSHeight(newFrame);
+ CGFloat extraHeight = _titleBarHeight - titleHeight;
+ newFrame.size.height -= extraHeight;
+ [contentView setFrame:newFrame];
+ [contentView setNeedsDisplay:YES];
+}
+
+- (void)windowWillEnterFullScreen:(NSNotification *)notification
+{
+ if (_hideTitleBarInFullScreen) {
+ // Recalculate the views when entering from fullscreen
+ _titleBarHeight = 0.0f;
+ [self _recalculateFrameForTitleBarView];
+ [self _layoutTrafficLightsAndContent];
+ [self _displayWindowAndTitlebar];
+
+ [self _hideTitleBarView:YES];
+ }
+}
+
+- (void)windowWillExitFullScreen:(NSNotification *)notification
+{
+ if (_hideTitleBarInFullScreen) {
+ _titleBarHeight = _cachedTitleBarHeight;
+ [self _recalculateFrameForTitleBarView];
+ [self _layoutTrafficLightsAndContent];
+ [self _displayWindowAndTitlebar];
+
+ [self _hideTitleBarView:NO];
+ }
+}
+
+- (void)_createTitlebarView
+{
+ // Create the title bar view
+#if __has_feature(objc_arc)
+ self.titleBarView = [[INTitlebarView alloc] initWithFrame:NSZeroRect];
+#else
+ self.titleBarView = [[[INTitlebarView alloc] initWithFrame:NSZeroRect] autorelease];
+#endif
+}
+
+- (void)_hideTitleBarView:(BOOL)hidden
+{
+ [self.titleBarView setHidden:hidden];
+}
+
+// Solution for tracking area issue thanks to @Perspx (Alex Rozanski) <https://gist.github.com/972958>
+- (void)_setupTrafficLightsTrackingArea
+{
+ [[[self contentView] superview] viewWillStartLiveResize];
+ [[[self contentView] superview] viewDidEndLiveResize];
+}
+
+- (void)_recalculateFrameForTitleBarView
+{
+ NSView *themeFrame = [[self contentView] superview];
+ NSRect themeFrameRect = [themeFrame frame];
+ NSRect titleFrame = NSMakeRect(0.0, NSMaxY(themeFrameRect) - _titleBarHeight, NSWidth(themeFrameRect), _titleBarHeight);
+ [_titleBarView setFrame:titleFrame];
+}
+
+- (CGFloat)_minimumTitlebarHeight
+{
+ static CGFloat minTitleHeight = 0.0;
+ if ( !minTitleHeight ) {
+ NSRect frameRect = [self frame];
+ NSRect contentRect = [self contentRectForFrameRect:frameRect];
+ minTitleHeight = NSHeight(frameRect) - NSHeight(contentRect);
+ }
+ return minTitleHeight;
+}
+
+- (CGFloat)_defaultTrafficLightLeftMargin
+{
+ static CGFloat trafficLightLeftMargin = 0.0;
+ if ( !trafficLightLeftMargin ) {
+ NSButton *close = [self standardWindowButton:NSWindowCloseButton];
+ trafficLightLeftMargin = NSMinX(close.frame);
+ }
+ return trafficLightLeftMargin;
+}
+
+- (CGFloat)_trafficLightSeparation
+{
+ static CGFloat trafficLightSeparation = 0.0;
+ if ( !trafficLightSeparation ) {
+ NSButton *close = [self standardWindowButton:NSWindowCloseButton];
+ NSButton *minimize = [self standardWindowButton:NSWindowMiniaturizeButton];
+ trafficLightSeparation = NSMinX(minimize.frame) - NSMinX(close.frame);
+ }
+ return trafficLightSeparation;
+}
+
+- (void)_displayWindowAndTitlebar
+{
+ // Redraw the window and titlebar
+ [_titleBarView setNeedsDisplay:YES];
+}
+@end
View
77 Pods/INAppStoreWindow/README.md
@@ -0,0 +1,77 @@
+## INAppStoreWindow: Mac App Store style NSWindow subclass
+
+INAppStoreWindow is an NSWindow subclass that mimics the appearance of the main window in the Mac App Store application. These modifications consist of enlarging the title bar, and centring the traffic lights (**note that this subclass does not handle the creation of a toolbar**). The end result looks like this:
+
+![INAppStoreWindow](http://i41.tinypic.com/abidd1.png)
+
+**Features of INAppStoreWindow:**
+
+* No use of private APIs, so it should be App Store friendly
+* The title bar view is entirely customizable -- you can add subviews (toolbars, buttons, etc.) as well as customize the title bar itself to give it a different appearance
+* The height of the title bar is easily adjustable
+* Compiles and runs perfectly under ARC and non-ARC setups (thanks to @InScopeApps)
+* Support's Lion's full screen mode
+
+## Usage
+
+### Basic Configuration
+
+Using `INAppStoreWindow` is as easy as changing the class of the `NSWindow` in Interface Builder, or simply by creating an instance of `INAppStoreWindow` in code (if you're doing it programatically). I've included a sample project demonstrating how to use `INAppStoreWindow`.
+
+**NOTE: The title bar height is set to the standard window title height by default. You must set the 'titleBarHeight' property in order to increase the height of the title bar.**
+
+Some people seem to be having an issue where the title bar height property is not set properly when calling the method on an NSWindow without typecasting it to the INAppStoreWindow class. If you are experiencing this issue, do something like this (using a window controller, for example):
+
+ INAppStoreWindow *aWindow = (INAppStoreWindow*)[windowController window];
+ aWindow.titleBarHeight = 60.0;
+
+### Sheet Windows
+
+Because of the enlarged title bar, sheet windows may not appear properly (it'll look like they're popping out of the center of the title bar). To fix this, override this `NSWindow` delegate method and return an appropriate rect for where you want the sheet window to be positioned:
+
+`- (NSRect)window:(NSWindow *)window willPositionSheet:(NSWindow *)sheet usingRect:(NSRect)rect`
+
+### Adding buttons and other controls to the title bar
+
+Adding controls and other views to the title bar is simple. This can be done either programatically or through Interface Builder. Here are examples of both methods:
+
+**Programatically**
+
+```
+// This code places a 100x100 button in the center of the title bar view
+NSView *titleBarView = self.window.titleBarView;
+NSSize buttonSize = NSMakeSize(100.f, 100.f);
+NSRect buttonFrame = NSMakeRect(NSMidX(titleBarView.bounds) - (buttonSize.width / 2.f), NSMidY(titleBarView.bounds) - (buttonSize.height / 2.f), buttonSize.width, buttonSize.height);
+NSButton *button = [[NSButton alloc] initWithFrame:buttonFrame];
+[button setTitle:@"A Button"];
+[titleBarView addSubview:button];
+````
+
+**Interface Builder**
+
+**NOTE:** Even though the content layout for the title bar can be done in Interface Builder, you still need to use the below code to display the view created in IB in the title bar.
+
+```
+// self.titleView is a an IBOutlet to an NSView that has been configured in IB with everything you want in the title bar
+self.titleView.frame = self.window.titleBarView.bounds;
+self.titleView.autoresizingMask = NSViewWidthSizable | NSViewHeightSizable;
+[self.window.titleBarView addSubview:self.titleView];
+```
+
+## Who am I?
+
+I'm Indragie Karunaratne, a 16 year old Mac OS X and iOS Developer from Edmonton AB, Canada. Visit [my website](http://indragie.com) to check out my work, or to get in touch with me.
+
+## Special Thanks To
+
+- Alex Rozanski ([@Perspx](https://github.com/perspx))
+- David Keegan ([@InScopeApps](https://github.com/inscopeapps))
+- Victor Pimentel ([@victorpimentel](https://github.com/victorpimentel))
+- Wade Cosgrove ([@wadeco](https://github.com/wadeco))
+- Levi Nunnink ([@levinunnink](https://github.com/levinunnink))
+- Georg C. Brückmann ([@gcbrueckmann](https://github.com/gcbrueckmann))
+- nonamelive ([@nonamelive](https://github.com/nonamelive))
+
+## Licensing
+
+INAppStoreWindow is licensed under the [BSD license](http://www.opensource.org/licenses/bsd-license.php).
View
3  Pods/Pods-prefix.pch
@@ -0,0 +1,3 @@
+#ifdef __OBJC__
+#import <Cocoa/Cocoa.h>
+#endif
View
15 Pods/Pods-resources.sh
@@ -0,0 +1,15 @@
+#!/bin/sh
+
+install_resource()
+{
+ case $1 in
+ *.xib)
+ echo "ibtool --errors --warnings --notices --output-format human-readable-text --compile ${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename $1 .xib`.nib ${SRCROOT}/Pods/$1 --sdk ${SDKROOT}"
+ ibtool --errors --warnings --notices --output-format human-readable-text --compile ${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename $1 .xib`.nib ${SRCROOT}/Pods/$1 --sdk ${SDKROOT}
+ ;;
+ *)
+ echo "cp -R ${SRCROOT}/Pods/$1 ${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}"
+ cp -R "${SRCROOT}/Pods/$1" "${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}"
+ ;;
+ esac
+}
View
4 Pods/Pods.xcconfig
@@ -0,0 +1,4 @@
+PODS_ROOT = $(SRCROOT)/Pods
+HEADER_SEARCH_PATHS = "$(PODS_ROOT)/Headers" "$(PODS_ROOT)/Headers/INAppStoreWindow"
+ALWAYS_SEARCH_USER_PATHS = YES
+OTHER_LDFLAGS = -ObjC -all_load
View
503 Pods/Pods.xcodeproj/project.pbxproj
@@ -0,0 +1,503 @@
+<?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>archiveVersion</key>
+ <string>1</string>
+ <key>classes</key>
+ <dict/>
+ <key>objectVersion</key>
+ <string>46</string>
+ <key>objects</key>
+ <dict>
+ <key>11DE682F955D412D988093C0</key>
+ <dict>
+ <key>buildConfigurationList</key>
+ <string>BD88779D818D495482703B16</string>
+ <key>buildPhases</key>
+ <array>
+ <string>881B477B0E9F49008E693EA4</string>
+ <string>8DCDE439A15346D2B190ACA4</string>
+ <string>7D8EB0A28B4B4D2EAA1F3469</string>
+ </array>
+ <key>buildRules</key>
+ <array/>
+ <key>dependencies</key>
+ <array/>
+ <key>isa</key>
+ <string>PBXNativeTarget</string>
+ <key>name</key>
+ <string>Pods</string>
+ <key>productName</key>
+ <string>Pods</string>
+ <key>productReference</key>
+ <string>EE9057095B1042E38A98CC46</string>
+ <key>productType</key>
+ <string>com.apple.product-type.library.static</string>
+ </dict>
+ <key>2E0FFA6400EC446D85E9A44D</key>
+ <dict>
+ <key>fileRef</key>
+ <string>E9A830F4061749D5AE0D4D8C</string>
+ <key>isa</key>
+ <string>PBXBuildFile</string>
+ </dict>
+ <key>3190FF343B8047C188A5C217</key>
+ <dict>
+ <key>buildSettings</key>
+ <dict>
+ <key>ALWAYS_SEARCH_USER_PATHS</key>
+ <string>NO</string>
+ <key>ARCHS</key>
+ <string>$(ARCHS_STANDARD_64_BIT)</string>
+ <key>COPY_PHASE_STRIP</key>
+ <string>YES</string>
+ <key>DEBUG_INFORMATION_FORMAT</key>
+ <string>dwarf-with-dsym</string>
+ <key>DSTROOT</key>
+ <string>/tmp/xcodeproj.dst</string>
+ <key>GCC_C_LANGUAGE_STANDARD</key>
+ <string>gnu99</string>
+ <key>GCC_ENABLE_OBJC_EXCEPTIONS</key>
+ <string>YES</string>
+ <key>GCC_PRECOMPILE_PREFIX_HEADER</key>
+ <string>YES</string>
+ <key>GCC_VERSION</key>
+ <string>com.apple.compilers.llvm.clang.1_0</string>
+ <key>GCC_WARN_64_TO_32_BIT_CONVERSION</key>
+ <string>YES</string>
+ <key>GCC_WARN_ABOUT_MISSING_PROTOTYPES</key>
+ <string>YES</string>
+ <key>GCC_WARN_ABOUT_RETURN_TYPE</key>
+ <string>YES</string>
+ <key>GCC_WARN_UNUSED_VARIABLE</key>
+ <string>YES</string>
+ <key>INSTALL_PATH</key>
+ <string>$(BUILT_PRODUCTS_DIR)</string>
+ <key>MACOSX_DEPLOYMENT_TARGET</key>
+ <string>10.7</string>
+ <key>OTHER_LDFLAGS</key>
+ <string></string>
+ <key>PRODUCT_NAME</key>
+ <string>$(TARGET_NAME)</string>
+ <key>SDKROOT</key>
+ <string>macosx</string>
+ <key>SKIP_INSTALL</key>
+ <string>YES</string>
+ </dict>
+ <key>isa</key>
+ <string>XCBuildConfiguration</string>
+ <key>name</key>
+ <string>Release</string>
+ </dict>
+ <key>3DF7977CAD8C4325964D3E01</key>
+ <dict>
+ <key>isa</key>
+ <string>PBXFileReference</string>
+ <key>name</key>
+ <string>INAppStoreWindow.m</string>
+ <key>path</key>
+ <string>INAppStoreWindow/INAppStoreWindow.m</string>
+ <key>sourceTree</key>
+ <string>SOURCE_ROOT</string>
+ </dict>
+ <key>4073BA7316404543951394C1</key>
+ <dict>
+ <key>buildSettings</key>
+ <dict>
+ <key>ALWAYS_SEARCH_USER_PATHS</key>
+ <string>NO</string>
+ <key>ARCHS</key>
+ <string>$(ARCHS_STANDARD_64_BIT)</string>
+ <key>COPY_PHASE_STRIP</key>
+ <string>NO</string>
+ <key>DSTROOT</key>
+ <string>/tmp/xcodeproj.dst</string>
+ <key>GCC_C_LANGUAGE_STANDARD</key>
+ <string>gnu99</string>
+ <key>GCC_DYNAMIC_NO_PIC</key>
+ <string>NO</string>
+ <key>GCC_ENABLE_OBJC_EXCEPTIONS</key>
+ <string>YES</string>
+ <key>GCC_OPTIMIZATION_LEVEL</key>
+ <string>0</string>
+ <key>GCC_PRECOMPILE_PREFIX_HEADER</key>
+ <string>YES</string>
+ <key>GCC_PREPROCESSOR_DEFINITIONS</key>
+ <array>
+ <string>DEBUG=1</string>
+ <string>$(inherited)</string>
+ </array>
+ <key>GCC_SYMBOLS_PRIVATE_EXTERN</key>
+ <string>NO</string>
+ <key>GCC_VERSION</key>
+ <string>com.apple.compilers.llvm.clang.1_0</string>
+ <key>GCC_WARN_64_TO_32_BIT_CONVERSION</key>
+ <string>YES</string>
+ <key>GCC_WARN_ABOUT_MISSING_PROTOTYPES</key>
+ <string>YES</string>
+ <key>GCC_WARN_ABOUT_RETURN_TYPE</key>
+ <string>YES</string>
+ <key>GCC_WARN_UNUSED_VARIABLE</key>
+ <string>YES</string>
+ <key>INSTALL_PATH</key>
+ <string>$(BUILT_PRODUCTS_DIR)</string>
+ <key>MACOSX_DEPLOYMENT_TARGET</key>
+ <string>10.7</string>
+ <key>ONLY_ACTIVE_ARCH</key>
+ <string>YES</string>
+ <key>OTHER_LDFLAGS</key>
+ <string></string>
+ <key>PRODUCT_NAME</key>
+ <string>$(TARGET_NAME)</string>
+ <key>SDKROOT</key>
+ <string>macosx</string>
+ <key>SKIP_INSTALL</key>
+ <string>YES</string>
+ </dict>
+ <key>isa</key>
+ <string>XCBuildConfiguration</string>
+ <key>name</key>
+ <string>Debug</string>
+ </dict>
+ <key>65B612BA1E59400C9A729D5C</key>
+ <dict>
+ <key>children</key>
+ <array>
+ <string>F52BF343D12E46BB9520D746</string>
+ <string>3DF7977CAD8C4325964D3E01</string>
+ </array>
+ <key>isa</key>
+ <string>PBXGroup</string>
+ <key>name</key>
+ <string>INAppStoreWindow</string>
+ <key>sourceTree</key>
+ <string>&lt;group&gt;</string>
+ </dict>
+ <key>66DC10FC32D54AB1BF2543C2</key>
+ <dict>
+ <key>children</key>
+ <array>
+ <string>CF75F52439034C59A24D6062</string>
+ <string>88466A7C114A483885A652AC</string>
+ <string>CE0C575C5F054EEF8B943EDE</string>
+ <string>6E5D0AB0A52C430D930F8FF8</string>
+ </array>
+ <key>isa</key>
+ <string>PBXGroup</string>
+ <key>sourceTree</key>
+ <string>&lt;group&gt;</string>
+ </dict>
+ <key>6E5D0AB0A52C430D930F8FF8</key>
+ <dict>
+ <key>children</key>
+ <array>
+ <string>D97667CE7430425882A08E66</string>
+ </array>
+ <key>isa</key>
+ <string>PBXGroup</string>
+ <key>name</key>
+ <string>Targets Support Files</string>
+ <key>sourceTree</key>
+ <string>&lt;group&gt;</string>
+ </dict>
+ <key>7600EA0ABA0049348185D104</key>
+ <dict>
+ <key>buildConfigurations</key>
+ <array>
+ <string>4073BA7316404543951394C1</string>
+ <string>3190FF343B8047C188A5C217</string>
+ </array>
+ <key>defaultConfigurationIsVisible</key>
+ <string>0</string>
+ <key>defaultConfigurationName</key>
+ <string>Release</string>
+ <key>isa</key>
+ <string>XCConfigurationList</string>
+ </dict>
+ <key>7D8EB0A28B4B4D2EAA1F3469</key>
+ <dict>
+ <key>buildActionMask</key>
+ <string>2147483647</string>
+ <key>files</key>
+ <array>
+ <string>2E0FFA6400EC446D85E9A44D</string>
+ </array>
+ <key>isa</key>
+ <string>PBXFrameworksBuildPhase</string>
+ <key>runOnlyForDeploymentPostprocessing</key>
+ <string>0</string>
+ </dict>
+ <key>7E38C04C1B3D4D718A2D4363</key>
+ <dict>
+ <key>attributes</key>
+ <dict>
+ <key>LastUpgradeCheck</key>
+ <string>0420</string>
+ </dict>
+ <key>buildConfigurationList</key>
+ <string>7600EA0ABA0049348185D104</string>
+ <key>compatibilityVersion</key>
+ <string>Xcode 3.2</string>
+ <key>developmentRegion</key>
+ <string>English</string>
+ <key>hasScannedForEncodings</key>
+ <string>0</string>
+ <key>isa</key>
+ <string>PBXProject</string>
+ <key>knownRegions</key>
+ <array>
+ <string>en</string>
+ </array>
+ <key>mainGroup</key>
+ <string>66DC10FC32D54AB1BF2543C2</string>
+ <key>productRefGroup</key>
+ <string>CE0C575C5F054EEF8B943EDE</string>
+ <key>projectDirPath</key>
+ <string></string>
+ <key>projectRoot</key>
+ <string></string>
+ <key>targets</key>
+ <array>
+ <string>11DE682F955D412D988093C0</string>
+ </array>
+ </dict>
+ <key>881B477B0E9F49008E693EA4</key>
+ <dict>
+ <key>buildActionMask</key>
+ <string>2147483647</string>
+ <key>dstPath</key>
+ <string>$(PRODUCT_NAME)</string>
+ <key>dstSubfolderSpec</key>
+ <string>16</string>
+ <key>files</key>
+ <array/>
+ <key>isa</key>
+ <string>PBXCopyFilesBuildPhase</string>
+ <key>runOnlyForDeploymentPostprocessing</key>
+ <string>0</string>
+ </dict>
+ <key>88466A7C114A483885A652AC</key>
+ <dict>
+ <key>children</key>
+ <array>
+ <string>E9A830F4061749D5AE0D4D8C</string>
+ </array>
+ <key>isa</key>
+ <string>PBXGroup</string>
+ <key>name</key>
+ <string>Frameworks</string>
+ <key>sourceTree</key>
+ <string>&lt;group&gt;</string>
+ </dict>
+ <key>8DCDE439A15346D2B190ACA4</key>
+ <dict>
+ <key>buildActionMask</key>
+ <string>2147483647</string>
+ <key>files</key>
+ <array>
+ <string>A5837C9CB69F4609A6E97975</string>
+ </array>
+ <key>isa</key>
+ <string>PBXSourcesBuildPhase</string>
+ <key>runOnlyForDeploymentPostprocessing</key>
+ <string>0</string>
+ </dict>
+ <key>A5837C9CB69F4609A6E97975</key>
+ <dict>
+ <key>fileRef</key>
+ <string>3DF7977CAD8C4325964D3E01</string>
+ <key>isa</key>
+ <string>PBXBuildFile</string>
+ <key>settings</key>
+ <dict>
+ <key>COMPILER_FLAGS</key>
+ <string> -fobjc-arc</string>
+ </dict>
+ </dict>
+ <key>B37D26600D1241A189B6C76E</key>
+ <dict>
+ <key>baseConfigurationReference</key>
+ <string>B629EF66334841E2A03BB852</string>
+ <key>buildSettings</key>
+ <dict>
+ <key>DSTROOT</key>
+ <string>/tmp/xcodeproj.dst</string>
+ <key>GCC_PRECOMPILE_PREFIX_HEADER</key>
+ <string>YES</string>
+ <key>GCC_PREFIX_HEADER</key>
+ <string>Pods-prefix.pch</string>
+ <key>GCC_VERSION</key>
+ <string>com.apple.compilers.llvm.clang.1_0</string>
+ <key>OTHER_LDFLAGS</key>
+ <string></string>
+ <key>PODS_ROOT</key>
+ <string>$(SRCROOT)</string>
+ <key>PRODUCT_NAME</key>
+ <string>$(TARGET_NAME)</string>
+ <key>SKIP_INSTALL</key>
+ <string>YES</string>
+ </dict>
+ <key>isa</key>
+ <string>XCBuildConfiguration</string>
+ <key>name</key>
+ <string>Debug</string>
+ </dict>
+ <key>B629EF66334841E2A03BB852</key>
+ <dict>
+ <key>isa</key>
+ <string>PBXFileReference</string>
+ <key>lastKnownFileType</key>
+ <string>text.xcconfig</string>
+ <key>name</key>
+ <string>Pods.xcconfig</string>
+ <key>path</key>
+ <string>Pods.xcconfig</string>
+ <key>sourceTree</key>
+ <string>SOURCE_ROOT</string>
+ </dict>
+ <key>BD88779D818D495482703B16</key>
+ <dict>
+ <key>buildConfigurations</key>
+ <array>
+ <string>B37D26600D1241A189B6C76E</string>
+ <string>EB7DEE26770746129E81CF6E</string>
+ </array>
+ <key>isa</key>
+ <string>XCConfigurationList</string>
+ </dict>
+ <key>CE0C575C5F054EEF8B943EDE</key>
+ <dict>
+ <key>children</key>
+ <array>
+ <string>EE9057095B1042E38A98CC46</string>
+ </array>
+ <key>isa</key>
+ <string>PBXGroup</string>
+ <key>name</key>
+ <string>Products</string>
+ <key>sourceTree</key>
+ <string>&lt;group&gt;</string>
+ </dict>
+ <key>CF75F52439034C59A24D6062</key>
+ <dict>
+ <key>children</key>
+ <array>
+ <string>65B612BA1E59400C9A729D5C</string>
+ </array>
+ <key>isa</key>
+ <string>PBXGroup</string>
+ <key>name</key>
+ <string>Pods</string>
+ <key>sourceTree</key>
+ <string>&lt;group&gt;</string>
+ </dict>
+ <key>D97667CE7430425882A08E66</key>
+ <dict>
+ <key>children</key>
+ <array>
+ <string>F066B34F1260455F874AA447</string>
+ <string>FA8BC3FDA7E046E7B5DB6900</string>
+ <string>B629EF66334841E2A03BB852</string>
+ </array>
+ <key>isa</key>
+ <string>PBXGroup</string>
+ <key>name</key>
+ <string>Pods</string>
+ <key>sourceTree</key>
+ <string>&lt;group&gt;</string>
+ </dict>
+ <key>E9A830F4061749D5AE0D4D8C</key>
+ <dict>
+ <key>isa</key>
+ <string>PBXFileReference</string>
+ <key>lastKnownFileType</key>
+ <string>wrapper.framework</string>
+ <key>name</key>
+ <string>Cocoa.framework</string>
+ <key>path</key>
+ <string>System/Library/Frameworks/Cocoa.framework</string>
+ <key>sourceTree</key>
+ <string>SDKROOT</string>
+ </dict>
+ <key>EB7DEE26770746129E81CF6E</key>
+ <dict>
+ <key>baseConfigurationReference</key>
+ <string>B629EF66334841E2A03BB852</string>
+ <key>buildSettings</key>
+ <dict>
+ <key>DSTROOT</key>
+ <string>/tmp/xcodeproj.dst</string>
+ <key>GCC_PRECOMPILE_PREFIX_HEADER</key>
+ <string>YES</string>
+ <key>GCC_PREFIX_HEADER</key>
+ <string>Pods-prefix.pch</string>
+ <key>GCC_VERSION</key>
+ <string>com.apple.compilers.llvm.clang.1_0</string>
+ <key>OTHER_LDFLAGS</key>
+ <string></string>
+ <key>PODS_ROOT</key>
+ <string>$(SRCROOT)</string>
+ <key>PRODUCT_NAME</key>
+ <string>$(TARGET_NAME)</string>
+ <key>SKIP_INSTALL</key>
+ <string>YES</string>
+ </dict>
+ <key>isa</key>
+ <string>XCBuildConfiguration</string>
+ <key>name</key>
+ <string>Release</string>
+ </dict>
+ <key>EE9057095B1042E38A98CC46</key>
+ <dict>
+ <key>explicitFileType</key>
+ <string>archive.ar</string>
+ <key>includeInIndex</key>
+ <string>0</string>
+ <key>isa</key>
+ <string>PBXFileReference</string>
+ <key>name</key>
+ <string>libPods.a</string>
+ <key>path</key>
+ <string>libPods.a</string>
+ <key>sourceTree</key>
+ <string>BUILT_PRODUCTS_DIR</string>
+ </dict>
+ <key>F066B34F1260455F874AA447</key>
+ <dict>
+ <key>isa</key>
+ <string>PBXFileReference</string>
+ <key>name</key>
+ <string>Pods-resources.sh</string>
+ <key>path</key>
+ <string>Pods-resources.sh</string>
+ <key>sourceTree</key>
+ <string>SOURCE_ROOT</string>
+ </dict>
+ <key>F52BF343D12E46BB9520D746</key>
+ <dict>
+ <key>isa</key>
+ <string>PBXFileReference</string>
+ <key>name</key>
+ <string>INAppStoreWindow.h</string>
+ <key>path</key>
+ <string>INAppStoreWindow/INAppStoreWindow.h</string>
+ <key>sourceTree</key>
+ <string>SOURCE_ROOT</string>
+ </dict>
+ <key>FA8BC3FDA7E046E7B5DB6900</key>
+ <dict>
+ <key>isa</key>
+ <string>PBXFileReference</string>
+ <key>name</key>
+ <string>Pods-prefix.pch</string>
+ <key>path</key>
+ <string>Pods-prefix.pch</string>
+ <key>sourceTree</key>
+ <string>SOURCE_ROOT</string>
+ </dict>
+ </dict>
+ <key>rootObject</key>
+ <string>7E38C04C1B3D4D718A2D4363</string>
+</dict>
+</plist>
View
108 en.lproj/MainMenu.xib
@@ -2,7 +2,7 @@
<archive type="com.apple.InterfaceBuilder3.Cocoa.XIB" version="8.00">
<data>
<int key="IBDocument.SystemTarget">1070</int>
- <string key="IBDocument.SystemVersion">11D50</string>
+ <string key="IBDocument.SystemVersion">11D50b</string>
<string key="IBDocument.InterfaceBuilderVersion">1938</string>
<string key="IBDocument.AppKitVersion">1138.32</string>
<string key="IBDocument.HIToolboxVersion">568.00</string>
@@ -292,7 +292,7 @@
<string key="NSWindowRect">{{715, 390}, {400, 380}}</string>
<int key="NSWTFlags">1954021376</int>
<string key="NSWindowTitle">Perpetual</string>
- <string key="NSWindowClass">NSWindow</string>
+ <string key="NSWindowClass">INAppStoreWindow</string>
<nil key="NSViewClass"/>
<nil key="NSUserInterfaceItemIdentifier"/>
<object class="NSView" key="NSWindowView" id="439893737">
@@ -312,7 +312,6 @@
</set>
<string key="NSFrame">{{-3, 127}, {406, 256}}</string>
<reference key="NSSuperview" ref="439893737"/>
- <reference key="NSWindow"/>
<reference key="NSNextKeyView" ref="690740704"/>
<string key="NSReuseIdentifierKey">_NS:2141</string>
<bool key="NSEnabled">YES</bool>
@@ -336,7 +335,6 @@
<int key="NSvFlags">268</int>
<string key="NSFrame">{{8, 82}, {40, 40}}</string>
<reference key="NSSuperview" ref="439893737"/>
- <reference key="NSWindow"/>
<reference key="NSNextKeyView" ref="353695766"/>
<string key="NSReuseIdentifierKey">_NS:687</string>
<bool key="NSEnabled">YES</bool>
@@ -368,7 +366,6 @@
<int key="NSvFlags">268</int>
<string key="NSFrame">{{59, 86}, {245, 34}}</string>
<reference key="NSSuperview" ref="439893737"/>
- <reference key="NSWindow"/>
<reference key="NSNextKeyView" ref="753304525"/>
<string key="NSReuseIdentifierKey">_NS:360</string>
<string key="NSAntiCompressionPriority">{250, 750}</string>
@@ -409,7 +406,6 @@
<int key="NSvFlags">268</int>
<string key="NSFrame">{{319, 95}, {75, 17}}</string>
<reference key="NSSuperview" ref="439893737"/>
- <reference key="NSWindow"/>
<reference key="NSNextKeyView" ref="752942585"/>
<string key="NSReuseIdentifierKey">_NS:3944</string>
<bool key="NSEnabled">YES</bool>
@@ -429,7 +425,6 @@
<int key="NSvFlags">268</int>
<string key="NSFrame">{{18, 34}, {366, 16}}</string>
<reference key="NSSuperview" ref="439893737"/>
- <reference key="NSWindow"/>
<reference key="NSNextKeyView" ref="75188771"/>
<string key="NSReuseIdentifierKey">_NS:2200</string>
<bool key="NSEnabled">YES</bool>
@@ -447,7 +442,6 @@
<int key="NSvFlags">268</int>
<string key="NSFrame">{{9, 49}, {384, 26}}</string>
<reference key="NSSuperview" ref="439893737"/>
- <reference key="NSWindow"/>
<reference key="NSNextKeyView" ref="840108087"/>
<string key="NSReuseIdentifierKey">_NS:3905</string>
<bool key="NSEnabled">YES</bool>
@@ -472,7 +466,6 @@
<int key="NSvFlags">268</int>
<string key="NSFrame">{{9, 9}, {384, 25}}</string>
<reference key="NSSuperview" ref="439893737"/>
- <reference key="NSWindow"/>
<reference key="NSNextKeyView"/>
<string key="NSReuseIdentifierKey">_NS:3905</string>
<bool key="NSEnabled">YES</bool>
@@ -495,10 +488,9 @@
</array>
<string key="NSFrameSize">{400, 380}</string>
<reference key="NSSuperview"/>
- <reference key="NSWindow"/>
<reference key="NSNextKeyView" ref="379503995"/>
</object>
- <string key="NSScreenRect">{{0, 0}, {1440, 878}}</string>
+ <string key="NSScreenRect">{{0, 0}, {2560, 1440}}</string>
<string key="NSMaxSize">{10000000000000, 10000000000000}</string>
<bool key="NSWindowIsRestorable">YES</bool>
</object>
@@ -590,14 +582,6 @@
</object>
<object class="IBConnectionRecord">
<object class="IBOutletConnection" key="connection">
- <string key="label">window</string>
- <reference key="source" ref="976324537"/>
- <reference key="destination" ref="972006081"/>
- </object>
- <int key="connectionID">532</int>
- </object>
- <object class="IBConnectionRecord">
- <object class="IBOutletConnection" key="connection">
<string key="label">currentTimeLabel</string>
<reference key="source" ref="976324537"/>
<reference key="destination" ref="753304525"/>
@@ -676,6 +660,14 @@
</object>
<int key="connectionID">611</int>
</object>
+ <object class="IBConnectionRecord">
+ <object class="IBOutletConnection" key="connection">
+ <string key="label">window</string>
+ <reference key="source" ref="976324537"/>
+ <reference key="destination" ref="972006081"/>
+ </object>
+ <int key="connectionID">612</int>
+ </object>
</array>
<object class="IBMutableOrderedSet" key="objectRecords">
<array key="orderedObjects">
@@ -1061,83 +1053,9 @@
<nil key="activeLocalization"/>
<dictionary class="NSMutableDictionary" key="localizations"/>
<nil key="sourceID"/>
- <int key="maxID">611</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>
- <dictionary class="NSMutableDictionary" key="actions">
- <string key="currentTimeBarSet:">id</string>
- <string key="endSliderSet:">id</string>
- <string key="openFile:">id</string>
- <string key="playButtonClick:">id</string>
- <string key="startSliderSet:">id</string>
- </dictionary>
- <dictionary class="NSMutableDictionary" key="actionInfosByName">
- <object class="IBActionInfo" key="currentTimeBarSet:">
- <string key="name">currentTimeBarSet:</string>
- <string key="candidateClassName">id</string>
- </object>
- <object class="IBActionInfo" key="endSliderSet:">
- <string key="name">endSliderSet:</string>
- <string key="candidateClassName">id</string>
- </object>
- <object class="IBActionInfo" key="openFile:">
- <string key="name">openFile:</string>
- <string key="candidateClassName">id</string>
- </object>
- <object class="IBActionInfo" key="playButtonClick:">
- <string key="name">playButtonClick:</string>
- <string key="candidateClassName">id</string>
- </object>
- <object class="IBActionInfo" key="startSliderSet:">
- <string key="name">startSliderSet:</string>
- <string key="candidateClassName">id</string>
- </object>
- </dictionary>
- <dictionary class="NSMutableDictionary" key="outlets">
- <string key="currentTimeBar">NSLevelIndicator</string>
- <string key="currentTimeLabel">NSTextField</string>
- <string key="endSlider">NSSlider</string>
- <string key="playButton">NSButton</string>
- <string key="startSlider">NSSlider</string>
- <string key="window">NSWindow</string>
- </dictionary>
- <dictionary class="NSMutableDictionary" key="toOneOutletInfosByName">
- <object class="IBToOneOutletInfo" key="currentTimeBar">
- <string key="name">currentTimeBar</string>
- <string key="candidateClassName">NSLevelIndicator</string>
- </object>
- <object class="IBToOneOutletInfo" key="currentTimeLabel">
- <string key="name">currentTimeLabel</string>
- <string key="candidateClassName">NSTextField</string>
- </object>
- <object class="IBToOneOutletInfo" key="endSlider">
- <string key="name">endSlider</string>
- <string key="candidateClassName">NSSlider</string>
- </object>
- <object class="IBToOneOutletInfo" key="playButton">
- <string key="name">playButton</string>
- <string key="candidateClassName">NSButton</string>
- </object>
- <object class="IBToOneOutletInfo" key="startSlider">
- <string key="name">startSlider</string>
- <string key="candidateClassName">NSSlider</string>
- </object>
- <object class="IBToOneOutletInfo" key="window">
- <string key="name">window</string>
- <string key="candidateClassName">NSWindow</string>
- </object>
- </dictionary>
- <object class="IBClassDescriptionSource" key="sourceIdentifier">
- <string key="majorKey">IBProjectSource</string>
- <string key="minorKey">./Classes/AppDelegate.h</string>
- </object>
- </object>
- </array>
+ <int key="maxID">612</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.