Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Manually updating INAppStoreWindow.

  • Loading branch information...
commit 8c6da3e924736d98ea1676538d303082017c52b2 1 parent c9b72fc
@bryanveloso bryanveloso authored
View
2  Podfile.lock
@@ -2,4 +2,4 @@ PODS:
- INAppStoreWindow (1.0)
DEPENDENCIES:
- - INAppStoreWindow (~> 1.0)
+ - INAppStoreWindow (from `https://github.com/indragiek/INAppStoreWindow.git')
View
21 Pods/INAppStoreWindow/INAppStoreWindow.h
@@ -16,7 +16,6 @@
//
#import <Foundation/Foundation.h>
-#import <QuartzCore/QuartzCore.h>
#if __has_feature(objc_arc)
#define INAppStoreWindowCopy nonatomic, strong
@@ -40,9 +39,27 @@
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;
-@end
+@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
331 Pods/INAppStoreWindow/INAppStoreWindow.m
@@ -18,6 +18,7 @@
#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
@@ -26,26 +27,46 @@
to change at any time
----------------------------------------- **/
-#define COLOR_MAIN_START [NSColor colorWithDeviceWhite:0.659 alpha:1.0]
-#define COLOR_MAIN_END [NSColor colorWithDeviceWhite:0.812 alpha:1.0]
-#define COLOR_MAIN_BOTTOM [NSColor colorWithDeviceWhite:0.318 alpha:1.0]
+#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 COLOR_NOTMAIN_START [NSColor colorWithDeviceWhite:0.851 alpha:1.0]
-#define COLOR_NOTMAIN_END [NSColor colorWithDeviceWhite:0.929 alpha:1.0]
-#define COLOR_NOTMAIN_BOTTOM [NSColor colorWithDeviceWhite:0.600 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 COLOR_MAIN_START_L [NSColor colorWithDeviceWhite:0.66 alpha:1.0]
-#define COLOR_MAIN_END_L [NSColor colorWithDeviceWhite:0.9 alpha:1.0]
-#define COLOR_MAIN_BOTTOM_L [NSColor colorWithDeviceWhite:0.408 alpha:1.0]
+#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 COLOR_NOTMAIN_START_L [NSColor colorWithDeviceWhite:0.878 alpha:1.0]
-#define COLOR_NOTMAIN_END_L [NSColor colorWithDeviceWhite:0.976 alpha:1.0]
-#define COLOR_NOTMAIN_BOTTOM_L [NSColor colorWithDeviceWhite:0.655 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 **/
-#define CORNER_CLIP_RADIUS 4.0
+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;
@@ -54,8 +75,11 @@ - (void)_createTitlebarView;
- (void)_setupTrafficLightsTrackingArea;
- (void)_recalculateFrameForTitleBarView;
- (void)_layoutTrafficLightsAndContent;
-- (float)_minimumTitlebarHeight;
+- (CGFloat)_minimumTitlebarHeight;
- (void)_displayWindowAndTitlebar;
+- (void)_hideTitleBarView:(BOOL)hidden;
+- (CGFloat)_defaultTrafficLightLeftMargin;
+- (CGFloat)_trafficLightSeparation;
@end
@implementation INTitlebarView
@@ -68,50 +92,46 @@ - (void)drawRect:(NSRect)dirtyRect
NSColor *startColor = nil;
NSColor *endColor = nil;
if (IN_RUNNING_LION) {
- startColor = drawsAsMainWindow ? COLOR_MAIN_START_L : COLOR_NOTMAIN_START_L;
- endColor = drawsAsMainWindow ? COLOR_MAIN_END_L : COLOR_NOTMAIN_END_L;
+ 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 ? COLOR_MAIN_START : COLOR_NOTMAIN_START;
- endColor = drawsAsMainWindow ? COLOR_MAIN_END : COLOR_NOTMAIN_END;
+ startColor = drawsAsMainWindow ? IN_COLOR_MAIN_START : IN_COLOR_NOTMAIN_START;
+ endColor = drawsAsMainWindow ? IN_COLOR_MAIN_END : IN_COLOR_NOTMAIN_END;
}
- [NSGraphicsContext saveGraphicsState];
- [[self clippingPathWithRect:drawingRect cornerRadius:CORNER_CLIP_RADIUS] addClip];
+ [[self clippingPathWithRect:drawingRect cornerRadius:INCornerClipRadius] addClip];
NSGradient *gradient = [[NSGradient alloc] initWithStartingColor:startColor endingColor:endColor];
[gradient drawInRect:drawingRect angle:90];
- #if !__has_feature(objc_arc)
+#if !__has_feature(objc_arc)
[gradient release];
- #endif
+#endif
if (IN_RUNNING_LION && drawsAsMainWindow) {
- static CIImage *noisePattern = nil;
- if (!noisePattern) {
- CIFilter *randomGenerator = [CIFilter filterWithName:@"CIColorMonochrome"];
- [randomGenerator setValue:[[CIFilter filterWithName:@"CIRandomGenerator"] valueForKey:@"outputImage"]
- forKey:@"inputImage"];
- [randomGenerator setDefaults];
- #if __has_feature(objc_arc)
- noisePattern = [randomGenerator valueForKey:@"outputImage"];
- #else
- noisePattern = [[randomGenerator valueForKey:@"outputImage"] retain];
- #endif
- }
- [noisePattern drawAtPoint:NSZeroPoint fromRect:self.bounds operation:NSCompositePlusLighter fraction:0.04];
+ 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];
}
- [NSGraphicsContext restoreGraphicsState];
- NSColor *bottomColor = nil;
- if (IN_RUNNING_LION) {
- bottomColor = drawsAsMainWindow ? COLOR_MAIN_BOTTOM_L : COLOR_NOTMAIN_BOTTOM_L;
- } else {
- bottomColor = drawsAsMainWindow ? COLOR_MAIN_BOTTOM : 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];
+ 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];
+ }
}
}
@@ -133,7 +153,8 @@ - (NSBezierPath*)clippingPathWithRect:(NSRect)aRect cornerRadius:(CGFloat)radius
return path;
}
-- (void)mouseUp:(NSEvent *)theEvent {
+- (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";
@@ -149,9 +170,10 @@ - (void)mouseUp:(NSEvent *)theEvent {
@end
@implementation INAppStoreWindow
-
@synthesize windowMenuTitle = _windowMenuTitle;
-
+@synthesize centerFullScreenButton = _centerFullScreenButton;
+@synthesize centerTrafficLightButtons = _centerTrafficLightButtons;
+@synthesize hideTitleBarInFullScreen = _hideTitleBarInFullScreen;
#pragma mark -
#pragma mark Initialization
@@ -177,11 +199,11 @@ - (id)initWithContentRect:(NSRect)contentRect styleMask:(NSUInteger)aStyle backi
- (void)dealloc
{
[[NSNotificationCenter defaultCenter] removeObserver:self];
- #if !__has_feature(objc_arc)
+#if !__has_feature(objc_arc)
[_titleBarView release];
[_windowMenuTitle release];
[super dealloc];
- #endif
+#endif
}
#pragma mark -
@@ -247,15 +269,14 @@ - (void)setTitleBarView:(NSView *)newTitleBarView
{
if ((_titleBarView != newTitleBarView) && newTitleBarView) {
[_titleBarView removeFromSuperview];
- #if __has_feature(objc_arc)
+#if __has_feature(objc_arc)
_titleBarView = newTitleBarView;
- #else
+#else
[_titleBarView release];
_titleBarView = [newTitleBarView retain];
- #endif
+#endif
// Configure the view properties and add it as a subview of the theme frame
- NSView *contentView = [self contentView];
- NSView *themeFrame = [contentView superview];
+ NSView *themeFrame = [[self contentView] superview];
NSView *firstSubview = [[themeFrame subviews] objectAtIndex:0];
[_titleBarView setAutoresizingMask:(NSViewMinYMargin | NSViewWidthSizable)];
[self _recalculateFrameForTitleBarView];
@@ -265,18 +286,15 @@ - (void)setTitleBarView:(NSView *)newTitleBarView
}
}
-- (NSView*)titleBarView
+- (NSView *)titleBarView
{
return _titleBarView;
}
-- (void)setTitleBarHeight:(CGFloat)newTitleBarHeight
+- (void)setTitleBarHeight:(CGFloat)newTitleBarHeight
{
- float minTitleHeight = [self _minimumTitlebarHeight];
- if (newTitleBarHeight < minTitleHeight) {
- newTitleBarHeight = minTitleHeight;
- }
if (_titleBarHeight != newTitleBarHeight) {
+ _cachedTitleBarHeight = newTitleBarHeight;
_titleBarHeight = newTitleBarHeight;
[self _recalculateFrameForTitleBarView];
[self _layoutTrafficLightsAndContent];
@@ -289,14 +307,77 @@ - (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
{
- // Calculate titlebar height
+ _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
@@ -309,11 +390,13 @@ - (void)_doInitialWindowSetup
[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 __MAC_OS_X_VERSION_MAX_ALLOWED >= 1070
+#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
+#endif
[self _createTitlebarView];
[self _layoutTrafficLightsAndContent];
[self _setupTrafficLightsTrackingArea];
@@ -321,7 +404,6 @@ - (void)_doInitialWindowSetup
- (void)_layoutTrafficLightsAndContent
{
- NSView *contentView = [self contentView];
NSButton *close = [self standardWindowButton:NSWindowCloseButton];
NSButton *minimize = [self standardWindowButton:NSWindowMiniaturizeButton];
NSButton *zoom = [self standardWindowButton:NSWindowZoomButton];
@@ -330,31 +412,92 @@ - (void)_layoutTrafficLightsAndContent
NSRect closeFrame = [close frame];
NSRect minimizeFrame = [minimize frame];
NSRect zoomFrame = [zoom frame];
- float buttonOrigin = floor(NSMidY([_titleBarView frame]) - (closeFrame.size.height / 2.0));
+ 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];
- float titleHeight = windowFrame.size.height - newFrame.size.height;
- float extraHeight = _titleBarHeight - titleHeight;
+ 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)
+#if __has_feature(objc_arc)
self.titleBarView = [[INTitlebarView alloc] initWithFrame:NSZeroRect];
- #else
+#else
self.titleBarView = [[[INTitlebarView alloc] initWithFrame:NSZeroRect] autorelease];
- #endif
+#endif
+}
+
+- (void)_hideTitleBarView:(BOOL)hidden
+{
+ [self.titleBarView setHidden:hidden];
}
// Solution for tracking area issue thanks to @Perspx (Alex Rozanski) <https://gist.github.com/972958>
@@ -366,27 +509,47 @@ - (void)_setupTrafficLightsTrackingArea
- (void)_recalculateFrameForTitleBarView
{
- NSView *contentView = [self contentView];
- NSView *themeFrame = [contentView superview];
+ NSView *themeFrame = [[self contentView] superview];
NSRect themeFrameRect = [themeFrame frame];
- NSRect titleFrame = NSMakeRect(0.0, NSMaxY(themeFrameRect) - _titleBarHeight, themeFrameRect.size.width, _titleBarHeight);
+ NSRect titleFrame = NSMakeRect(0.0, NSMaxY(themeFrameRect) - _titleBarHeight, NSWidth(themeFrameRect), _titleBarHeight);
[_titleBarView setFrame:titleFrame];
}
-- (float)_minimumTitlebarHeight
+- (CGFloat)_minimumTitlebarHeight
{
- static float minTitleHeight = 0.0;
- if (!minTitleHeight) {
+ static CGFloat minTitleHeight = 0.0;
+ if ( !minTitleHeight ) {
NSRect frameRect = [self frame];
NSRect contentRect = [self contentRectForFrameRect:frameRect];
- minTitleHeight = (frameRect.size.height - contentRect.size.height);
+ 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
+@end
View
586 Pods/Pods.xcodeproj/project.pbxproj
@@ -10,104 +10,15 @@
<string>46</string>
<key>objects</key>
<dict>
- <key>126079538C1A46F99B728285</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>26DF5C3FCC6149179639345E</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>2EED6CEEDC4B47A7B8408AF9</key>
- <dict>
- <key>children</key>
- <array>
- <string>26DF5C3FCC6149179639345E</string>
- </array>
- <key>isa</key>
- <string>PBXGroup</string>
- <key>name</key>
- <string>Frameworks</string>
- <key>sourceTree</key>
- <string>&lt;group&gt;</string>
- </dict>
- <key>30111147D61A4E25B21DE361</key>
- <dict>
- <key>buildConfigurations</key>
- <array>
- <string>849BE620805741B3AD0E5A5F</string>
- <string>B6B22B60331245B48A88BF60</string>
- </array>
- <key>isa</key>
- <string>XCConfigurationList</string>
- </dict>
- <key>30F4EBD0213C4551855CEC26</key>
- <dict>
- <key>buildConfigurations</key>
- <array>
- <string>FDA0E8694B1D4AA0B6D1FC28</string>
- <string>CB9953254CA548A3BACBB350</string>
- </array>
- <key>defaultConfigurationIsVisible</key>
- <string>0</string>
- <key>defaultConfigurationName</key>
- <string>Release</string>
- <key>isa</key>
- <string>XCConfigurationList</string>
- </dict>
- <key>37AF10793B9A4D798EEDB99C</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>3C6441F0FC4349828854558C</key>
- <dict>
- <key>children</key>
- <array>
- <string>B28E62AF1B3B462B85EA426F</string>
- </array>
- <key>isa</key>
- <string>PBXGroup</string>
- <key>name</key>
- <string>Pods</string>
- <key>sourceTree</key>
- <string>&lt;group&gt;</string>
- </dict>
- <key>43D29887DF3743DB914AEEFC</key>
+ <key>11DE682F955D412D988093C0</key>
<dict>
<key>buildConfigurationList</key>
- <string>30111147D61A4E25B21DE361</string>
+ <string>BD88779D818D495482703B16</string>
<key>buildPhases</key>
<array>
- <string>68F2BA30CD844A8A8A99117A</string>
- <string>B398C6CD17B64944908DEA3C</string>
- <string>7AD01E2C8A2F47C2BFB983AE</string>
+ <string>881B477B0E9F49008E693EA4</string>
+ <string>8DCDE439A15346D2B190ACA4</string>
+ <string>7D8EB0A28B4B4D2EAA1F3469</string>
</array>
<key>buildRules</key>
<array/>
@@ -120,90 +31,127 @@
<key>productName</key>
<string>Pods</string>
<key>productReference</key>
- <string>37AF10793B9A4D798EEDB99C</string>
+ <string>EE9057095B1042E38A98CC46</string>
<key>productType</key>
<string>com.apple.product-type.library.static</string>
</dict>
- <key>58F0DC4021B1451487D10864</key>
+ <key>2E0FFA6400EC446D85E9A44D</key>
<dict>
<key>fileRef</key>
- <string>26DF5C3FCC6149179639345E</string>
+ <string>E9A830F4061749D5AE0D4D8C</string>
<key>isa</key>
<string>PBXBuildFile</string>
</dict>
- <key>649BB8530A29419A9AAC90B8</key>
+ <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>lastKnownFileType</key>
- <string>text.xcconfig</string>
<key>name</key>
- <string>Pods.xcconfig</string>
+ <string>INAppStoreWindow.m</string>
<key>path</key>
- <string>Pods.xcconfig</string>
+ <string>INAppStoreWindow/INAppStoreWindow.m</string>
<key>sourceTree</key>
<string>SOURCE_ROOT</string>
</dict>
- <key>68F2BA30CD844A8A8A99117A</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>6D34F6DE169C402E8147D548</key>
- <dict>
- <key>fileRef</key>
- <string>DB84CB64E44045DB9B933F27</string>
- <key>isa</key>
- <string>PBXBuildFile</string>
- <key>settings</key>
- <dict>
- <key>COMPILER_FLAGS</key>
- <string> -fobjc-arc</string>
- </dict>
- </dict>
- <key>7AD01E2C8A2F47C2BFB983AE</key>
+ <key>4073BA7316404543951394C1</key>
<dict>
- <key>buildActionMask</key>
- <string>2147483647</string>
- <key>files</key>
- <array>
- <string>58F0DC4021B1451487D10864</string>
- </array>
- <key>isa</key>
- <string>PBXFrameworksBuildPhase</string>
- <key>runOnlyForDeploymentPostprocessing</key>
- <string>0</string>
- </dict>
- <key>849BE620805741B3AD0E5A5F</key>
- <dict>
- <key>baseConfigurationReference</key>
- <string>649BB8530A29419A9AAC90B8</string>
<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_PREFIX_HEADER</key>
- <string>Pods-prefix.pch</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>PODS_ROOT</key>
- <string>$(SRCROOT)</string>
<key>PRODUCT_NAME</key>
<string>$(TARGET_NAME)</string>
+ <key>SDKROOT</key>
+ <string>macosx</string>
<key>SKIP_INSTALL</key>
<string>YES</string>
</dict>
@@ -212,86 +160,75 @@
<key>name</key>
<string>Debug</string>
</dict>
- <key>9654DDD7CFB94C60B350AAB3</key>
+ <key>65B612BA1E59400C9A729D5C</key>
<dict>
<key>children</key>
<array>
- <string>E275A636094B4E5B98E9E0E9</string>
+ <string>F52BF343D12E46BB9520D746</string>
+ <string>3DF7977CAD8C4325964D3E01</string>
</array>
<key>isa</key>
<string>PBXGroup</string>
<key>name</key>
- <string>Targets Support Files</string>
+ <string>INAppStoreWindow</string>
<key>sourceTree</key>
<string>&lt;group&gt;</string>
</dict>
- <key>B01A6E628BC84EC5856D9388</key>
+ <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>PBXFileReference</string>
- <key>name</key>
- <string>Pods-prefix.pch</string>
- <key>path</key>
- <string>Pods-prefix.pch</string>
+ <string>PBXGroup</string>
<key>sourceTree</key>
- <string>SOURCE_ROOT</string>
+ <string>&lt;group&gt;</string>
</dict>
- <key>B28E62AF1B3B462B85EA426F</key>
+ <key>6E5D0AB0A52C430D930F8FF8</key>
<dict>
<key>children</key>
<array>
- <string>126079538C1A46F99B728285</string>
- <string>DB84CB64E44045DB9B933F27</string>
+ <string>D97667CE7430425882A08E66</string>
</array>
<key>isa</key>
<string>PBXGroup</string>
<key>name</key>
- <string>INAppStoreWindow</string>
+ <string>Targets Support Files</string>
<key>sourceTree</key>
<string>&lt;group&gt;</string>
</dict>
- <key>B398C6CD17B64944908DEA3C</key>
+ <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>6D34F6DE169C402E8147D548</string>
+ <string>2E0FFA6400EC446D85E9A44D</string>
</array>
<key>isa</key>
- <string>PBXSourcesBuildPhase</string>
+ <string>PBXFrameworksBuildPhase</string>
<key>runOnlyForDeploymentPostprocessing</key>
<string>0</string>
</dict>
- <key>B6B22B60331245B48A88BF60</key>
- <dict>
- <key>baseConfigurationReference</key>
- <string>649BB8530A29419A9AAC90B8</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>B8237D836CF7450FB75F4377</key>
+ <key>7E38C04C1B3D4D718A2D4363</key>
<dict>
<key>attributes</key>
<dict>
@@ -299,7 +236,7 @@
<string>0420</string>
</dict>
<key>buildConfigurationList</key>
- <string>30F4EBD0213C4551855CEC26</string>
+ <string>7600EA0ABA0049348185D104</string>
<key>compatibilityVersion</key>
<string>Xcode 3.2</string>
<key>developmentRegion</key>
@@ -313,122 +250,140 @@
<string>en</string>
</array>
<key>mainGroup</key>
- <string>BF64A53FEC3746ECA5B1EA2F</string>
+ <string>66DC10FC32D54AB1BF2543C2</string>
<key>productRefGroup</key>
- <string>BFA65FF2A578435D96579532</string>
+ <string>CE0C575C5F054EEF8B943EDE</string>
<key>projectDirPath</key>
<string></string>
<key>projectRoot</key>
<string></string>
<key>targets</key>
<array>
- <string>43D29887DF3743DB914AEEFC</string>
+ <string>11DE682F955D412D988093C0</string>
</array>
</dict>
- <key>BF64A53FEC3746ECA5B1EA2F</key>
+ <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>3C6441F0FC4349828854558C</string>
- <string>2EED6CEEDC4B47A7B8408AF9</string>
- <string>BFA65FF2A578435D96579532</string>
- <string>9654DDD7CFB94C60B350AAB3</string>
+ <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>BFA65FF2A578435D96579532</key>
+ <key>8DCDE439A15346D2B190ACA4</key>
<dict>
- <key>children</key>
+ <key>buildActionMask</key>
+ <string>2147483647</string>
+ <key>files</key>
<array>
- <string>37AF10793B9A4D798EEDB99C</string>
+ <string>A5837C9CB69F4609A6E97975</string>
</array>
<key>isa</key>
- <string>PBXGroup</string>
- <key>name</key>
- <string>Products</string>
- <key>sourceTree</key>
- <string>&lt;group&gt;</string>
+ <string>PBXSourcesBuildPhase</string>
+ <key>runOnlyForDeploymentPostprocessing</key>
+ <string>0</string>
</dict>
- <key>CB9953254CA548A3BACBB350</key>
+ <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>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_PREFIX_HEADER</key>
+ <string>Pods-prefix.pch</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>PODS_ROOT</key>
+ <string>$(SRCROOT)</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>
+ <string>Debug</string>
</dict>
- <key>D8A1FC8C8BAD4F7898294F83</key>
+ <key>B629EF66334841E2A03BB852</key>
<dict>
<key>isa</key>
<string>PBXFileReference</string>
+ <key>lastKnownFileType</key>
+ <string>text.xcconfig</string>
<key>name</key>
- <string>Pods-resources.sh</string>
+ <string>Pods.xcconfig</string>
<key>path</key>
- <string>Pods-resources.sh</string>
+ <string>Pods.xcconfig</string>
<key>sourceTree</key>
<string>SOURCE_ROOT</string>
</dict>
- <key>DB84CB64E44045DB9B933F27</key>
+ <key>BD88779D818D495482703B16</key>
<dict>
+ <key>buildConfigurations</key>
+ <array>
+ <string>B37D26600D1241A189B6C76E</string>
+ <string>EB7DEE26770746129E81CF6E</string>
+ </array>
<key>isa</key>
- <string>PBXFileReference</string>
+ <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>INAppStoreWindow.m</string>
- <key>path</key>
- <string>INAppStoreWindow/INAppStoreWindow.m</string>
+ <string>Products</string>
<key>sourceTree</key>
- <string>SOURCE_ROOT</string>
+ <string>&lt;group&gt;</string>
</dict>
- <key>E275A636094B4E5B98E9E0E9</key>
+ <key>CF75F52439034C59A24D6062</key>
<dict>
<key>children</key>
<array>
- <string>D8A1FC8C8BAD4F7898294F83</string>
- <string>B01A6E628BC84EC5856D9388</string>
- <string>649BB8530A29419A9AAC90B8</string>
+ <string>65B612BA1E59400C9A729D5C</string>
</array>
<key>isa</key>
<string>PBXGroup</string>
@@ -437,67 +392,112 @@
<key>sourceTree</key>
<string>&lt;group&gt;</string>
</dict>
- <key>FDA0E8694B1D4AA0B6D1FC28</key>
+ <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>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_PREFIX_HEADER</key>
+ <string>Pods-prefix.pch</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>PODS_ROOT</key>
+ <string>$(SRCROOT)</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>
+ <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>B8237D836CF7450FB75F4377</string>
+ <string>7E38C04C1B3D4D718A2D4363</string>
</dict>
</plist>
Please sign in to comment.
Something went wrong with that request. Please try again.