зеркало из https://github.com/xamarin/ios-samples.git
Walkthrough: Binding an Objective-C Library
Moved samples from document to here.
This commit is contained in:
Родитель
980896de25
Коммит
f751ba6620
|
@ -0,0 +1,21 @@
|
|||
# Mac OS X
|
||||
*.DS_Store
|
||||
|
||||
# Xcode
|
||||
*.pbxuser
|
||||
*.mode1v3
|
||||
*.mode2v3
|
||||
*.perspectivev3
|
||||
*.xcuserstate
|
||||
*.xccheckout
|
||||
project.xcworkspace/
|
||||
xcuserdata/
|
||||
|
||||
# Generated files
|
||||
*.[oa]
|
||||
|
||||
# Hg
|
||||
.hg*
|
||||
|
||||
# Backup files
|
||||
*~.nib
|
10
InfColorPicker/InfColorPicker-master/InfColorPicker.xcworkspace/contents.xcworkspacedata
сгенерированный
Executable file
10
InfColorPicker/InfColorPicker-master/InfColorPicker.xcworkspace/contents.xcworkspacedata
сгенерированный
Executable file
|
@ -0,0 +1,10 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<Workspace
|
||||
version = "1.0">
|
||||
<FileRef
|
||||
location = "group:PickerSamplePhone/PickerSamplePhone.xcodeproj">
|
||||
</FileRef>
|
||||
<FileRef
|
||||
location = "group:PickerSamplePad/PickerSamplePad.xcodeproj">
|
||||
</FileRef>
|
||||
</Workspace>
|
|
@ -0,0 +1,29 @@
|
|||
//==============================================================================
|
||||
//
|
||||
// InfColorBarPicker.h
|
||||
// InfColorPicker
|
||||
//
|
||||
// Created by Troy Gaul on 8/9/10.
|
||||
//
|
||||
// Copyright (c) 2011-2013 InfinitApps LLC: http://infinitapps.com
|
||||
// Some rights reserved: http://opensource.org/licenses/MIT
|
||||
//
|
||||
//==============================================================================
|
||||
|
||||
#import <UIKit/UIKit.h>
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
@interface InfColorBarView : UIView
|
||||
|
||||
@end
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
@interface InfColorBarPicker : UIControl
|
||||
|
||||
@property (nonatomic) float value;
|
||||
|
||||
@end
|
||||
|
||||
//------------------------------------------------------------------------------
|
|
@ -0,0 +1,180 @@
|
|||
//==============================================================================
|
||||
//
|
||||
// InfColorBarPicker.m
|
||||
// InfColorPicker
|
||||
//
|
||||
// Created by Troy Gaul on 8/9/10.
|
||||
//
|
||||
// Copyright (c) 2011-2013 InfinitApps LLC: http://infinitapps.com
|
||||
// Some rights reserved: http://opensource.org/licenses/MIT
|
||||
//
|
||||
//==============================================================================
|
||||
|
||||
#import "InfColorBarPicker.h"
|
||||
|
||||
#import "InfColorIndicatorView.h"
|
||||
#import "InfHSBSupport.h"
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
#if !__has_feature(objc_arc)
|
||||
#error This file must be compiled with ARC enabled (-fobjc-arc).
|
||||
#endif
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
#define kContentInsetX 20
|
||||
|
||||
//==============================================================================
|
||||
|
||||
@implementation InfColorBarView
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
static CGImageRef createContentImage()
|
||||
{
|
||||
float hsv[] = { 0.0f, 1.0f, 1.0f };
|
||||
return createHSVBarContentImage(InfComponentIndexHue, hsv);
|
||||
}
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
- (void) drawRect: (CGRect) rect
|
||||
{
|
||||
CGImageRef image = createContentImage();
|
||||
|
||||
if (image) {
|
||||
CGContextRef context = UIGraphicsGetCurrentContext();
|
||||
|
||||
CGContextDrawImage(context, [self bounds], image);
|
||||
|
||||
CGImageRelease(image);
|
||||
}
|
||||
}
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
@end
|
||||
|
||||
//==============================================================================
|
||||
|
||||
@implementation InfColorBarPicker {
|
||||
InfColorIndicatorView* indicator;
|
||||
}
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
#pragma mark Drawing
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
- (void) layoutSubviews
|
||||
{
|
||||
if (indicator == nil) {
|
||||
CGFloat kIndicatorSize = 24.0f;
|
||||
indicator = [[InfColorIndicatorView alloc] initWithFrame: CGRectMake(0, 0, kIndicatorSize, kIndicatorSize)];
|
||||
[self addSubview: indicator];
|
||||
}
|
||||
|
||||
indicator.color = [UIColor colorWithHue: self.value
|
||||
saturation: 1.0f
|
||||
brightness: 1.0f
|
||||
alpha: 1.0f];
|
||||
|
||||
CGFloat indicatorLoc = kContentInsetX + (self.value * (self.bounds.size.width - 2 * kContentInsetX));
|
||||
indicator.center = CGPointMake(indicatorLoc, CGRectGetMidY(self.bounds));
|
||||
}
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
#pragma mark Properties
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
- (void) setValue: (float) newValue
|
||||
{
|
||||
if (newValue != _value) {
|
||||
_value = newValue;
|
||||
|
||||
[self sendActionsForControlEvents: UIControlEventValueChanged];
|
||||
[self setNeedsLayout];
|
||||
}
|
||||
}
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
#pragma mark Tracking
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
- (void) trackIndicatorWithTouch: (UITouch*) touch
|
||||
{
|
||||
float percent = ([touch locationInView: self].x - kContentInsetX)
|
||||
/ (self.bounds.size.width - 2 * kContentInsetX);
|
||||
|
||||
self.value = pin(0.0f, percent, 1.0f);
|
||||
}
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
- (BOOL) beginTrackingWithTouch: (UITouch*) touch
|
||||
withEvent: (UIEvent*) event
|
||||
{
|
||||
[self trackIndicatorWithTouch: touch];
|
||||
|
||||
return YES;
|
||||
}
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
- (BOOL) continueTrackingWithTouch: (UITouch*) touch
|
||||
withEvent: (UIEvent*) event
|
||||
{
|
||||
[self trackIndicatorWithTouch: touch];
|
||||
|
||||
return YES;
|
||||
}
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
#pragma mark Accessibility
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
- (UIAccessibilityTraits) accessibilityTraits
|
||||
{
|
||||
UIAccessibilityTraits t = super.accessibilityTraits;
|
||||
|
||||
t |= UIAccessibilityTraitAdjustable;
|
||||
|
||||
return t;
|
||||
}
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
- (void) accessibilityIncrement
|
||||
{
|
||||
float newValue = self.value + 0.05;
|
||||
|
||||
if (newValue > 1.0)
|
||||
newValue -= 1.0;
|
||||
|
||||
self.value = newValue;
|
||||
}
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
- (void) accessibilityDecrement
|
||||
{
|
||||
float newValue = self.value - 0.05;
|
||||
|
||||
if (newValue < 0)
|
||||
newValue += 1.0;
|
||||
|
||||
self.value = newValue;
|
||||
}
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
- (NSString*) accessibilityValue
|
||||
{
|
||||
return [NSString stringWithFormat: @"%d degrees hue", (int) (self.value * 360.0)];
|
||||
}
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
@end
|
||||
|
||||
//==============================================================================
|
|
@ -0,0 +1,23 @@
|
|||
//==============================================================================
|
||||
//
|
||||
// InfColorIndicatorView.h
|
||||
// InfColorPicker
|
||||
//
|
||||
// Created by Troy Gaul on 8/10/10.
|
||||
//
|
||||
// Copyright (c) 2011-2013 InfinitApps LLC: http://infinitapps.com
|
||||
// Some rights reserved: http://opensource.org/licenses/MIT
|
||||
//
|
||||
//==============================================================================
|
||||
|
||||
#import <UIKit/UIKit.h>
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
@interface InfColorIndicatorView : UIView
|
||||
|
||||
@property (nonatomic) UIColor* color;
|
||||
|
||||
@end
|
||||
|
||||
//------------------------------------------------------------------------------
|
|
@ -0,0 +1,84 @@
|
|||
//==============================================================================
|
||||
//
|
||||
// InfColorIndicatorView.m
|
||||
// InfColorPicker
|
||||
//
|
||||
// Created by Troy Gaul on 8/10/10.
|
||||
//
|
||||
// Copyright (c) 2011-2013 InfinitApps LLC: http://infinitapps.com
|
||||
// Some rights reserved: http://opensource.org/licenses/MIT
|
||||
//
|
||||
//==============================================================================
|
||||
|
||||
#import "InfColorIndicatorView.h"
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
#if !__has_feature(objc_arc)
|
||||
#error This file must be compiled with ARC enabled (-fobjc-arc).
|
||||
#endif
|
||||
|
||||
//==============================================================================
|
||||
|
||||
@implementation InfColorIndicatorView
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
- (id) initWithFrame: (CGRect) frame
|
||||
{
|
||||
self = [super initWithFrame: frame];
|
||||
|
||||
if (self) {
|
||||
self.opaque = NO;
|
||||
self.userInteractionEnabled = NO;
|
||||
}
|
||||
|
||||
return self;
|
||||
}
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
- (void) setColor: (UIColor*) newColor
|
||||
{
|
||||
if (![_color isEqual: newColor]) {
|
||||
_color = newColor;
|
||||
|
||||
[self setNeedsDisplay];
|
||||
}
|
||||
}
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
- (void) drawRect: (CGRect) rect
|
||||
{
|
||||
CGContextRef context = UIGraphicsGetCurrentContext();
|
||||
|
||||
CGPoint center = { CGRectGetMidX(self.bounds), CGRectGetMidY(self.bounds) };
|
||||
CGFloat radius = CGRectGetMidX(self.bounds);
|
||||
|
||||
// Fill it:
|
||||
|
||||
CGContextAddArc(context, center.x, center.y, radius - 1.0f, 0.0f, 2.0f * (float) M_PI, YES);
|
||||
[self.color setFill];
|
||||
CGContextFillPath(context);
|
||||
|
||||
// Stroke it (black transucent, inner):
|
||||
|
||||
CGContextAddArc(context, center.x, center.y, radius - 1.0f, 0.0f, 2.0f * (float) M_PI, YES);
|
||||
CGContextSetGrayStrokeColor(context, 0.0f, 0.5f);
|
||||
CGContextSetLineWidth(context, 2.0f);
|
||||
CGContextStrokePath(context);
|
||||
|
||||
// Stroke it (white, outer):
|
||||
|
||||
CGContextAddArc(context, center.x, center.y, radius - 2.0f, 0.0f, 2.0f * (float) M_PI, YES);
|
||||
CGContextSetGrayStrokeColor(context, 1.0f, 1.0f);
|
||||
CGContextSetLineWidth(context, 2.0f);
|
||||
CGContextStrokePath(context);
|
||||
}
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
@end
|
||||
|
||||
//==============================================================================
|
|
@ -0,0 +1,60 @@
|
|||
//==============================================================================
|
||||
//
|
||||
// InfColorPicker.h
|
||||
// InfColorPicker
|
||||
//
|
||||
// Created by Troy Gaul on 7 Aug 2010.
|
||||
//
|
||||
// Copyright (c) 2011-2013 InfinitApps LLC: http://infinitapps.com
|
||||
// Some rights reserved: http://opensource.org/licenses/MIT
|
||||
//
|
||||
//==============================================================================
|
||||
/*
|
||||
|
||||
The InfiniApps Color Picker, known as InfColorPicker, is a view controller
|
||||
for use in iOS applications to allow the selection of a color from RGB space,
|
||||
but using an HSB representation of that color space to make selection of a
|
||||
color easier for a human.
|
||||
|
||||
InfColorPicker is distributed with an MIT license. It supports iPhone OS 3.x
|
||||
as well as iOS 4 and 5.
|
||||
|
||||
Usage
|
||||
-----
|
||||
|
||||
The main component is the `InfColorPickerController` class, which can be
|
||||
instantiated and hosted in a few different ways, such as in a popover view
|
||||
controller for the iPad, pushed onto a navigation controller navigation
|
||||
stack, or presented modally on an iPhone.
|
||||
|
||||
The initial color can be set via the property `sourceColor`, which will be
|
||||
shown alongside the user-selected `resultColor` color, and these can be
|
||||
accessed and changed while the color picker is visible.
|
||||
|
||||
In order to receive the selected color(s) back from the controller, you have
|
||||
to have an object that implements one of the methods in the
|
||||
`InfColorPickerControllerDelegate` protocol.
|
||||
|
||||
Example
|
||||
-------
|
||||
|
||||
- (IBAction) changeBackgroundColor
|
||||
{
|
||||
InfColorPickerController* picker = [InfColorPickerController colorPickerViewController];
|
||||
|
||||
picker.sourceColor = self.view.backgroundColor;
|
||||
picker.delegate = self;
|
||||
|
||||
[picker presentModallyOverViewController: self];
|
||||
}
|
||||
|
||||
- (void) colorPickerControllerDidFinish: (InfColorPickerController*) picker
|
||||
{
|
||||
self.view.backgroundColor = picker.resultColor;
|
||||
|
||||
[self dismissModalViewControllerAnimated: YES];
|
||||
}
|
||||
|
||||
*/
|
||||
|
||||
#import "InfColorPickerController.h"
|
|
@ -0,0 +1,48 @@
|
|||
//==============================================================================
|
||||
//
|
||||
// InfColorPickerController.h
|
||||
// InfColorPicker
|
||||
//
|
||||
// Created by Troy Gaul on 7 Aug 2010.
|
||||
//
|
||||
// Copyright (c) 2011-2013 InfinitApps LLC: http://infinitapps.com
|
||||
// Some rights reserved: http://opensource.org/licenses/MIT
|
||||
//
|
||||
//==============================================================================
|
||||
|
||||
#import <UIKit/UIKit.h>
|
||||
|
||||
@protocol InfColorPickerControllerDelegate;
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
@interface InfColorPickerController : UIViewController
|
||||
|
||||
// Public API:
|
||||
|
||||
+ (InfColorPickerController*) colorPickerViewController;
|
||||
+ (CGSize) idealSizeForViewInPopover;
|
||||
|
||||
- (void) presentModallyOverViewController: (UIViewController*) controller;
|
||||
|
||||
@property (nonatomic) UIColor* sourceColor;
|
||||
@property (nonatomic) UIColor* resultColor;
|
||||
|
||||
@property (weak, nonatomic) id <InfColorPickerControllerDelegate> delegate;
|
||||
|
||||
@end
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
@protocol InfColorPickerControllerDelegate
|
||||
|
||||
@optional
|
||||
|
||||
- (void) colorPickerControllerDidFinish: (InfColorPickerController*) controller;
|
||||
// This is only called when the color picker is presented modally.
|
||||
|
||||
- (void) colorPickerControllerDidChangeColor: (InfColorPickerController*) controller;
|
||||
|
||||
@end
|
||||
|
||||
//------------------------------------------------------------------------------
|
|
@ -0,0 +1,289 @@
|
|||
//==============================================================================
|
||||
//
|
||||
// InfColorPickerController.m
|
||||
// InfColorPicker
|
||||
//
|
||||
// Created by Troy Gaul on 7 Aug 2010.
|
||||
//
|
||||
// Copyright (c) 2011-2013 InfinitApps LLC: http://infinitapps.com
|
||||
// Some rights reserved: http://opensource.org/licenses/MIT
|
||||
//
|
||||
//==============================================================================
|
||||
|
||||
#import "InfColorPickerController.h"
|
||||
|
||||
#import "InfColorBarPicker.h"
|
||||
#import "InfColorSquarePicker.h"
|
||||
#import "InfColorPickerNavigationController.h"
|
||||
#import "InfHSBSupport.h"
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
#if !__has_feature(objc_arc)
|
||||
#error This file must be compiled with ARC enabled (-fobjc-arc).
|
||||
#endif
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
static void HSVFromUIColor(UIColor* color, float* h, float* s, float* v)
|
||||
{
|
||||
CGColorRef colorRef = [color CGColor];
|
||||
|
||||
const CGFloat* components = CGColorGetComponents(colorRef);
|
||||
size_t numComponents = CGColorGetNumberOfComponents(colorRef);
|
||||
|
||||
CGFloat r, g, b;
|
||||
|
||||
if (numComponents < 3) {
|
||||
r = g = b = components[0];
|
||||
}
|
||||
else {
|
||||
r = components[0];
|
||||
g = components[1];
|
||||
b = components[2];
|
||||
}
|
||||
|
||||
RGBToHSV(r, g, b, h, s, v, YES);
|
||||
}
|
||||
|
||||
//==============================================================================
|
||||
|
||||
@interface InfColorPickerController ()
|
||||
|
||||
@property (nonatomic) IBOutlet InfColorBarView* barView;
|
||||
@property (nonatomic) IBOutlet InfColorSquareView* squareView;
|
||||
@property (nonatomic) IBOutlet InfColorBarPicker* barPicker;
|
||||
@property (nonatomic) IBOutlet InfColorSquarePicker* squarePicker;
|
||||
@property (nonatomic) IBOutlet UIView* sourceColorView;
|
||||
@property (nonatomic) IBOutlet UIView* resultColorView;
|
||||
@property (nonatomic) IBOutlet UINavigationController* navController;
|
||||
|
||||
@end
|
||||
|
||||
//==============================================================================
|
||||
|
||||
@implementation InfColorPickerController {
|
||||
float _hue;
|
||||
float _saturation;
|
||||
float _brightness;
|
||||
}
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
#pragma mark Class methods
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
+ (InfColorPickerController*) colorPickerViewController
|
||||
{
|
||||
return [[self alloc] initWithNibName: @"InfColorPickerView" bundle: nil];
|
||||
}
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
+ (CGSize) idealSizeForViewInPopover
|
||||
{
|
||||
return CGSizeMake(256 + (1 + 20) * 2, 420);
|
||||
}
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
#pragma mark Creation
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
- (id) initWithNibName: (NSString*) nibNameOrNil bundle: (NSBundle*) nibBundleOrNil
|
||||
{
|
||||
self = [super initWithNibName: nibNameOrNil bundle: nibBundleOrNil];
|
||||
|
||||
if (self) {
|
||||
self.navigationItem.title = NSLocalizedString(@"Set Color",
|
||||
@"InfColorPicker default nav item title");
|
||||
}
|
||||
|
||||
return self;
|
||||
}
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
- (void) presentModallyOverViewController: (UIViewController*) controller
|
||||
{
|
||||
UINavigationController* nav = [[InfColorPickerNavigationController alloc] initWithRootViewController: self];
|
||||
|
||||
nav.navigationBar.barStyle = UIBarStyleBlackOpaque;
|
||||
|
||||
self.navigationItem.rightBarButtonItem = [[UIBarButtonItem alloc] initWithBarButtonSystemItem: UIBarButtonSystemItemDone
|
||||
target: self
|
||||
action: @selector(done:)];
|
||||
|
||||
[controller presentViewController: nav animated: YES completion: nil];
|
||||
}
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
#pragma mark UIViewController methods
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
- (void) viewDidLoad
|
||||
{
|
||||
[super viewDidLoad];
|
||||
|
||||
self.modalTransitionStyle = UIModalTransitionStyleCoverVertical;
|
||||
|
||||
_barPicker.value = _hue;
|
||||
_squareView.hue = _hue;
|
||||
_squarePicker.hue = _hue;
|
||||
_squarePicker.value = CGPointMake(_saturation, _brightness);
|
||||
|
||||
if (_sourceColor)
|
||||
_sourceColorView.backgroundColor = _sourceColor;
|
||||
|
||||
if (_resultColor)
|
||||
_resultColorView.backgroundColor = _resultColor;
|
||||
}
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
- (BOOL) shouldAutorotateToInterfaceOrientation: (UIInterfaceOrientation) interfaceOrientation
|
||||
{
|
||||
return UIInterfaceOrientationIsPortrait(interfaceOrientation);
|
||||
}
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
- (NSUInteger) supportedInterfaceOrientations
|
||||
{
|
||||
if (UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPad)
|
||||
return UIInterfaceOrientationMaskAll;
|
||||
else
|
||||
return UIInterfaceOrientationMaskPortrait | UIInterfaceOrientationMaskPortraitUpsideDown;
|
||||
}
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
- (UIRectEdge) edgesForExtendedLayout
|
||||
{
|
||||
return UIRectEdgeNone;
|
||||
}
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
#pragma mark IB actions
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
- (IBAction) takeBarValue: (InfColorBarPicker*) sender
|
||||
{
|
||||
_hue = sender.value;
|
||||
|
||||
_squareView.hue = _hue;
|
||||
_squarePicker.hue = _hue;
|
||||
|
||||
[self updateResultColor];
|
||||
}
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
- (IBAction) takeSquareValue: (InfColorSquarePicker*) sender
|
||||
{
|
||||
_saturation = sender.value.x;
|
||||
_brightness = sender.value.y;
|
||||
|
||||
[self updateResultColor];
|
||||
}
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
- (IBAction) takeBackgroundColor: (UIView*) sender
|
||||
{
|
||||
self.resultColor = sender.backgroundColor;
|
||||
}
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
- (IBAction) done: (id) sender
|
||||
{
|
||||
[self.delegate colorPickerControllerDidFinish: self];
|
||||
}
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
#pragma mark Properties
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
- (void) informDelegateDidChangeColor
|
||||
{
|
||||
if (self.delegate && [(id) self.delegate respondsToSelector: @selector(colorPickerControllerDidChangeColor:)])
|
||||
[self.delegate colorPickerControllerDidChangeColor: self];
|
||||
}
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
- (void) updateResultColor
|
||||
{
|
||||
// This is used when code internally causes the update. We do this so that
|
||||
// we don't cause push-back on the HSV values in case there are rounding
|
||||
// differences or anything.
|
||||
|
||||
[self willChangeValueForKey: @"resultColor"];
|
||||
|
||||
_resultColor = [UIColor colorWithHue: _hue
|
||||
saturation: _saturation
|
||||
brightness: _brightness
|
||||
alpha: 1.0f];
|
||||
|
||||
[self didChangeValueForKey: @"resultColor"];
|
||||
|
||||
_resultColorView.backgroundColor = _resultColor;
|
||||
|
||||
[self informDelegateDidChangeColor];
|
||||
}
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
- (void) setResultColor: (UIColor*) newValue
|
||||
{
|
||||
if (![_resultColor isEqual: newValue]) {
|
||||
_resultColor = newValue;
|
||||
|
||||
float h = _hue;
|
||||
HSVFromUIColor(newValue, &h, &_saturation, &_brightness);
|
||||
|
||||
if ((h == 0.0 && _hue == 1.0) || (h == 1.0 && _hue == 0.0)) {
|
||||
// these are equivalent, so do nothing
|
||||
}
|
||||
else if (h != _hue) {
|
||||
_hue = h;
|
||||
|
||||
_barPicker.value = _hue;
|
||||
_squareView.hue = _hue;
|
||||
_squarePicker.hue = _hue;
|
||||
}
|
||||
|
||||
_squarePicker.value = CGPointMake(_saturation, _brightness);
|
||||
|
||||
_resultColorView.backgroundColor = _resultColor;
|
||||
|
||||
[self informDelegateDidChangeColor];
|
||||
}
|
||||
}
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
- (void) setSourceColor: (UIColor*) newValue
|
||||
{
|
||||
if (![_sourceColor isEqual: newValue]) {
|
||||
_sourceColor = newValue;
|
||||
|
||||
_sourceColorView.backgroundColor = _sourceColor;
|
||||
|
||||
self.resultColor = newValue;
|
||||
}
|
||||
}
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
#pragma mark UIViewController(UIPopoverController) methods
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
- (CGSize) contentSizeForViewInPopover
|
||||
{
|
||||
return [[self class] idealSizeForViewInPopover];
|
||||
}
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
@end
|
||||
|
||||
//==============================================================================
|
|
@ -0,0 +1,24 @@
|
|||
//==============================================================================
|
||||
//
|
||||
// InfColorPickerNavigationController.h
|
||||
// InfColorPicker
|
||||
//
|
||||
// Created by Troy Gaul on 11 Dec 2013.
|
||||
//
|
||||
// Copyright (c) 2013 InfinitApps LLC: http://infinitapps.com
|
||||
// Some rights reserved: http://opensource.org/licenses/MIT
|
||||
//
|
||||
//==============================================================================
|
||||
|
||||
#import <UIKit/UIKit.h>
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
// This navigation controller subclass forwards orientation requests to
|
||||
// the top view controller hosted within it so that it can choose to limit
|
||||
// the orientations it is displayed in.
|
||||
|
||||
@interface InfColorPickerNavigationController : UINavigationController
|
||||
|
||||
@end
|
||||
|
||||
//------------------------------------------------------------------------------
|
|
@ -0,0 +1,50 @@
|
|||
//==============================================================================
|
||||
//
|
||||
// InfColorPickerNavigationController.m
|
||||
// InfColorPicker
|
||||
//
|
||||
// Created by Troy Gaul on 11 Dec 2013.
|
||||
//
|
||||
// Copyright (c) 2011-2013 InfinitApps LLC: http://infinitapps.com
|
||||
// Some rights reserved: http://opensource.org/licenses/MIT
|
||||
//
|
||||
//==============================================================================
|
||||
|
||||
#import "InfColorPickerNavigationController.h"
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
#if !__has_feature(objc_arc)
|
||||
#error This file must be compiled with ARC enabled (-fobjc-arc).
|
||||
#endif
|
||||
|
||||
//==============================================================================
|
||||
|
||||
@implementation InfColorPickerNavigationController
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
- (BOOL) shouldAutorotate
|
||||
{
|
||||
return [self.topViewController shouldAutorotate];
|
||||
}
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
- (BOOL) shouldAutorotateToInterfaceOrientation: (UIInterfaceOrientation) interfaceOrientation
|
||||
{
|
||||
return [self.topViewController shouldAutorotateToInterfaceOrientation: interfaceOrientation];
|
||||
}
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
- (NSUInteger) supportedInterfaceOrientations
|
||||
{
|
||||
return self.topViewController.supportedInterfaceOrientations;
|
||||
}
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
@end
|
||||
|
||||
//==============================================================================
|
|
@ -0,0 +1,829 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<archive type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="7.10">
|
||||
<data>
|
||||
<int key="IBDocument.SystemTarget">1280</int>
|
||||
<string key="IBDocument.SystemVersion">11C74</string>
|
||||
<string key="IBDocument.InterfaceBuilderVersion">1938</string>
|
||||
<string key="IBDocument.AppKitVersion">1138.23</string>
|
||||
<string key="IBDocument.HIToolboxVersion">567.00</string>
|
||||
<object class="NSMutableDictionary" key="IBDocument.PluginVersions">
|
||||
<string key="NS.key.0">com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
|
||||
<string key="NS.object.0">933</string>
|
||||
</object>
|
||||
<object class="NSArray" key="IBDocument.IntegratedClassDependencies">
|
||||
<bool key="EncodedWithXMLCoder">YES</bool>
|
||||
<string>IBProxyObject</string>
|
||||
<string>IBUIView</string>
|
||||
</object>
|
||||
<object class="NSArray" key="IBDocument.PluginDependencies">
|
||||
<bool key="EncodedWithXMLCoder">YES</bool>
|
||||
<string>com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
|
||||
</object>
|
||||
<object class="NSMutableDictionary" key="IBDocument.Metadata">
|
||||
<string key="NS.key.0">PluginDependencyRecalculationVersion</string>
|
||||
<integer value="1" key="NS.object.0"/>
|
||||
</object>
|
||||
<object class="NSMutableArray" key="IBDocument.RootObjects" id="1000">
|
||||
<bool key="EncodedWithXMLCoder">YES</bool>
|
||||
<object class="IBProxyObject" id="372490531">
|
||||
<string key="IBProxiedObjectIdentifier">IBFilesOwner</string>
|
||||
<string key="targetRuntimeIdentifier">IBCocoaTouchFramework</string>
|
||||
</object>
|
||||
<object class="IBProxyObject" id="815241450">
|
||||
<string key="IBProxiedObjectIdentifier">IBFirstResponder</string>
|
||||
<string key="targetRuntimeIdentifier">IBCocoaTouchFramework</string>
|
||||
</object>
|
||||
<object class="IBUIView" id="883825266">
|
||||
<reference key="NSNextResponder"/>
|
||||
<int key="NSvFlags">274</int>
|
||||
<object class="NSMutableArray" key="NSSubviews">
|
||||
<bool key="EncodedWithXMLCoder">YES</bool>
|
||||
<object class="IBUIView" id="407640069">
|
||||
<reference key="NSNextResponder" ref="883825266"/>
|
||||
<int key="NSvFlags">301</int>
|
||||
<object class="NSMutableArray" key="NSSubviews">
|
||||
<bool key="EncodedWithXMLCoder">YES</bool>
|
||||
<object class="IBUIView" id="905743537">
|
||||
<reference key="NSNextResponder" ref="407640069"/>
|
||||
<int key="NSvFlags">292</int>
|
||||
<object class="NSMutableArray" key="NSSubviews">
|
||||
<bool key="EncodedWithXMLCoder">YES</bool>
|
||||
<object class="IBUIView" id="998465631">
|
||||
<reference key="NSNextResponder" ref="905743537"/>
|
||||
<int key="NSvFlags">292</int>
|
||||
<string key="NSFrame">{{1, 1}, {256, 256}}</string>
|
||||
<reference key="NSSuperview" ref="905743537"/>
|
||||
<reference key="NSWindow"/>
|
||||
<reference key="NSNextKeyView" ref="65830691"/>
|
||||
<object class="NSColor" key="IBUIBackgroundColor">
|
||||
<int key="NSColorSpace">3</int>
|
||||
<bytes key="NSWhite">MC43NQA</bytes>
|
||||
<object class="NSColorSpace" key="NSCustomColorSpace" id="606899236">
|
||||
<int key="NSID">2</int>
|
||||
</object>
|
||||
</object>
|
||||
<bool key="IBUIClearsContextBeforeDrawing">NO</bool>
|
||||
<bool key="IBUIUserInteractionEnabled">NO</bool>
|
||||
<object class="IBUIAccessibilityConfiguration" key="IBUIAccessibilityConfiguration">
|
||||
<string key="IBUIAccessibilityHint"/>
|
||||
<string key="IBUIAccessibilityLabel"/>
|
||||
<integer value="256" key="IBUIAccessibilityTraits"/>
|
||||
<boolean value="NO" key="IBUIIsAccessibilityElement"/>
|
||||
</object>
|
||||
<string key="targetRuntimeIdentifier">IBCocoaTouchFramework</string>
|
||||
</object>
|
||||
</object>
|
||||
<string key="NSFrame">{{19, 19}, {258, 258}}</string>
|
||||
<reference key="NSSuperview" ref="407640069"/>
|
||||
<reference key="NSWindow"/>
|
||||
<reference key="NSNextKeyView" ref="998465631"/>
|
||||
<object class="NSColor" key="IBUIBackgroundColor" id="459512199">
|
||||
<int key="NSColorSpace">3</int>
|
||||
<bytes key="NSWhite">MQA</bytes>
|
||||
</object>
|
||||
<bool key="IBUIClearsContextBeforeDrawing">NO</bool>
|
||||
<bool key="IBUIUserInteractionEnabled">NO</bool>
|
||||
<object class="IBUIAccessibilityConfiguration" key="IBUIAccessibilityConfiguration">
|
||||
<integer value="256" key="IBUIAccessibilityTraits"/>
|
||||
</object>
|
||||
<string key="targetRuntimeIdentifier">IBCocoaTouchFramework</string>
|
||||
</object>
|
||||
</object>
|
||||
<string key="NSFrame">{{12, 60}, {296, 296}}</string>
|
||||
<reference key="NSSuperview" ref="883825266"/>
|
||||
<reference key="NSWindow"/>
|
||||
<reference key="NSNextKeyView" ref="905743537"/>
|
||||
<object class="NSColor" key="IBUIBackgroundColor">
|
||||
<int key="NSColorSpace">3</int>
|
||||
<bytes key="NSWhite">MC4yAA</bytes>
|
||||
</object>
|
||||
<bool key="IBUIClearsContextBeforeDrawing">NO</bool>
|
||||
<object class="IBUIAccessibilityConfiguration" key="IBUIAccessibilityConfiguration">
|
||||
<string key="IBUIAccessibilityHint">Sets the saturation and brightness of the color.</string>
|
||||
<string key="IBUIAccessibilityLabel">Color square</string>
|
||||
<boolean value="YES" key="IBUIIsAccessibilityElement"/>
|
||||
</object>
|
||||
<string key="targetRuntimeIdentifier">IBCocoaTouchFramework</string>
|
||||
</object>
|
||||
<object class="IBUIView" id="65830691">
|
||||
<reference key="NSNextResponder" ref="883825266"/>
|
||||
<int key="NSvFlags">301</int>
|
||||
<object class="NSMutableArray" key="NSSubviews">
|
||||
<bool key="EncodedWithXMLCoder">YES</bool>
|
||||
<object class="IBUIView" id="804282275">
|
||||
<reference key="NSNextResponder" ref="65830691"/>
|
||||
<int key="NSvFlags">292</int>
|
||||
<object class="NSMutableArray" key="NSSubviews">
|
||||
<bool key="EncodedWithXMLCoder">YES</bool>
|
||||
<object class="IBUIView" id="830998350">
|
||||
<reference key="NSNextResponder" ref="804282275"/>
|
||||
<int key="NSvFlags">292</int>
|
||||
<string key="NSFrame">{{1, 1}, {256, 40}}</string>
|
||||
<reference key="NSSuperview" ref="804282275"/>
|
||||
<reference key="NSWindow"/>
|
||||
<reference key="NSNextKeyView"/>
|
||||
<object class="NSColor" key="IBUIBackgroundColor">
|
||||
<int key="NSColorSpace">3</int>
|
||||
<bytes key="NSWhite">MC43NQA</bytes>
|
||||
<reference key="NSCustomColorSpace" ref="606899236"/>
|
||||
</object>
|
||||
<bool key="IBUIClearsContextBeforeDrawing">NO</bool>
|
||||
<bool key="IBUIUserInteractionEnabled">NO</bool>
|
||||
<object class="IBUIAccessibilityConfiguration" key="IBUIAccessibilityConfiguration">
|
||||
<string key="IBUIAccessibilityHint"/>
|
||||
<string key="IBUIAccessibilityLabel"/>
|
||||
<integer value="256" key="IBUIAccessibilityTraits"/>
|
||||
<boolean value="NO" key="IBUIIsAccessibilityElement"/>
|
||||
</object>
|
||||
<string key="targetRuntimeIdentifier">IBCocoaTouchFramework</string>
|
||||
</object>
|
||||
</object>
|
||||
<string key="NSFrame">{{19, 7}, {258, 42}}</string>
|
||||
<reference key="NSSuperview" ref="65830691"/>
|
||||
<reference key="NSWindow"/>
|
||||
<reference key="NSNextKeyView" ref="830998350"/>
|
||||
<reference key="IBUIBackgroundColor" ref="459512199"/>
|
||||
<bool key="IBUIClearsContextBeforeDrawing">NO</bool>
|
||||
<bool key="IBUIUserInteractionEnabled">NO</bool>
|
||||
<string key="targetRuntimeIdentifier">IBCocoaTouchFramework</string>
|
||||
</object>
|
||||
</object>
|
||||
<string key="NSFrame">{{12, 349}, {296, 56}}</string>
|
||||
<reference key="NSSuperview" ref="883825266"/>
|
||||
<reference key="NSWindow"/>
|
||||
<reference key="NSNextKeyView" ref="804282275"/>
|
||||
<object class="NSColor" key="IBUIBackgroundColor">
|
||||
<int key="NSColorSpace">3</int>
|
||||
<bytes key="NSWhite">MC4yAA</bytes>
|
||||
</object>
|
||||
<bool key="IBUIClearsContextBeforeDrawing">NO</bool>
|
||||
<object class="IBUIAccessibilityConfiguration" key="IBUIAccessibilityConfiguration">
|
||||
<string key="IBUIAccessibilityHint">Sets the hue of the color.</string>
|
||||
<string key="IBUIAccessibilityLabel">Color bar</string>
|
||||
<boolean value="YES" key="IBUIIsAccessibilityElement"/>
|
||||
</object>
|
||||
<string key="targetRuntimeIdentifier">IBCocoaTouchFramework</string>
|
||||
</object>
|
||||
<object class="IBUIView" id="753378649">
|
||||
<reference key="NSNextResponder" ref="883825266"/>
|
||||
<int key="NSvFlags">293</int>
|
||||
<object class="NSMutableArray" key="NSSubviews">
|
||||
<bool key="EncodedWithXMLCoder">YES</bool>
|
||||
<object class="IBUIView" id="994297942">
|
||||
<reference key="NSNextResponder" ref="753378649"/>
|
||||
<int key="NSvFlags">297</int>
|
||||
<object class="NSMutableArray" key="NSSubviews">
|
||||
<bool key="EncodedWithXMLCoder">YES</bool>
|
||||
<object class="IBUIView" id="656723274">
|
||||
<reference key="NSNextResponder" ref="994297942"/>
|
||||
<int key="NSvFlags">274</int>
|
||||
<string key="NSFrame">{{1, 1}, {80, 40}}</string>
|
||||
<reference key="NSSuperview" ref="994297942"/>
|
||||
<reference key="NSWindow"/>
|
||||
<reference key="NSNextKeyView" ref="272625938"/>
|
||||
<object class="NSColor" key="IBUIBackgroundColor">
|
||||
<int key="NSColorSpace">3</int>
|
||||
<bytes key="NSWhite">MC41AA</bytes>
|
||||
<reference key="NSCustomColorSpace" ref="606899236"/>
|
||||
</object>
|
||||
<bool key="IBUIClearsContextBeforeDrawing">NO</bool>
|
||||
<object class="IBUIAccessibilityConfiguration" key="IBUIAccessibilityConfiguration">
|
||||
<string key="IBUIAccessibilityLabel">Original color</string>
|
||||
<boolean value="YES" key="IBUIIsAccessibilityElement"/>
|
||||
</object>
|
||||
<string key="targetRuntimeIdentifier">IBCocoaTouchFramework</string>
|
||||
</object>
|
||||
</object>
|
||||
<string key="NSFrame">{{95, 0}, {82, 42}}</string>
|
||||
<reference key="NSSuperview" ref="753378649"/>
|
||||
<reference key="NSWindow"/>
|
||||
<reference key="NSNextKeyView" ref="656723274"/>
|
||||
<object class="NSColor" key="IBUIBackgroundColor">
|
||||
<int key="NSColorSpace">3</int>
|
||||
<bytes key="NSWhite">MQA</bytes>
|
||||
<reference key="NSCustomColorSpace" ref="606899236"/>
|
||||
</object>
|
||||
<bool key="IBUIClearsContextBeforeDrawing">NO</bool>
|
||||
<string key="targetRuntimeIdentifier">IBCocoaTouchFramework</string>
|
||||
</object>
|
||||
<object class="IBUIView" id="148019574">
|
||||
<reference key="NSNextResponder" ref="753378649"/>
|
||||
<int key="NSvFlags">300</int>
|
||||
<object class="NSMutableArray" key="NSSubviews">
|
||||
<bool key="EncodedWithXMLCoder">YES</bool>
|
||||
<object class="IBUIView" id="713903418">
|
||||
<reference key="NSNextResponder" ref="148019574"/>
|
||||
<int key="NSvFlags">278</int>
|
||||
<string key="NSFrame">{{1, 1}, {40, 40}}</string>
|
||||
<reference key="NSSuperview" ref="148019574"/>
|
||||
<reference key="NSWindow"/>
|
||||
<reference key="NSNextKeyView" ref="794256667"/>
|
||||
<reference key="IBUIBackgroundColor" ref="459512199"/>
|
||||
<bool key="IBUIClearsContextBeforeDrawing">NO</bool>
|
||||
<object class="IBUIAccessibilityConfiguration" key="IBUIAccessibilityConfiguration">
|
||||
<string key="IBUIAccessibilityLabel">White</string>
|
||||
<boolean value="YES" key="IBUIIsAccessibilityElement"/>
|
||||
</object>
|
||||
<string key="targetRuntimeIdentifier">IBCocoaTouchFramework</string>
|
||||
</object>
|
||||
<object class="IBUIView" id="794256667">
|
||||
<reference key="NSNextResponder" ref="148019574"/>
|
||||
<int key="NSvFlags">275</int>
|
||||
<string key="NSFrame">{{42, 1}, {40, 40}}</string>
|
||||
<reference key="NSSuperview" ref="148019574"/>
|
||||
<reference key="NSWindow"/>
|
||||
<reference key="NSNextKeyView" ref="994297942"/>
|
||||
<object class="NSColor" key="IBUIBackgroundColor">
|
||||
<int key="NSColorSpace">3</int>
|
||||
<bytes key="NSWhite">MAA</bytes>
|
||||
</object>
|
||||
<bool key="IBUIClearsContextBeforeDrawing">NO</bool>
|
||||
<object class="IBUIAccessibilityConfiguration" key="IBUIAccessibilityConfiguration">
|
||||
<string key="IBUIAccessibilityLabel">Black</string>
|
||||
<boolean value="YES" key="IBUIIsAccessibilityElement"/>
|
||||
</object>
|
||||
<string key="targetRuntimeIdentifier">IBCocoaTouchFramework</string>
|
||||
</object>
|
||||
</object>
|
||||
<string key="NSFrameSize">{83, 42}</string>
|
||||
<reference key="NSSuperview" ref="753378649"/>
|
||||
<reference key="NSWindow"/>
|
||||
<reference key="NSNextKeyView" ref="713903418"/>
|
||||
<object class="NSColor" key="IBUIBackgroundColor">
|
||||
<int key="NSColorSpace">3</int>
|
||||
<bytes key="NSWhite">MQA</bytes>
|
||||
<reference key="NSCustomColorSpace" ref="606899236"/>
|
||||
</object>
|
||||
<bool key="IBUIClearsContextBeforeDrawing">NO</bool>
|
||||
<string key="targetRuntimeIdentifier">IBCocoaTouchFramework</string>
|
||||
</object>
|
||||
<object class="IBUIView" id="272625938">
|
||||
<reference key="NSNextResponder" ref="753378649"/>
|
||||
<int key="NSvFlags">297</int>
|
||||
<object class="NSMutableArray" key="NSSubviews">
|
||||
<bool key="EncodedWithXMLCoder">YES</bool>
|
||||
<object class="IBUIView" id="954839282">
|
||||
<reference key="NSNextResponder" ref="272625938"/>
|
||||
<int key="NSvFlags">274</int>
|
||||
<string key="NSFrame">{{1, 1}, {80, 40}}</string>
|
||||
<reference key="NSSuperview" ref="272625938"/>
|
||||
<reference key="NSWindow"/>
|
||||
<reference key="NSNextKeyView" ref="407640069"/>
|
||||
<object class="NSColor" key="IBUIBackgroundColor">
|
||||
<int key="NSColorSpace">3</int>
|
||||
<bytes key="NSWhite">MC41AA</bytes>
|
||||
<reference key="NSCustomColorSpace" ref="606899236"/>
|
||||
</object>
|
||||
<bool key="IBUIClearsContextBeforeDrawing">NO</bool>
|
||||
<bool key="IBUIUserInteractionEnabled">NO</bool>
|
||||
<object class="IBUIAccessibilityConfiguration" key="IBUIAccessibilityConfiguration">
|
||||
<string key="IBUIAccessibilityLabel">New color</string>
|
||||
<integer value="0" key="IBUIAccessibilityTraits"/>
|
||||
<boolean value="YES" key="IBUIIsAccessibilityElement"/>
|
||||
</object>
|
||||
<string key="targetRuntimeIdentifier">IBCocoaTouchFramework</string>
|
||||
</object>
|
||||
</object>
|
||||
<string key="NSFrame">{{176, 0}, {82, 42}}</string>
|
||||
<reference key="NSSuperview" ref="753378649"/>
|
||||
<reference key="NSWindow"/>
|
||||
<reference key="NSNextKeyView" ref="954839282"/>
|
||||
<object class="NSColor" key="IBUIBackgroundColor">
|
||||
<int key="NSColorSpace">3</int>
|
||||
<bytes key="NSWhite">MQA</bytes>
|
||||
<reference key="NSCustomColorSpace" ref="606899236"/>
|
||||
</object>
|
||||
<bool key="IBUIClearsContextBeforeDrawing">NO</bool>
|
||||
<bool key="IBUIUserInteractionEnabled">NO</bool>
|
||||
<string key="targetRuntimeIdentifier">IBCocoaTouchFramework</string>
|
||||
</object>
|
||||
</object>
|
||||
<string key="NSFrame">{{31, 18}, {258, 42}}</string>
|
||||
<reference key="NSSuperview" ref="883825266"/>
|
||||
<reference key="NSWindow"/>
|
||||
<reference key="NSNextKeyView" ref="148019574"/>
|
||||
<object class="NSColor" key="IBUIBackgroundColor">
|
||||
<int key="NSColorSpace">3</int>
|
||||
<bytes key="NSWhite">MCAwAA</bytes>
|
||||
</object>
|
||||
<string key="targetRuntimeIdentifier">IBCocoaTouchFramework</string>
|
||||
</object>
|
||||
</object>
|
||||
<string key="NSFrame">{{0, 64}, {320, 416}}</string>
|
||||
<reference key="NSSuperview"/>
|
||||
<reference key="NSWindow"/>
|
||||
<reference key="NSNextKeyView" ref="753378649"/>
|
||||
<object class="NSColor" key="IBUIBackgroundColor">
|
||||
<int key="NSColorSpace">3</int>
|
||||
<bytes key="NSWhite">MC4xOTg5Nzk1OTE4AA</bytes>
|
||||
</object>
|
||||
<bool key="IBUIClearsContextBeforeDrawing">NO</bool>
|
||||
<object class="IBUISimulatedStatusBarMetrics" key="IBUISimulatedStatusBarMetrics"/>
|
||||
<object class="IBUISimulatedNavigationBarMetrics" key="IBUISimulatedTopBarMetrics">
|
||||
<int key="IBUIBarStyle">1</int>
|
||||
<bool key="IBUIPrompted">NO</bool>
|
||||
</object>
|
||||
<string key="targetRuntimeIdentifier">IBCocoaTouchFramework</string>
|
||||
</object>
|
||||
</object>
|
||||
<object class="IBObjectContainer" key="IBDocument.Objects">
|
||||
<object class="NSMutableArray" key="connectionRecords">
|
||||
<bool key="EncodedWithXMLCoder">YES</bool>
|
||||
<object class="IBConnectionRecord">
|
||||
<object class="IBCocoaTouchOutletConnection" key="connection">
|
||||
<string key="label">view</string>
|
||||
<reference key="source" ref="372490531"/>
|
||||
<reference key="destination" ref="883825266"/>
|
||||
</object>
|
||||
<int key="connectionID">35</int>
|
||||
</object>
|
||||
<object class="IBConnectionRecord">
|
||||
<object class="IBCocoaTouchOutletConnection" key="connection">
|
||||
<string key="label">squareView</string>
|
||||
<reference key="source" ref="372490531"/>
|
||||
<reference key="destination" ref="998465631"/>
|
||||
</object>
|
||||
<int key="connectionID">45</int>
|
||||
</object>
|
||||
<object class="IBConnectionRecord">
|
||||
<object class="IBCocoaTouchOutletConnection" key="connection">
|
||||
<string key="label">barView</string>
|
||||
<reference key="source" ref="372490531"/>
|
||||
<reference key="destination" ref="830998350"/>
|
||||
</object>
|
||||
<int key="connectionID">46</int>
|
||||
</object>
|
||||
<object class="IBConnectionRecord">
|
||||
<object class="IBCocoaTouchOutletConnection" key="connection">
|
||||
<string key="label">squarePicker</string>
|
||||
<reference key="source" ref="372490531"/>
|
||||
<reference key="destination" ref="407640069"/>
|
||||
</object>
|
||||
<int key="connectionID">57</int>
|
||||
</object>
|
||||
<object class="IBConnectionRecord">
|
||||
<object class="IBCocoaTouchOutletConnection" key="connection">
|
||||
<string key="label">barPicker</string>
|
||||
<reference key="source" ref="372490531"/>
|
||||
<reference key="destination" ref="65830691"/>
|
||||
</object>
|
||||
<int key="connectionID">58</int>
|
||||
</object>
|
||||
<object class="IBConnectionRecord">
|
||||
<object class="IBCocoaTouchOutletConnection" key="connection">
|
||||
<string key="label">resultColorView</string>
|
||||
<reference key="source" ref="372490531"/>
|
||||
<reference key="destination" ref="954839282"/>
|
||||
</object>
|
||||
<int key="connectionID">63</int>
|
||||
</object>
|
||||
<object class="IBConnectionRecord">
|
||||
<object class="IBCocoaTouchOutletConnection" key="connection">
|
||||
<string key="label">sourceColorView</string>
|
||||
<reference key="source" ref="372490531"/>
|
||||
<reference key="destination" ref="656723274"/>
|
||||
</object>
|
||||
<int key="connectionID">67</int>
|
||||
</object>
|
||||
<object class="IBConnectionRecord">
|
||||
<object class="IBCocoaTouchEventConnection" key="connection">
|
||||
<string key="label">takeBarValue:</string>
|
||||
<reference key="source" ref="65830691"/>
|
||||
<reference key="destination" ref="372490531"/>
|
||||
<int key="IBEventType">13</int>
|
||||
</object>
|
||||
<int key="connectionID">53</int>
|
||||
</object>
|
||||
<object class="IBConnectionRecord">
|
||||
<object class="IBCocoaTouchEventConnection" key="connection">
|
||||
<string key="label">takeSquareValue:</string>
|
||||
<reference key="source" ref="407640069"/>
|
||||
<reference key="destination" ref="372490531"/>
|
||||
<int key="IBEventType">13</int>
|
||||
</object>
|
||||
<int key="connectionID">56</int>
|
||||
</object>
|
||||
<object class="IBConnectionRecord">
|
||||
<object class="IBCocoaTouchEventConnection" key="connection">
|
||||
<string key="label">takeBackgroundColor:</string>
|
||||
<reference key="source" ref="656723274"/>
|
||||
<reference key="destination" ref="372490531"/>
|
||||
<int key="IBEventType">7</int>
|
||||
</object>
|
||||
<int key="connectionID">78</int>
|
||||
</object>
|
||||
<object class="IBConnectionRecord">
|
||||
<object class="IBCocoaTouchEventConnection" key="connection">
|
||||
<string key="label">takeBackgroundColor:</string>
|
||||
<reference key="source" ref="713903418"/>
|
||||
<reference key="destination" ref="372490531"/>
|
||||
<int key="IBEventType">7</int>
|
||||
</object>
|
||||
<int key="connectionID">75</int>
|
||||
</object>
|
||||
<object class="IBConnectionRecord">
|
||||
<object class="IBCocoaTouchEventConnection" key="connection">
|
||||
<string key="label">takeBackgroundColor:</string>
|
||||
<reference key="source" ref="794256667"/>
|
||||
<reference key="destination" ref="372490531"/>
|
||||
<int key="IBEventType">7</int>
|
||||
</object>
|
||||
<int key="connectionID">77</int>
|
||||
</object>
|
||||
</object>
|
||||
<object class="IBMutableOrderedSet" key="objectRecords">
|
||||
<object class="NSArray" key="orderedObjects">
|
||||
<bool key="EncodedWithXMLCoder">YES</bool>
|
||||
<object class="IBObjectRecord">
|
||||
<int key="objectID">0</int>
|
||||
<object class="NSArray" key="object" id="0">
|
||||
<bool key="EncodedWithXMLCoder">YES</bool>
|
||||
</object>
|
||||
<reference key="children" ref="1000"/>
|
||||
<nil key="parent"/>
|
||||
</object>
|
||||
<object class="IBObjectRecord">
|
||||
<int key="objectID">-1</int>
|
||||
<reference key="object" ref="372490531"/>
|
||||
<reference key="parent" ref="0"/>
|
||||
<string key="objectName">File's Owner</string>
|
||||
</object>
|
||||
<object class="IBObjectRecord">
|
||||
<int key="objectID">-2</int>
|
||||
<reference key="object" ref="815241450"/>
|
||||
<reference key="parent" ref="0"/>
|
||||
</object>
|
||||
<object class="IBObjectRecord">
|
||||
<int key="objectID">34</int>
|
||||
<reference key="object" ref="883825266"/>
|
||||
<object class="NSMutableArray" key="children">
|
||||
<bool key="EncodedWithXMLCoder">YES</bool>
|
||||
<reference ref="65830691"/>
|
||||
<reference ref="407640069"/>
|
||||
<reference ref="753378649"/>
|
||||
</object>
|
||||
<reference key="parent" ref="0"/>
|
||||
</object>
|
||||
<object class="IBObjectRecord">
|
||||
<int key="objectID">52</int>
|
||||
<reference key="object" ref="65830691"/>
|
||||
<object class="NSMutableArray" key="children">
|
||||
<bool key="EncodedWithXMLCoder">YES</bool>
|
||||
<reference ref="804282275"/>
|
||||
</object>
|
||||
<reference key="parent" ref="883825266"/>
|
||||
</object>
|
||||
<object class="IBObjectRecord">
|
||||
<int key="objectID">51</int>
|
||||
<reference key="object" ref="804282275"/>
|
||||
<object class="NSMutableArray" key="children">
|
||||
<bool key="EncodedWithXMLCoder">YES</bool>
|
||||
<reference ref="830998350"/>
|
||||
</object>
|
||||
<reference key="parent" ref="65830691"/>
|
||||
</object>
|
||||
<object class="IBObjectRecord">
|
||||
<int key="objectID">41</int>
|
||||
<reference key="object" ref="830998350"/>
|
||||
<reference key="parent" ref="804282275"/>
|
||||
</object>
|
||||
<object class="IBObjectRecord">
|
||||
<int key="objectID">55</int>
|
||||
<reference key="object" ref="407640069"/>
|
||||
<object class="NSMutableArray" key="children">
|
||||
<bool key="EncodedWithXMLCoder">YES</bool>
|
||||
<reference ref="905743537"/>
|
||||
</object>
|
||||
<reference key="parent" ref="883825266"/>
|
||||
</object>
|
||||
<object class="IBObjectRecord">
|
||||
<int key="objectID">50</int>
|
||||
<reference key="object" ref="905743537"/>
|
||||
<object class="NSMutableArray" key="children">
|
||||
<bool key="EncodedWithXMLCoder">YES</bool>
|
||||
<reference ref="998465631"/>
|
||||
</object>
|
||||
<reference key="parent" ref="407640069"/>
|
||||
</object>
|
||||
<object class="IBObjectRecord">
|
||||
<int key="objectID">39</int>
|
||||
<reference key="object" ref="998465631"/>
|
||||
<reference key="parent" ref="905743537"/>
|
||||
</object>
|
||||
<object class="IBObjectRecord">
|
||||
<int key="objectID">79</int>
|
||||
<reference key="object" ref="753378649"/>
|
||||
<object class="NSMutableArray" key="children">
|
||||
<bool key="EncodedWithXMLCoder">YES</bool>
|
||||
<reference ref="994297942"/>
|
||||
<reference ref="148019574"/>
|
||||
<reference ref="272625938"/>
|
||||
</object>
|
||||
<reference key="parent" ref="883825266"/>
|
||||
</object>
|
||||
<object class="IBObjectRecord">
|
||||
<int key="objectID">65</int>
|
||||
<reference key="object" ref="994297942"/>
|
||||
<object class="NSMutableArray" key="children">
|
||||
<bool key="EncodedWithXMLCoder">YES</bool>
|
||||
<reference ref="656723274"/>
|
||||
</object>
|
||||
<reference key="parent" ref="753378649"/>
|
||||
</object>
|
||||
<object class="IBObjectRecord">
|
||||
<int key="objectID">66</int>
|
||||
<reference key="object" ref="656723274"/>
|
||||
<reference key="parent" ref="994297942"/>
|
||||
</object>
|
||||
<object class="IBObjectRecord">
|
||||
<int key="objectID">69</int>
|
||||
<reference key="object" ref="148019574"/>
|
||||
<object class="NSMutableArray" key="children">
|
||||
<bool key="EncodedWithXMLCoder">YES</bool>
|
||||
<reference ref="794256667"/>
|
||||
<reference ref="713903418"/>
|
||||
</object>
|
||||
<reference key="parent" ref="753378649"/>
|
||||
</object>
|
||||
<object class="IBObjectRecord">
|
||||
<int key="objectID">72</int>
|
||||
<reference key="object" ref="794256667"/>
|
||||
<reference key="parent" ref="148019574"/>
|
||||
</object>
|
||||
<object class="IBObjectRecord">
|
||||
<int key="objectID">70</int>
|
||||
<reference key="object" ref="713903418"/>
|
||||
<reference key="parent" ref="148019574"/>
|
||||
</object>
|
||||
<object class="IBObjectRecord">
|
||||
<int key="objectID">62</int>
|
||||
<reference key="object" ref="272625938"/>
|
||||
<object class="NSMutableArray" key="children">
|
||||
<bool key="EncodedWithXMLCoder">YES</bool>
|
||||
<reference ref="954839282"/>
|
||||
</object>
|
||||
<reference key="parent" ref="753378649"/>
|
||||
</object>
|
||||
<object class="IBObjectRecord">
|
||||
<int key="objectID">43</int>
|
||||
<reference key="object" ref="954839282"/>
|
||||
<reference key="parent" ref="272625938"/>
|
||||
</object>
|
||||
</object>
|
||||
</object>
|
||||
<object class="NSMutableDictionary" key="flattenedProperties">
|
||||
<bool key="EncodedWithXMLCoder">YES</bool>
|
||||
<object class="NSArray" key="dict.sortedKeys">
|
||||
<bool key="EncodedWithXMLCoder">YES</bool>
|
||||
<string>-1.CustomClassName</string>
|
||||
<string>-1.IBPluginDependency</string>
|
||||
<string>-2.CustomClassName</string>
|
||||
<string>-2.IBPluginDependency</string>
|
||||
<string>34.IBPluginDependency</string>
|
||||
<string>39.CustomClassName</string>
|
||||
<string>39.IBPluginDependency</string>
|
||||
<string>41.CustomClassName</string>
|
||||
<string>41.IBPluginDependency</string>
|
||||
<string>43.IBPluginDependency</string>
|
||||
<string>50.IBPluginDependency</string>
|
||||
<string>51.IBPluginDependency</string>
|
||||
<string>52.CustomClassName</string>
|
||||
<string>52.IBPluginDependency</string>
|
||||
<string>55.CustomClassName</string>
|
||||
<string>55.IBPluginDependency</string>
|
||||
<string>62.IBPluginDependency</string>
|
||||
<string>65.IBPluginDependency</string>
|
||||
<string>66.CustomClassName</string>
|
||||
<string>66.IBPluginDependency</string>
|
||||
<string>69.IBPluginDependency</string>
|
||||
<string>70.CustomClassName</string>
|
||||
<string>70.IBPluginDependency</string>
|
||||
<string>72.CustomClassName</string>
|
||||
<string>72.IBPluginDependency</string>
|
||||
<string>79.IBPluginDependency</string>
|
||||
</object>
|
||||
<object class="NSMutableArray" key="dict.values">
|
||||
<bool key="EncodedWithXMLCoder">YES</bool>
|
||||
<string>InfColorPickerController</string>
|
||||
<string>com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
|
||||
<string>UIResponder</string>
|
||||
<string>com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
|
||||
<string>com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
|
||||
<string>InfColorSquareView</string>
|
||||
<string>com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
|
||||
<string>InfColorBarView</string>
|
||||
<string>com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
|
||||
<string>com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
|
||||
<string>com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
|
||||
<string>com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
|
||||
<string>InfColorBarPicker</string>
|
||||
<string>com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
|
||||
<string>InfColorSquarePicker</string>
|
||||
<string>com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
|
||||
<string>com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
|
||||
<string>com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
|
||||
<string>InfSourceColorView</string>
|
||||
<string>com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
|
||||
<string>com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
|
||||
<string>InfSourceColorView</string>
|
||||
<string>com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
|
||||
<string>InfSourceColorView</string>
|
||||
<string>com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
|
||||
<string>com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
|
||||
</object>
|
||||
</object>
|
||||
<object class="NSMutableDictionary" key="unlocalizedProperties">
|
||||
<bool key="EncodedWithXMLCoder">YES</bool>
|
||||
<reference key="dict.sortedKeys" ref="0"/>
|
||||
<reference key="dict.values" ref="0"/>
|
||||
</object>
|
||||
<nil key="activeLocalization"/>
|
||||
<object class="NSMutableDictionary" key="localizations">
|
||||
<bool key="EncodedWithXMLCoder">YES</bool>
|
||||
<reference key="dict.sortedKeys" ref="0"/>
|
||||
<reference key="dict.values" ref="0"/>
|
||||
</object>
|
||||
<nil key="sourceID"/>
|
||||
<int key="maxID">87</int>
|
||||
</object>
|
||||
<object class="IBClassDescriber" key="IBDocument.Classes">
|
||||
<object class="NSMutableArray" key="referencedPartialClassDescriptions">
|
||||
<bool key="EncodedWithXMLCoder">YES</bool>
|
||||
<object class="IBPartialClassDescription">
|
||||
<string key="className">InfColorBarPicker</string>
|
||||
<string key="superclassName">UIControl</string>
|
||||
<object class="IBClassDescriptionSource" key="sourceIdentifier">
|
||||
<string key="majorKey">IBProjectSource</string>
|
||||
<string key="minorKey">./Classes/InfColorBarPicker.h</string>
|
||||
</object>
|
||||
</object>
|
||||
<object class="IBPartialClassDescription">
|
||||
<string key="className">InfColorBarView</string>
|
||||
<string key="superclassName">UIView</string>
|
||||
<object class="IBClassDescriptionSource" key="sourceIdentifier">
|
||||
<string key="majorKey">IBProjectSource</string>
|
||||
<string key="minorKey">./Classes/InfColorBarView.h</string>
|
||||
</object>
|
||||
</object>
|
||||
<object class="IBPartialClassDescription">
|
||||
<string key="className">InfColorPickerController</string>
|
||||
<string key="superclassName">UIViewController</string>
|
||||
<object class="NSMutableDictionary" key="actions">
|
||||
<bool key="EncodedWithXMLCoder">YES</bool>
|
||||
<object class="NSArray" key="dict.sortedKeys">
|
||||
<bool key="EncodedWithXMLCoder">YES</bool>
|
||||
<string>done:</string>
|
||||
<string>takeBackgroundColor:</string>
|
||||
<string>takeBarValue:</string>
|
||||
<string>takeSquareValue:</string>
|
||||
</object>
|
||||
<object class="NSMutableArray" key="dict.values">
|
||||
<bool key="EncodedWithXMLCoder">YES</bool>
|
||||
<string>id</string>
|
||||
<string>UIView</string>
|
||||
<string>id</string>
|
||||
<string>id</string>
|
||||
</object>
|
||||
</object>
|
||||
<object class="NSMutableDictionary" key="actionInfosByName">
|
||||
<bool key="EncodedWithXMLCoder">YES</bool>
|
||||
<object class="NSArray" key="dict.sortedKeys">
|
||||
<bool key="EncodedWithXMLCoder">YES</bool>
|
||||
<string>done:</string>
|
||||
<string>takeBackgroundColor:</string>
|
||||
<string>takeBarValue:</string>
|
||||
<string>takeSquareValue:</string>
|
||||
</object>
|
||||
<object class="NSMutableArray" key="dict.values">
|
||||
<bool key="EncodedWithXMLCoder">YES</bool>
|
||||
<object class="IBActionInfo">
|
||||
<string key="name">done:</string>
|
||||
<string key="candidateClassName">id</string>
|
||||
</object>
|
||||
<object class="IBActionInfo">
|
||||
<string key="name">takeBackgroundColor:</string>
|
||||
<string key="candidateClassName">UIView</string>
|
||||
</object>
|
||||
<object class="IBActionInfo">
|
||||
<string key="name">takeBarValue:</string>
|
||||
<string key="candidateClassName">id</string>
|
||||
</object>
|
||||
<object class="IBActionInfo">
|
||||
<string key="name">takeSquareValue:</string>
|
||||
<string key="candidateClassName">id</string>
|
||||
</object>
|
||||
</object>
|
||||
</object>
|
||||
<object class="NSMutableDictionary" key="outlets">
|
||||
<bool key="EncodedWithXMLCoder">YES</bool>
|
||||
<object class="NSArray" key="dict.sortedKeys">
|
||||
<bool key="EncodedWithXMLCoder">YES</bool>
|
||||
<string>barPicker</string>
|
||||
<string>barView</string>
|
||||
<string>navController</string>
|
||||
<string>resultColorView</string>
|
||||
<string>sourceColorView</string>
|
||||
<string>squarePicker</string>
|
||||
<string>squareView</string>
|
||||
</object>
|
||||
<object class="NSMutableArray" key="dict.values">
|
||||
<bool key="EncodedWithXMLCoder">YES</bool>
|
||||
<string>InfColorBarPicker</string>
|
||||
<string>InfColorBarView</string>
|
||||
<string>UINavigationController</string>
|
||||
<string>UIView</string>
|
||||
<string>UIView</string>
|
||||
<string>InfColorSquarePicker</string>
|
||||
<string>InfColorSquareView</string>
|
||||
</object>
|
||||
</object>
|
||||
<object class="NSMutableDictionary" key="toOneOutletInfosByName">
|
||||
<bool key="EncodedWithXMLCoder">YES</bool>
|
||||
<object class="NSArray" key="dict.sortedKeys">
|
||||
<bool key="EncodedWithXMLCoder">YES</bool>
|
||||
<string>barPicker</string>
|
||||
<string>barView</string>
|
||||
<string>navController</string>
|
||||
<string>resultColorView</string>
|
||||
<string>sourceColorView</string>
|
||||
<string>squarePicker</string>
|
||||
<string>squareView</string>
|
||||
</object>
|
||||
<object class="NSMutableArray" key="dict.values">
|
||||
<bool key="EncodedWithXMLCoder">YES</bool>
|
||||
<object class="IBToOneOutletInfo">
|
||||
<string key="name">barPicker</string>
|
||||
<string key="candidateClassName">InfColorBarPicker</string>
|
||||
</object>
|
||||
<object class="IBToOneOutletInfo">
|
||||
<string key="name">barView</string>
|
||||
<string key="candidateClassName">InfColorBarView</string>
|
||||
</object>
|
||||
<object class="IBToOneOutletInfo">
|
||||
<string key="name">navController</string>
|
||||
<string key="candidateClassName">UINavigationController</string>
|
||||
</object>
|
||||
<object class="IBToOneOutletInfo">
|
||||
<string key="name">resultColorView</string>
|
||||
<string key="candidateClassName">UIView</string>
|
||||
</object>
|
||||
<object class="IBToOneOutletInfo">
|
||||
<string key="name">sourceColorView</string>
|
||||
<string key="candidateClassName">UIView</string>
|
||||
</object>
|
||||
<object class="IBToOneOutletInfo">
|
||||
<string key="name">squarePicker</string>
|
||||
<string key="candidateClassName">InfColorSquarePicker</string>
|
||||
</object>
|
||||
<object class="IBToOneOutletInfo">
|
||||
<string key="name">squareView</string>
|
||||
<string key="candidateClassName">InfColorSquareView</string>
|
||||
</object>
|
||||
</object>
|
||||
</object>
|
||||
<object class="IBClassDescriptionSource" key="sourceIdentifier">
|
||||
<string key="majorKey">IBProjectSource</string>
|
||||
<string key="minorKey">./Classes/InfColorPickerController.h</string>
|
||||
</object>
|
||||
</object>
|
||||
<object class="IBPartialClassDescription">
|
||||
<string key="className">InfColorSquarePicker</string>
|
||||
<string key="superclassName">UIControl</string>
|
||||
<object class="IBClassDescriptionSource" key="sourceIdentifier">
|
||||
<string key="majorKey">IBProjectSource</string>
|
||||
<string key="minorKey">./Classes/InfColorSquarePicker.h</string>
|
||||
</object>
|
||||
</object>
|
||||
<object class="IBPartialClassDescription">
|
||||
<string key="className">InfColorSquareView</string>
|
||||
<string key="superclassName">UIImageView</string>
|
||||
<object class="IBClassDescriptionSource" key="sourceIdentifier">
|
||||
<string key="majorKey">IBProjectSource</string>
|
||||
<string key="minorKey">./Classes/InfColorSquareView.h</string>
|
||||
</object>
|
||||
</object>
|
||||
<object class="IBPartialClassDescription">
|
||||
<string key="className">InfSourceColorView</string>
|
||||
<string key="superclassName">UIControl</string>
|
||||
<object class="IBClassDescriptionSource" key="sourceIdentifier">
|
||||
<string key="majorKey">IBProjectSource</string>
|
||||
<string key="minorKey">./Classes/InfSourceColorView.h</string>
|
||||
</object>
|
||||
</object>
|
||||
</object>
|
||||
</object>
|
||||
<int key="IBDocument.localizationMode">0</int>
|
||||
<string key="IBDocument.TargetRuntimeIdentifier">IBCocoaTouchFramework</string>
|
||||
<object class="NSMutableDictionary" key="IBDocument.PluginDeclaredDependencyDefaults">
|
||||
<string key="NS.key.0">com.apple.InterfaceBuilder.CocoaTouchPlugin.iPhoneOS</string>
|
||||
<real value="1280" key="NS.object.0"/>
|
||||
</object>
|
||||
<object class="NSMutableDictionary" key="IBDocument.PluginDeclaredDevelopmentDependencies">
|
||||
<string key="NS.key.0">com.apple.InterfaceBuilder.CocoaTouchPlugin.InterfaceBuilder3</string>
|
||||
<integer value="3100" key="NS.object.0"/>
|
||||
</object>
|
||||
<bool key="IBDocument.PluginDeclaredDependenciesTrackSystemTargetVersion">YES</bool>
|
||||
<int key="IBDocument.defaultPropertyAccessControl">3</int>
|
||||
<string key="IBCocoaTouchPluginVersion">933</string>
|
||||
</data>
|
||||
</archive>
|
|
@ -0,0 +1,32 @@
|
|||
//==============================================================================
|
||||
//
|
||||
// InfColorSquarePicker.h
|
||||
// InfColorPicker
|
||||
//
|
||||
// Created by Troy Gaul on 8/9/10.
|
||||
//
|
||||
// Copyright (c) 2011-2013 InfinitApps LLC: http://infinitapps.com
|
||||
// Some rights reserved: http://opensource.org/licenses/MIT
|
||||
//
|
||||
//==============================================================================
|
||||
|
||||
#import <UIKit/UIKit.h>
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
@interface InfColorSquareView : UIImageView
|
||||
|
||||
@property (nonatomic) float hue;
|
||||
|
||||
@end
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
@interface InfColorSquarePicker : UIControl
|
||||
|
||||
@property (nonatomic) float hue;
|
||||
@property (nonatomic) CGPoint value;
|
||||
|
||||
@end
|
||||
|
||||
//------------------------------------------------------------------------------
|
|
@ -0,0 +1,178 @@
|
|||
//==============================================================================
|
||||
//
|
||||
// InfColorSquarePicker.m
|
||||
// InfColorPicker
|
||||
//
|
||||
// Created by Troy Gaul on 8/9/10.
|
||||
//
|
||||
// Copyright (c) 2011-2013 InfinitApps LLC: http://infinitapps.com
|
||||
// Some rights reserved: http://opensource.org/licenses/MIT
|
||||
//
|
||||
//==============================================================================
|
||||
|
||||
#import "InfColorSquarePicker.h"
|
||||
|
||||
#import "InfColorIndicatorView.h"
|
||||
#import "InfHSBSupport.h"
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
#if !__has_feature(objc_arc)
|
||||
#error This file must be compiled with ARC enabled (-fobjc-arc).
|
||||
#endif
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
#define kContentInsetX 20
|
||||
#define kContentInsetY 20
|
||||
|
||||
#define kIndicatorSize 24
|
||||
|
||||
//==============================================================================
|
||||
|
||||
@implementation InfColorSquareView
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
- (void) updateContent
|
||||
{
|
||||
CGImageRef imageRef = createSaturationBrightnessSquareContentImageWithHue(self.hue * 360);
|
||||
self.image = [UIImage imageWithCGImage: imageRef];
|
||||
CGImageRelease(imageRef);
|
||||
}
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
#pragma mark Properties
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
- (void) setHue: (float) value
|
||||
{
|
||||
if (value != _hue || self.image == nil) {
|
||||
_hue = value;
|
||||
|
||||
[self updateContent];
|
||||
}
|
||||
}
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
@end
|
||||
|
||||
//==============================================================================
|
||||
|
||||
@implementation InfColorSquarePicker {
|
||||
InfColorIndicatorView* indicator;
|
||||
}
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
#pragma mark Appearance
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
- (void) setIndicatorColor
|
||||
{
|
||||
if (indicator == nil)
|
||||
return;
|
||||
|
||||
indicator.color = [UIColor colorWithHue: self.hue
|
||||
saturation: self.value.x
|
||||
brightness: self.value.y
|
||||
alpha: 1.0f];
|
||||
}
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
- (NSString*) spokenValue
|
||||
{
|
||||
return [NSString stringWithFormat: @"%d%% saturation, %d%% brightness",
|
||||
(int) (self.value.x * 100), (int) (self.value.y * 100)];
|
||||
}
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
- (void) layoutSubviews
|
||||
{
|
||||
if (indicator == nil) {
|
||||
CGRect indicatorRect = { CGPointZero, { kIndicatorSize, kIndicatorSize } };
|
||||
indicator = [[InfColorIndicatorView alloc] initWithFrame: indicatorRect];
|
||||
[self addSubview: indicator];
|
||||
}
|
||||
|
||||
[self setIndicatorColor];
|
||||
|
||||
CGFloat indicatorX = kContentInsetX + (self.value.x * (self.bounds.size.width - 2 * kContentInsetX));
|
||||
CGFloat indicatorY = self.bounds.size.height - kContentInsetY
|
||||
- (self.value.y * (self.bounds.size.height - 2 * kContentInsetY));
|
||||
|
||||
indicator.center = CGPointMake(indicatorX, indicatorY);
|
||||
}
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
#pragma mark Properties
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
- (void) setHue: (float) newValue
|
||||
{
|
||||
if (newValue != _hue) {
|
||||
_hue = newValue;
|
||||
|
||||
[self setIndicatorColor];
|
||||
}
|
||||
}
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
- (void) setValue: (CGPoint) newValue
|
||||
{
|
||||
if (!CGPointEqualToPoint(newValue, _value)) {
|
||||
_value = newValue;
|
||||
|
||||
[self sendActionsForControlEvents: UIControlEventValueChanged];
|
||||
[self setNeedsLayout];
|
||||
}
|
||||
}
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
#pragma mark Tracking
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
- (void) trackIndicatorWithTouch: (UITouch*) touch
|
||||
{
|
||||
CGRect bounds = self.bounds;
|
||||
|
||||
CGPoint touchValue;
|
||||
|
||||
touchValue.x = ([touch locationInView: self].x - kContentInsetX)
|
||||
/ (bounds.size.width - 2 * kContentInsetX);
|
||||
|
||||
touchValue.y = ([touch locationInView: self].y - kContentInsetY)
|
||||
/ (bounds.size.height - 2 * kContentInsetY);
|
||||
|
||||
touchValue.x = pin(0.0f, touchValue.x, 1.0f);
|
||||
touchValue.y = 1.0f - pin(0.0f, touchValue.y, 1.0f);
|
||||
|
||||
self.value = touchValue;
|
||||
}
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
- (BOOL) beginTrackingWithTouch: (UITouch*) touch
|
||||
withEvent: (UIEvent*) event
|
||||
{
|
||||
[self trackIndicatorWithTouch: touch];
|
||||
return YES;
|
||||
}
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
- (BOOL) continueTrackingWithTouch: (UITouch*) touch
|
||||
withEvent: (UIEvent*) event
|
||||
{
|
||||
[self trackIndicatorWithTouch: touch];
|
||||
return YES;
|
||||
}
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
@end
|
||||
|
||||
//==============================================================================
|
|
@ -0,0 +1,53 @@
|
|||
//==============================================================================
|
||||
//
|
||||
// InfHSBSupport.h
|
||||
// InfColorPicker
|
||||
//
|
||||
// Created by Troy Gaul on 7 Aug 2010.
|
||||
//
|
||||
// Copyright (c) 2011-2013 InfinitApps LLC: http://infinitapps.com
|
||||
// Some rights reserved: http://opensource.org/licenses/MIT
|
||||
//
|
||||
//==============================================================================
|
||||
|
||||
#import <UIKit/UIKit.h>
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
float pin(float minValue, float value, float maxValue);
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
// These functions convert between an RGB value with components in the
|
||||
// 0.0f..1.0f range to HSV where Hue is 0 .. 360 and Saturation and
|
||||
// Value (aka Brightness) are percentages expressed as 0.0f..1.0f.
|
||||
//
|
||||
// Note that HSB (B = Brightness) and HSV (V = Value) are interchangeable
|
||||
// names that mean the same thing. I use V here as it is unambiguous
|
||||
// relative to the B in RGB, which is Blue.
|
||||
|
||||
void HSVtoRGB(float h, float s, float v, float* r, float* g, float* b);
|
||||
|
||||
void RGBToHSV(float r, float g, float b, float* h, float* s, float* v,
|
||||
BOOL preserveHS);
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
CGImageRef createSaturationBrightnessSquareContentImageWithHue(float hue);
|
||||
// Generates a 256x256 image with the specified constant hue where the
|
||||
// Saturation and value vary in the X and Y axes respectively.
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
typedef enum {
|
||||
InfComponentIndexHue = 0,
|
||||
InfComponentIndexSaturation = 1,
|
||||
InfComponentIndexBrightness = 2,
|
||||
} InfComponentIndex;
|
||||
|
||||
CGImageRef createHSVBarContentImage(InfComponentIndex barComponentIndex, float hsv[3]);
|
||||
// Generates an image where the specified barComponentIndex (0=H, 1=S, 2=V)
|
||||
// varies across the x-axis of the 256x1 pixel image and the other components
|
||||
// remain at the constant value specified in the hsv array.
|
||||
|
||||
//------------------------------------------------------------------------------
|
|
@ -0,0 +1,279 @@
|
|||
//==============================================================================
|
||||
//
|
||||
// InfHSBSupport.m
|
||||
// InfColorPicker
|
||||
//
|
||||
// Created by Troy Gaul on 7 Aug 2010.
|
||||
//
|
||||
// Copyright (c) 2011-2013 InfinitApps LLC: http://infinitapps.com
|
||||
// Some rights reserved: http://opensource.org/licenses/MIT
|
||||
//
|
||||
//==============================================================================
|
||||
|
||||
#import "InfHSBSupport.h"
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
float pin(float minValue, float value, float maxValue)
|
||||
{
|
||||
if (minValue > value)
|
||||
return minValue;
|
||||
else if (maxValue < value)
|
||||
return maxValue;
|
||||
else
|
||||
return value;
|
||||
}
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
#pragma mark Floating point conversion
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
static void hueToComponentFactors(float h, float* r, float* g, float* b)
|
||||
{
|
||||
float h_prime = h / 60.0f;
|
||||
float x = 1.0f - fabsf(fmodf(h_prime, 2.0f) - 1.0f);
|
||||
|
||||
if (h_prime < 1.0f) {
|
||||
*r = 1;
|
||||
*g = x;
|
||||
*b = 0;
|
||||
}
|
||||
else if (h_prime < 2.0f) {
|
||||
*r = x;
|
||||
*g = 1;
|
||||
*b = 0;
|
||||
}
|
||||
else if (h_prime < 3.0f) {
|
||||
*r = 0;
|
||||
*g = 1;
|
||||
*b = x;
|
||||
}
|
||||
else if (h_prime < 4.0f) {
|
||||
*r = 0;
|
||||
*g = x;
|
||||
*b = 1;
|
||||
}
|
||||
else if (h_prime < 5.0f) {
|
||||
*r = x;
|
||||
*g = 0;
|
||||
*b = 1;
|
||||
}
|
||||
else {
|
||||
*r = 1;
|
||||
*g = 0;
|
||||
*b = x;
|
||||
}
|
||||
}
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
void HSVtoRGB(float h, float s, float v, float* r, float* g, float* b)
|
||||
{
|
||||
hueToComponentFactors(h, r, g, b);
|
||||
|
||||
float c = v * s;
|
||||
float m = v - c;
|
||||
|
||||
*r = *r * c + m;
|
||||
*g = *g * c + m;
|
||||
*b = *b * c + m;
|
||||
}
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
void RGBToHSV(float r, float g, float b, float* h, float* s, float* v, BOOL preserveHS)
|
||||
{
|
||||
float max = r;
|
||||
|
||||
if (max < g)
|
||||
max = g;
|
||||
|
||||
if (max < b)
|
||||
max = b;
|
||||
|
||||
float min = r;
|
||||
|
||||
if (min > g)
|
||||
min = g;
|
||||
|
||||
if (min > b)
|
||||
min = b;
|
||||
|
||||
// Brightness (aka Value)
|
||||
|
||||
*v = max;
|
||||
|
||||
// Saturation
|
||||
|
||||
float sat;
|
||||
|
||||
if (max != 0.0f) {
|
||||
sat = (max - min) / max;
|
||||
*s = sat;
|
||||
}
|
||||
else {
|
||||
sat = 0.0f;
|
||||
|
||||
if (!preserveHS)
|
||||
*s = 0.0f; // Black, so sat is undefined, use 0
|
||||
}
|
||||
|
||||
// Hue
|
||||
|
||||
float delta;
|
||||
|
||||
if (sat == 0.0f) {
|
||||
if (!preserveHS)
|
||||
*h = 0.0f; // No color, so hue is undefined, use 0
|
||||
}
|
||||
else {
|
||||
delta = max - min;
|
||||
|
||||
float hue;
|
||||
|
||||
if (r == max)
|
||||
hue = (g - b) / delta;
|
||||
else if (g == max)
|
||||
hue = 2 + (b - r) / delta;
|
||||
else
|
||||
hue = 4 + (r - g) / delta;
|
||||
|
||||
hue /= 6.0f;
|
||||
|
||||
if (hue < 0.0f)
|
||||
hue += 1.0f;
|
||||
|
||||
if (!preserveHS || fabsf(hue - *h) != 1.0f)
|
||||
*h = hue; // 0.0 and 1.0 hues are actually both the same (red)
|
||||
}
|
||||
}
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
#pragma mark Square/Bar image creation
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
static UInt8 blend(UInt8 value, UInt8 percentIn255)
|
||||
{
|
||||
return (UInt8) ((int) value * percentIn255 / 255);
|
||||
}
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
static CGContextRef createBGRxImageContext(int w, int h, void* data)
|
||||
{
|
||||
CGColorSpaceRef colorSpace = CGColorSpaceCreateDeviceRGB();
|
||||
|
||||
CGBitmapInfo kBGRxBitmapInfo = kCGBitmapByteOrder32Little | kCGImageAlphaNoneSkipFirst;
|
||||
// BGRA is the most efficient on the iPhone.
|
||||
|
||||
CGContextRef context = CGBitmapContextCreate(data, w, h, 8, w * 4, colorSpace, kBGRxBitmapInfo);
|
||||
|
||||
CGColorSpaceRelease(colorSpace);
|
||||
|
||||
return context;
|
||||
}
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
CGImageRef createSaturationBrightnessSquareContentImageWithHue(float hue)
|
||||
{
|
||||
void* data = malloc(256 * 256 * 4);
|
||||
if (data == nil)
|
||||
return nil;
|
||||
|
||||
CGContextRef context = createBGRxImageContext(256, 256, data);
|
||||
|
||||
if (context == nil) {
|
||||
free(data);
|
||||
return nil;
|
||||
}
|
||||
|
||||
UInt8* dataPtr = data;
|
||||
size_t rowBytes = CGBitmapContextGetBytesPerRow(context);
|
||||
|
||||
float r, g, b;
|
||||
hueToComponentFactors(hue, &r, &g, &b);
|
||||
|
||||
UInt8 r_s = (UInt8) ((1.0f - r) * 255);
|
||||
UInt8 g_s = (UInt8) ((1.0f - g) * 255);
|
||||
UInt8 b_s = (UInt8) ((1.0f - b) * 255);
|
||||
|
||||
for (int s = 0; s < 256; ++s) {
|
||||
register UInt8* ptr = dataPtr;
|
||||
|
||||
register unsigned int r_hs = 255 - blend(s, r_s);
|
||||
register unsigned int g_hs = 255 - blend(s, g_s);
|
||||
register unsigned int b_hs = 255 - blend(s, b_s);
|
||||
|
||||
for (register int v = 255; v >= 0; --v) {
|
||||
ptr[0] = (UInt8) (v * b_hs >> 8);
|
||||
ptr[1] = (UInt8) (v * g_hs >> 8);
|
||||
ptr[2] = (UInt8) (v * r_hs >> 8);
|
||||
|
||||
// Really, these should all be of the form used in blend(),
|
||||
// which does a divide by 255. However, integer divide is
|
||||
// implemented in software on ARM, so a divide by 256
|
||||
// (done as a bit shift) will be *nearly* the same value,
|
||||
// and is faster. The more-accurate versions would look like:
|
||||
// ptr[0] = blend(v, b_hs);
|
||||
|
||||
ptr += rowBytes;
|
||||
}
|
||||
|
||||
dataPtr += 4;
|
||||
}
|
||||
|
||||
// Return an image of the context's content:
|
||||
|
||||
CGImageRef image = CGBitmapContextCreateImage(context);
|
||||
|
||||
CGContextRelease(context);
|
||||
free(data);
|
||||
|
||||
return image;
|
||||
}
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
CGImageRef createHSVBarContentImage(InfComponentIndex barComponentIndex, float hsv[3])
|
||||
{
|
||||
UInt8 data[256 * 4];
|
||||
|
||||
// Set up the bitmap context for filling with color:
|
||||
|
||||
CGContextRef context = createBGRxImageContext(256, 1, data);
|
||||
|
||||
if (context == nil)
|
||||
return nil;
|
||||
|
||||
// Draw into context here:
|
||||
|
||||
UInt8* ptr = CGBitmapContextGetData(context);
|
||||
if (ptr == nil) {
|
||||
CGContextRelease(context);
|
||||
return nil;
|
||||
}
|
||||
|
||||
float r, g, b;
|
||||
for (int x = 0; x < 256; ++x) {
|
||||
hsv[barComponentIndex] = (float) x / 255.0f;
|
||||
|
||||
HSVtoRGB(hsv[0] * 360.0f, hsv[1], hsv[2], &r, &g, &b);
|
||||
|
||||
ptr[0] = (UInt8) (b * 255.0f);
|
||||
ptr[1] = (UInt8) (g * 255.0f);
|
||||
ptr[2] = (UInt8) (r * 255.0f);
|
||||
|
||||
ptr += 4;
|
||||
}
|
||||
|
||||
// Return an image of the context's content:
|
||||
|
||||
CGImageRef image = CGBitmapContextCreateImage(context);
|
||||
|
||||
CGContextRelease(context);
|
||||
|
||||
return image;
|
||||
}
|
||||
|
||||
//------------------------------------------------------------------------------
|
|
@ -0,0 +1,23 @@
|
|||
//==============================================================================
|
||||
//
|
||||
// InfSourceColorView.h
|
||||
// InfColorPicker
|
||||
//
|
||||
// Created by Troy Gaul on 8/10/10.
|
||||
//
|
||||
// Copyright (c) 2011-2013 InfinitApps LLC: http://infinitapps.com
|
||||
// Some rights reserved: http://opensource.org/licenses/MIT
|
||||
//
|
||||
//==============================================================================
|
||||
|
||||
#import <UIKit/UIKit.h>
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
@interface InfSourceColorView : UIControl
|
||||
|
||||
@property (nonatomic) BOOL trackingInside;
|
||||
|
||||
@end
|
||||
|
||||
//------------------------------------------------------------------------------
|
|
@ -0,0 +1,105 @@
|
|||
//==============================================================================
|
||||
//
|
||||
// InfSourceColorView.m
|
||||
// InfColorPicker
|
||||
//
|
||||
// Created by Troy Gaul on 8/10/10.
|
||||
//
|
||||
// Copyright (c) 2011-2013 InfinitApps LLC: http://infinitapps.com
|
||||
// Some rights reserved: http://opensource.org/licenses/MIT
|
||||
//
|
||||
//==============================================================================
|
||||
|
||||
#import "InfSourceColorView.h"
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
#if !__has_feature(objc_arc)
|
||||
#error This file must be compiled with ARC enabled (-fobjc-arc).
|
||||
#endif
|
||||
|
||||
//==============================================================================
|
||||
|
||||
@implementation InfSourceColorView
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
#pragma mark UIView overrides
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
- (void) drawRect: (CGRect) rect
|
||||
{
|
||||
[super drawRect: rect];
|
||||
|
||||
if (self.enabled && self.trackingInside) {
|
||||
CGRect bounds = [self bounds];
|
||||
|
||||
[[UIColor whiteColor] set];
|
||||
CGContextStrokeRectWithWidth(UIGraphicsGetCurrentContext(),
|
||||
CGRectInset(bounds, 1, 1), 2);
|
||||
|
||||
[[UIColor blackColor] set];
|
||||
UIRectFrame(CGRectInset(bounds, 2, 2));
|
||||
}
|
||||
}
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
#pragma mark UIControl overrides
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
- (void) setTrackingInside: (BOOL) newValue
|
||||
{
|
||||
if (newValue != _trackingInside) {
|
||||
_trackingInside = newValue;
|
||||
[self setNeedsDisplay];
|
||||
}
|
||||
}
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
- (BOOL) beginTrackingWithTouch: (UITouch*) touch
|
||||
withEvent: (UIEvent*) event
|
||||
{
|
||||
if (self.enabled) {
|
||||
self.trackingInside = YES;
|
||||
|
||||
return [super beginTrackingWithTouch: touch withEvent: event];
|
||||
}
|
||||
else {
|
||||
return NO;
|
||||
}
|
||||
}
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
- (BOOL) continueTrackingWithTouch: (UITouch*) touch withEvent: (UIEvent*) event
|
||||
{
|
||||
BOOL isTrackingInside = CGRectContainsPoint([self bounds], [touch locationInView: self]);
|
||||
|
||||
self.trackingInside = isTrackingInside;
|
||||
|
||||
return [super continueTrackingWithTouch: touch withEvent: event];
|
||||
}
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
- (void) endTrackingWithTouch: (UITouch*) touch withEvent: (UIEvent*) event
|
||||
{
|
||||
self.trackingInside = NO;
|
||||
|
||||
[super endTrackingWithTouch: touch withEvent: event];
|
||||
}
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
- (void) cancelTrackingWithEvent: (UIEvent*) event
|
||||
{
|
||||
self.trackingInside = NO;
|
||||
|
||||
[super cancelTrackingWithEvent: event];
|
||||
}
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
@end
|
||||
|
||||
//==============================================================================
|
|
@ -0,0 +1,19 @@
|
|||
Copyright (C) 2011 by InfinitApps LLC
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in
|
||||
all copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||||
THE SOFTWARE.
|
|
@ -0,0 +1,26 @@
|
|||
//==============================================================================
|
||||
//
|
||||
// PickerSamplePadAppDelegate.h
|
||||
// PickerSamplePad
|
||||
//
|
||||
// Created by Troy Gaul on 8/17/10.
|
||||
//
|
||||
// Copyright (c) 2011-2013 InfinitApps LLC: http://infinitapps.com
|
||||
// Some rights reserved: http://opensource.org/licenses/MIT
|
||||
//
|
||||
//==============================================================================
|
||||
|
||||
#import <UIKit/UIKit.h>
|
||||
|
||||
@class PickerSamplePadViewController;
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
@interface PickerSamplePadAppDelegate : NSObject< UIApplicationDelegate >
|
||||
|
||||
@property (nonatomic) IBOutlet UIWindow* window;
|
||||
@property (nonatomic) IBOutlet PickerSamplePadViewController* viewController;
|
||||
|
||||
@end
|
||||
|
||||
//------------------------------------------------------------------------------
|
|
@ -0,0 +1,39 @@
|
|||
//==============================================================================
|
||||
//
|
||||
// PickerSamplePadAppDelegate.m
|
||||
// PickerSamplePad
|
||||
//
|
||||
// Created by Troy Gaul on 8/17/10.
|
||||
//
|
||||
// Copyright (c) 2011-2013 InfinitApps LLC: http://infinitapps.com
|
||||
// Some rights reserved: http://opensource.org/licenses/MIT
|
||||
//
|
||||
//==============================================================================
|
||||
|
||||
#import "PickerSamplePadAppDelegate.h"
|
||||
#import "PickerSamplePadViewController.h"
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
@implementation PickerSamplePadAppDelegate
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
@synthesize window;
|
||||
@synthesize viewController;
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
- (BOOL) application: (UIApplication*) application didFinishLaunchingWithOptions: (NSDictionary*) launchOptions
|
||||
{
|
||||
[window setRootViewController: viewController];
|
||||
[window makeKeyAndVisible];
|
||||
|
||||
return YES;
|
||||
}
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
@end
|
||||
|
||||
//------------------------------------------------------------------------------
|
|
@ -0,0 +1,29 @@
|
|||
//==============================================================================
|
||||
//
|
||||
// PickerSamplePadViewController.h
|
||||
// PickerSamplePad
|
||||
//
|
||||
// Created by Troy Gaul on 8/17/10.
|
||||
//
|
||||
// Copyright (c) 2011-2013 InfinitApps LLC: http://infinitapps.com
|
||||
// Some rights reserved: http://opensource.org/licenses/MIT
|
||||
//
|
||||
//==============================================================================
|
||||
|
||||
#import <UIKit/UIKit.h>
|
||||
|
||||
#import "InfColorPicker.h"
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
@interface PickerSamplePadViewController : UIViewController <InfColorPickerControllerDelegate,
|
||||
UIPopoverControllerDelegate,
|
||||
UITableViewDelegate>
|
||||
|
||||
- (IBAction) takeUpdateLive: (id) sender;
|
||||
- (IBAction) changeColor: (id) sender;
|
||||
- (IBAction) showColorTable: (id) sender;
|
||||
|
||||
@end
|
||||
|
||||
//------------------------------------------------------------------------------
|
|
@ -0,0 +1,164 @@
|
|||
//==============================================================================
|
||||
//
|
||||
// PickerSamplePadViewController.m
|
||||
// PickerSamplePad
|
||||
//
|
||||
// Created by Troy Gaul on 8/17/10.
|
||||
//
|
||||
// Copyright (c) 2011-2013 InfinitApps LLC: http://infinitapps.com
|
||||
// Some rights reserved: http://opensource.org/licenses/MIT
|
||||
//
|
||||
//==============================================================================
|
||||
|
||||
#import "PickerSamplePadViewController.h"
|
||||
|
||||
#import "PickerSampleTableViewController.h"
|
||||
|
||||
//==============================================================================
|
||||
|
||||
@implementation PickerSamplePadViewController {
|
||||
UIPopoverController* activePopover;
|
||||
BOOL updateLive;
|
||||
}
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
- (BOOL) shouldAutorotateToInterfaceOrientation: (UIInterfaceOrientation) interfaceOrientation
|
||||
{
|
||||
return YES;
|
||||
}
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
- (void) applyPickedColor: (InfColorPickerController*) picker
|
||||
{
|
||||
self.view.backgroundColor = picker.resultColor;
|
||||
}
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
#pragma mark UIPopoverControllerDelegate methods
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
- (void) popoverControllerDidDismissPopover: (UIPopoverController*) popoverController
|
||||
{
|
||||
if ([popoverController.contentViewController isKindOfClass: [InfColorPickerController class]]) {
|
||||
InfColorPickerController* picker = (InfColorPickerController*) popoverController.contentViewController;
|
||||
[self applyPickedColor: picker];
|
||||
}
|
||||
|
||||
if (popoverController == activePopover) {
|
||||
activePopover = nil;
|
||||
}
|
||||
}
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
- (void) showPopover: (UIPopoverController*) popover from: (id) sender
|
||||
{
|
||||
popover.delegate = self;
|
||||
|
||||
activePopover = popover;
|
||||
|
||||
if ([sender isKindOfClass: [UIBarButtonItem class]]) {
|
||||
[activePopover presentPopoverFromBarButtonItem: sender
|
||||
permittedArrowDirections: UIPopoverArrowDirectionAny
|
||||
animated: YES];
|
||||
} else {
|
||||
UIView* senderView = sender;
|
||||
|
||||
[activePopover presentPopoverFromRect: [senderView bounds]
|
||||
inView: senderView
|
||||
permittedArrowDirections: UIPopoverArrowDirectionAny
|
||||
animated: YES];
|
||||
}
|
||||
}
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
- (BOOL) dismissActivePopover
|
||||
{
|
||||
if (activePopover) {
|
||||
[activePopover dismissPopoverAnimated: YES];
|
||||
[self popoverControllerDidDismissPopover: activePopover];
|
||||
|
||||
return YES;
|
||||
}
|
||||
|
||||
return NO;
|
||||
}
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
#pragma mark InfHSBColorPickerControllerDelegate methods
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
- (void) colorPickerControllerDidChangeColor: (InfColorPickerController*) picker
|
||||
{
|
||||
if (updateLive)
|
||||
[self applyPickedColor: picker];
|
||||
}
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
- (void) colorPickerControllerDidFinish: (InfColorPickerController*) picker
|
||||
{
|
||||
[self applyPickedColor: picker];
|
||||
|
||||
[activePopover dismissPopoverAnimated: YES];
|
||||
}
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
#pragma mark IB actions
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
- (IBAction) takeUpdateLive: (UISwitch*) sender
|
||||
{
|
||||
updateLive = [sender isOn];
|
||||
}
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
- (IBAction) finishColorTable
|
||||
{
|
||||
[self dismissActivePopover];
|
||||
}
|
||||
|
||||
- (IBAction) showColorTable: (id) sender
|
||||
{
|
||||
if ([self dismissActivePopover])
|
||||
return;
|
||||
|
||||
PickerSampleTableViewController* vc = [[PickerSampleTableViewController alloc] init];
|
||||
UINavigationController* nav = [[UINavigationController alloc] initWithRootViewController: vc];
|
||||
|
||||
nav.navigationBar.barStyle = UIBarStyleBlackOpaque;
|
||||
|
||||
vc.navigationItem.rightBarButtonItem = [[UIBarButtonItem alloc] initWithBarButtonSystemItem: UIBarButtonSystemItemDone
|
||||
target: self
|
||||
action: @selector(finishColorTable)];
|
||||
|
||||
UIPopoverController* popover = [[UIPopoverController alloc] initWithContentViewController: nav];
|
||||
|
||||
[self showPopover: popover from: sender];
|
||||
}
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
- (IBAction) changeColor: (id) sender
|
||||
{
|
||||
if ([self dismissActivePopover]) return;
|
||||
|
||||
InfColorPickerController* picker = [InfColorPickerController colorPickerViewController];
|
||||
|
||||
picker.sourceColor = self.view.backgroundColor;
|
||||
picker.delegate = self;
|
||||
|
||||
UIPopoverController* popover = [[UIPopoverController alloc] initWithContentViewController: picker];
|
||||
|
||||
[self showPopover: popover from: sender];
|
||||
}
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
@end
|
||||
|
||||
//==============================================================================
|
|
@ -0,0 +1,19 @@
|
|||
//==============================================================================
|
||||
//
|
||||
// PickerSampleTableViewController.h
|
||||
// PickerSamplePad
|
||||
//
|
||||
// Created by Troy Gaul on 9/7/11.
|
||||
//
|
||||
// Copyright (c) 2011-2013 InfinitApps LLC: http://infinitapps.com
|
||||
// Some rights reserved: http://opensource.org/licenses/MIT
|
||||
//
|
||||
//==============================================================================
|
||||
|
||||
#import <UIKit/UIKit.h>
|
||||
|
||||
#import "InfColorPicker.h"
|
||||
|
||||
@interface PickerSampleTableViewController : UITableViewController <InfColorPickerControllerDelegate>
|
||||
|
||||
@end
|
|
@ -0,0 +1,118 @@
|
|||
//==============================================================================
|
||||
//
|
||||
// PickerSampleTableViewController.m
|
||||
// PickerSamplePad
|
||||
//
|
||||
// Created by Troy Gaul on 9/7/11.
|
||||
//
|
||||
// Copyright (c) 2011-2013 InfinitApps LLC: http://infinitapps.com
|
||||
// Some rights reserved: http://opensource.org/licenses/MIT
|
||||
//
|
||||
//==============================================================================
|
||||
|
||||
#import "PickerSampleTableViewController.h"
|
||||
|
||||
//==============================================================================
|
||||
|
||||
@implementation PickerSampleTableViewController {
|
||||
NSMutableArray* colors;
|
||||
int pickingColorIndex;
|
||||
}
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
#pragma mark - View lifecycle
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
- (void) viewDidLoad
|
||||
{
|
||||
[super viewDidLoad];
|
||||
|
||||
if (colors == nil) {
|
||||
colors = [NSMutableArray array];
|
||||
|
||||
[colors addObject: [UIColor blackColor]];
|
||||
[colors addObject: [UIColor redColor]];
|
||||
[colors addObject: [UIColor greenColor]];
|
||||
}
|
||||
|
||||
self.contentSizeForViewInPopover = [InfColorPickerController idealSizeForViewInPopover];
|
||||
}
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
- (BOOL) shouldAutorotateToInterfaceOrientation: (UIInterfaceOrientation) interfaceOrientation
|
||||
{
|
||||
return YES;
|
||||
}
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
#pragma mark - Table view data source
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
- (NSInteger) tableView: (UITableView*) tableView numberOfRowsInSection: (NSInteger) section
|
||||
{
|
||||
return colors.count;
|
||||
}
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
- (UITableViewCell*) tableView: (UITableView*) tableView cellForRowAtIndexPath: (NSIndexPath*) indexPath
|
||||
{
|
||||
static NSString* CellIdentifier = @"Cell";
|
||||
|
||||
UITableViewCell* cell = [tableView dequeueReusableCellWithIdentifier: CellIdentifier];
|
||||
|
||||
if (cell == nil) {
|
||||
cell = [[UITableViewCell alloc] initWithStyle: UITableViewCellStyleDefault
|
||||
reuseIdentifier: CellIdentifier];
|
||||
}
|
||||
|
||||
// Configure the cell:
|
||||
|
||||
if (indexPath.row < colors.count) // just a sanity test
|
||||
cell.textLabel.textColor = colors[indexPath.row];
|
||||
|
||||
cell.textLabel.text = [NSString stringWithFormat: @"Color # %d", indexPath.row + 1];
|
||||
|
||||
return cell;
|
||||
}
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
#pragma mark - Table view delegate
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
- (void) tableView: (UITableView*) tableView didSelectRowAtIndexPath: (NSIndexPath*) indexPath
|
||||
{
|
||||
UITableViewCell* cell = [self.tableView cellForRowAtIndexPath: indexPath];
|
||||
|
||||
pickingColorIndex = indexPath.row;
|
||||
|
||||
InfColorPickerController* picker = [InfColorPickerController colorPickerViewController];
|
||||
|
||||
picker.sourceColor = colors[pickingColorIndex];
|
||||
picker.delegate = self;
|
||||
picker.navigationItem.title = cell.textLabel.text;
|
||||
|
||||
[self.navigationController pushViewController: picker animated: YES];
|
||||
}
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
#pragma mark - InfColorPickerControllerDelegate
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
- (void) colorPickerControllerDidChangeColor: (InfColorPickerController*) controller
|
||||
{
|
||||
NSUInteger indexes[2] = { 0, pickingColorIndex };
|
||||
NSIndexPath* indexPath = [NSIndexPath indexPathWithIndexes: indexes length: 2];
|
||||
UITableViewCell* cell = [self.tableView cellForRowAtIndexPath: indexPath];
|
||||
|
||||
colors[pickingColorIndex] = controller.resultColor;
|
||||
|
||||
cell.textLabel.textColor = controller.resultColor;
|
||||
}
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
@end
|
||||
|
||||
//==============================================================================
|
|
@ -0,0 +1,436 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<archive type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="7.10">
|
||||
<data>
|
||||
<int key="IBDocument.SystemTarget">800</int>
|
||||
<string key="IBDocument.SystemVersion">10D540</string>
|
||||
<string key="IBDocument.InterfaceBuilderVersion">760</string>
|
||||
<string key="IBDocument.AppKitVersion">1038.29</string>
|
||||
<string key="IBDocument.HIToolboxVersion">460.00</string>
|
||||
<object class="NSMutableDictionary" key="IBDocument.PluginVersions">
|
||||
<string key="NS.key.0">com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
|
||||
<string key="NS.object.0">81</string>
|
||||
</object>
|
||||
<object class="NSMutableArray" key="IBDocument.EditedObjectIDs">
|
||||
<bool key="EncodedWithXMLCoder">YES</bool>
|
||||
<integer value="2"/>
|
||||
</object>
|
||||
<object class="NSArray" key="IBDocument.PluginDependencies">
|
||||
<bool key="EncodedWithXMLCoder">YES</bool>
|
||||
<string>com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
|
||||
</object>
|
||||
<object class="NSMutableDictionary" key="IBDocument.Metadata">
|
||||
<bool key="EncodedWithXMLCoder">YES</bool>
|
||||
<object class="NSArray" key="dict.sortedKeys" id="0">
|
||||
<bool key="EncodedWithXMLCoder">YES</bool>
|
||||
</object>
|
||||
<object class="NSMutableArray" key="dict.values">
|
||||
<bool key="EncodedWithXMLCoder">YES</bool>
|
||||
</object>
|
||||
</object>
|
||||
<object class="NSMutableArray" key="IBDocument.RootObjects" id="1000">
|
||||
<bool key="EncodedWithXMLCoder">YES</bool>
|
||||
<object class="IBProxyObject" id="841351856">
|
||||
<string key="IBProxiedObjectIdentifier">IBFilesOwner</string>
|
||||
<string key="targetRuntimeIdentifier">IBCocoaTouchFramework</string>
|
||||
</object>
|
||||
<object class="IBProxyObject" id="606714003">
|
||||
<string key="IBProxiedObjectIdentifier">IBFirstResponder</string>
|
||||
<string key="targetRuntimeIdentifier">IBCocoaTouchFramework</string>
|
||||
</object>
|
||||
<object class="IBUIWindow" id="62075450">
|
||||
<reference key="NSNextResponder"/>
|
||||
<int key="NSvFlags">292</int>
|
||||
<string key="NSFrameSize">{768, 1024}</string>
|
||||
<reference key="NSSuperview"/>
|
||||
<object class="NSColor" key="IBUIBackgroundColor">
|
||||
<int key="NSColorSpace">1</int>
|
||||
<bytes key="NSRGB">MSAxIDEAA</bytes>
|
||||
</object>
|
||||
<bool key="IBUIOpaque">NO</bool>
|
||||
<bool key="IBUIClearsContextBeforeDrawing">NO</bool>
|
||||
<object class="IBUISimulatedStatusBarMetrics" key="IBUISimulatedStatusBarMetrics" id="456458906">
|
||||
<int key="IBUIStatusBarStyle">2</int>
|
||||
</object>
|
||||
<string key="targetRuntimeIdentifier">IBIPadFramework</string>
|
||||
<bool key="IBUIResizesToFullScreen">YES</bool>
|
||||
</object>
|
||||
<object class="IBUICustomObject" id="250404236">
|
||||
<string key="targetRuntimeIdentifier">IBIPadFramework</string>
|
||||
</object>
|
||||
<object class="IBUIViewController" id="578626022">
|
||||
<string key="IBUINibName">PickerSamplePadViewController</string>
|
||||
<reference key="IBUISimulatedStatusBarMetrics" ref="456458906"/>
|
||||
<string key="targetRuntimeIdentifier">IBIPadFramework</string>
|
||||
</object>
|
||||
</object>
|
||||
<object class="IBObjectContainer" key="IBDocument.Objects">
|
||||
<object class="NSMutableArray" key="connectionRecords">
|
||||
<bool key="EncodedWithXMLCoder">YES</bool>
|
||||
<object class="IBConnectionRecord">
|
||||
<object class="IBCocoaTouchOutletConnection" key="connection">
|
||||
<string key="label">viewController</string>
|
||||
<reference key="source" ref="250404236"/>
|
||||
<reference key="destination" ref="578626022"/>
|
||||
</object>
|
||||
<int key="connectionID">8</int>
|
||||
</object>
|
||||
<object class="IBConnectionRecord">
|
||||
<object class="IBCocoaTouchOutletConnection" key="connection">
|
||||
<string key="label">delegate</string>
|
||||
<reference key="source" ref="841351856"/>
|
||||
<reference key="destination" ref="250404236"/>
|
||||
</object>
|
||||
<int key="connectionID">9</int>
|
||||
</object>
|
||||
<object class="IBConnectionRecord">
|
||||
<object class="IBCocoaTouchOutletConnection" key="connection">
|
||||
<string key="label">window</string>
|
||||
<reference key="source" ref="250404236"/>
|
||||
<reference key="destination" ref="62075450"/>
|
||||
</object>
|
||||
<int key="connectionID">10</int>
|
||||
</object>
|
||||
</object>
|
||||
<object class="IBMutableOrderedSet" key="objectRecords">
|
||||
<object class="NSArray" key="orderedObjects">
|
||||
<bool key="EncodedWithXMLCoder">YES</bool>
|
||||
<object class="IBObjectRecord">
|
||||
<int key="objectID">0</int>
|
||||
<reference key="object" ref="0"/>
|
||||
<reference key="children" ref="1000"/>
|
||||
<nil key="parent"/>
|
||||
</object>
|
||||
<object class="IBObjectRecord">
|
||||
<int key="objectID">-1</int>
|
||||
<reference key="object" ref="841351856"/>
|
||||
<reference key="parent" ref="0"/>
|
||||
<string key="objectName">File's Owner</string>
|
||||
</object>
|
||||
<object class="IBObjectRecord">
|
||||
<int key="objectID">-2</int>
|
||||
<reference key="object" ref="606714003"/>
|
||||
<reference key="parent" ref="0"/>
|
||||
</object>
|
||||
<object class="IBObjectRecord">
|
||||
<int key="objectID">2</int>
|
||||
<reference key="object" ref="62075450"/>
|
||||
<reference key="parent" ref="0"/>
|
||||
</object>
|
||||
<object class="IBObjectRecord">
|
||||
<int key="objectID">6</int>
|
||||
<reference key="object" ref="250404236"/>
|
||||
<reference key="parent" ref="0"/>
|
||||
<string key="objectName">PickerSamplePad App Delegate</string>
|
||||
</object>
|
||||
<object class="IBObjectRecord">
|
||||
<int key="objectID">7</int>
|
||||
<reference key="object" ref="578626022"/>
|
||||
<reference key="parent" ref="0"/>
|
||||
</object>
|
||||
</object>
|
||||
</object>
|
||||
<object class="NSMutableDictionary" key="flattenedProperties">
|
||||
<bool key="EncodedWithXMLCoder">YES</bool>
|
||||
<object class="NSArray" key="dict.sortedKeys">
|
||||
<bool key="EncodedWithXMLCoder">YES</bool>
|
||||
<string>-1.CustomClassName</string>
|
||||
<string>-2.CustomClassName</string>
|
||||
<string>2.IBEditorWindowLastContentRect</string>
|
||||
<string>2.IBPluginDependency</string>
|
||||
<string>6.CustomClassName</string>
|
||||
<string>6.IBPluginDependency</string>
|
||||
<string>7.CustomClassName</string>
|
||||
<string>7.IBEditorWindowLastContentRect</string>
|
||||
<string>7.IBPluginDependency</string>
|
||||
</object>
|
||||
<object class="NSMutableArray" key="dict.values">
|
||||
<bool key="EncodedWithXMLCoder">YES</bool>
|
||||
<string>UIApplication</string>
|
||||
<string>UIResponder</string>
|
||||
<string>{{200, 57}, {783, 799}}</string>
|
||||
<string>com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
|
||||
<string>PickerSamplePadAppDelegate</string>
|
||||
<string>com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
|
||||
<string>PickerSamplePadViewController</string>
|
||||
<string>{{512, 351}, {320, 480}}</string>
|
||||
<string>com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
|
||||
</object>
|
||||
</object>
|
||||
<object class="NSMutableDictionary" key="unlocalizedProperties">
|
||||
<bool key="EncodedWithXMLCoder">YES</bool>
|
||||
<reference key="dict.sortedKeys" ref="0"/>
|
||||
<object class="NSMutableArray" key="dict.values">
|
||||
<bool key="EncodedWithXMLCoder">YES</bool>
|
||||
</object>
|
||||
</object>
|
||||
<nil key="activeLocalization"/>
|
||||
<object class="NSMutableDictionary" key="localizations">
|
||||
<bool key="EncodedWithXMLCoder">YES</bool>
|
||||
<reference key="dict.sortedKeys" ref="0"/>
|
||||
<object class="NSMutableArray" key="dict.values">
|
||||
<bool key="EncodedWithXMLCoder">YES</bool>
|
||||
</object>
|
||||
</object>
|
||||
<nil key="sourceID"/>
|
||||
<int key="maxID">10</int>
|
||||
</object>
|
||||
<object class="IBClassDescriber" key="IBDocument.Classes">
|
||||
<object class="NSMutableArray" key="referencedPartialClassDescriptions">
|
||||
<bool key="EncodedWithXMLCoder">YES</bool>
|
||||
<object class="IBPartialClassDescription">
|
||||
<string key="className">PickerSamplePadAppDelegate</string>
|
||||
<string key="superclassName">NSObject</string>
|
||||
<object class="NSMutableDictionary" key="outlets">
|
||||
<bool key="EncodedWithXMLCoder">YES</bool>
|
||||
<object class="NSArray" key="dict.sortedKeys">
|
||||
<bool key="EncodedWithXMLCoder">YES</bool>
|
||||
<string>viewController</string>
|
||||
<string>window</string>
|
||||
</object>
|
||||
<object class="NSMutableArray" key="dict.values">
|
||||
<bool key="EncodedWithXMLCoder">YES</bool>
|
||||
<string>PickerSamplePadViewController</string>
|
||||
<string>UIWindow</string>
|
||||
</object>
|
||||
</object>
|
||||
<object class="IBClassDescriptionSource" key="sourceIdentifier">
|
||||
<string key="majorKey">IBProjectSource</string>
|
||||
<string key="minorKey">Classes/PickerSamplePadAppDelegate.h</string>
|
||||
</object>
|
||||
</object>
|
||||
<object class="IBPartialClassDescription">
|
||||
<string key="className">PickerSamplePadViewController</string>
|
||||
<string key="superclassName">UIViewController</string>
|
||||
<object class="IBClassDescriptionSource" key="sourceIdentifier">
|
||||
<string key="majorKey">IBProjectSource</string>
|
||||
<string key="minorKey">Classes/PickerSamplePadViewController.h</string>
|
||||
</object>
|
||||
</object>
|
||||
</object>
|
||||
<object class="NSMutableArray" key="referencedPartialClassDescriptionsV3.2+">
|
||||
<bool key="EncodedWithXMLCoder">YES</bool>
|
||||
<object class="IBPartialClassDescription">
|
||||
<string key="className">NSObject</string>
|
||||
<object class="IBClassDescriptionSource" key="sourceIdentifier">
|
||||
<string key="majorKey">IBFrameworkSource</string>
|
||||
<string key="minorKey">Foundation.framework/Headers/NSError.h</string>
|
||||
</object>
|
||||
</object>
|
||||
<object class="IBPartialClassDescription">
|
||||
<string key="className">NSObject</string>
|
||||
<object class="IBClassDescriptionSource" key="sourceIdentifier">
|
||||
<string key="majorKey">IBFrameworkSource</string>
|
||||
<string key="minorKey">Foundation.framework/Headers/NSFileManager.h</string>
|
||||
</object>
|
||||
</object>
|
||||
<object class="IBPartialClassDescription">
|
||||
<string key="className">NSObject</string>
|
||||
<object class="IBClassDescriptionSource" key="sourceIdentifier">
|
||||
<string key="majorKey">IBFrameworkSource</string>
|
||||
<string key="minorKey">Foundation.framework/Headers/NSKeyValueCoding.h</string>
|
||||
</object>
|
||||
</object>
|
||||
<object class="IBPartialClassDescription">
|
||||
<string key="className">NSObject</string>
|
||||
<object class="IBClassDescriptionSource" key="sourceIdentifier">
|
||||
<string key="majorKey">IBFrameworkSource</string>
|
||||
<string key="minorKey">Foundation.framework/Headers/NSKeyValueObserving.h</string>
|
||||
</object>
|
||||
</object>
|
||||
<object class="IBPartialClassDescription">
|
||||
<string key="className">NSObject</string>
|
||||
<object class="IBClassDescriptionSource" key="sourceIdentifier">
|
||||
<string key="majorKey">IBFrameworkSource</string>
|
||||
<string key="minorKey">Foundation.framework/Headers/NSKeyedArchiver.h</string>
|
||||
</object>
|
||||
</object>
|
||||
<object class="IBPartialClassDescription">
|
||||
<string key="className">NSObject</string>
|
||||
<object class="IBClassDescriptionSource" key="sourceIdentifier">
|
||||
<string key="majorKey">IBFrameworkSource</string>
|
||||
<string key="minorKey">Foundation.framework/Headers/NSNetServices.h</string>
|
||||
</object>
|
||||
</object>
|
||||
<object class="IBPartialClassDescription">
|
||||
<string key="className">NSObject</string>
|
||||
<object class="IBClassDescriptionSource" key="sourceIdentifier">
|
||||
<string key="majorKey">IBFrameworkSource</string>
|
||||
<string key="minorKey">Foundation.framework/Headers/NSObject.h</string>
|
||||
</object>
|
||||
</object>
|
||||
<object class="IBPartialClassDescription">
|
||||
<string key="className">NSObject</string>
|
||||
<object class="IBClassDescriptionSource" key="sourceIdentifier">
|
||||
<string key="majorKey">IBFrameworkSource</string>
|
||||
<string key="minorKey">Foundation.framework/Headers/NSPort.h</string>
|
||||
</object>
|
||||
</object>
|
||||
<object class="IBPartialClassDescription">
|
||||
<string key="className">NSObject</string>
|
||||
<object class="IBClassDescriptionSource" key="sourceIdentifier">
|
||||
<string key="majorKey">IBFrameworkSource</string>
|
||||
<string key="minorKey">Foundation.framework/Headers/NSRunLoop.h</string>
|
||||
</object>
|
||||
</object>
|
||||
<object class="IBPartialClassDescription">
|
||||
<string key="className">NSObject</string>
|
||||
<object class="IBClassDescriptionSource" key="sourceIdentifier">
|
||||
<string key="majorKey">IBFrameworkSource</string>
|
||||
<string key="minorKey">Foundation.framework/Headers/NSStream.h</string>
|
||||
</object>
|
||||
</object>
|
||||
<object class="IBPartialClassDescription">
|
||||
<string key="className">NSObject</string>
|
||||
<object class="IBClassDescriptionSource" key="sourceIdentifier">
|
||||
<string key="majorKey">IBFrameworkSource</string>
|
||||
<string key="minorKey">Foundation.framework/Headers/NSThread.h</string>
|
||||
</object>
|
||||
</object>
|
||||
<object class="IBPartialClassDescription">
|
||||
<string key="className">NSObject</string>
|
||||
<object class="IBClassDescriptionSource" key="sourceIdentifier">
|
||||
<string key="majorKey">IBFrameworkSource</string>
|
||||
<string key="minorKey">Foundation.framework/Headers/NSURL.h</string>
|
||||
</object>
|
||||
</object>
|
||||
<object class="IBPartialClassDescription">
|
||||
<string key="className">NSObject</string>
|
||||
<object class="IBClassDescriptionSource" key="sourceIdentifier">
|
||||
<string key="majorKey">IBFrameworkSource</string>
|
||||
<string key="minorKey">Foundation.framework/Headers/NSURLConnection.h</string>
|
||||
</object>
|
||||
</object>
|
||||
<object class="IBPartialClassDescription">
|
||||
<string key="className">NSObject</string>
|
||||
<object class="IBClassDescriptionSource" key="sourceIdentifier">
|
||||
<string key="majorKey">IBFrameworkSource</string>
|
||||
<string key="minorKey">Foundation.framework/Headers/NSXMLParser.h</string>
|
||||
</object>
|
||||
</object>
|
||||
<object class="IBPartialClassDescription">
|
||||
<string key="className">NSObject</string>
|
||||
<object class="IBClassDescriptionSource" key="sourceIdentifier">
|
||||
<string key="majorKey">IBFrameworkSource</string>
|
||||
<string key="minorKey">UIKit.framework/Headers/UIAccessibility.h</string>
|
||||
</object>
|
||||
</object>
|
||||
<object class="IBPartialClassDescription">
|
||||
<string key="className">NSObject</string>
|
||||
<object class="IBClassDescriptionSource" key="sourceIdentifier">
|
||||
<string key="majorKey">IBFrameworkSource</string>
|
||||
<string key="minorKey">UIKit.framework/Headers/UINibLoading.h</string>
|
||||
</object>
|
||||
</object>
|
||||
<object class="IBPartialClassDescription">
|
||||
<string key="className">NSObject</string>
|
||||
<object class="IBClassDescriptionSource" key="sourceIdentifier" id="786211723">
|
||||
<string key="majorKey">IBFrameworkSource</string>
|
||||
<string key="minorKey">UIKit.framework/Headers/UIResponder.h</string>
|
||||
</object>
|
||||
</object>
|
||||
<object class="IBPartialClassDescription">
|
||||
<string key="className">UIApplication</string>
|
||||
<string key="superclassName">UIResponder</string>
|
||||
<object class="IBClassDescriptionSource" key="sourceIdentifier">
|
||||
<string key="majorKey">IBFrameworkSource</string>
|
||||
<string key="minorKey">UIKit.framework/Headers/UIApplication.h</string>
|
||||
</object>
|
||||
</object>
|
||||
<object class="IBPartialClassDescription">
|
||||
<string key="className">UIResponder</string>
|
||||
<string key="superclassName">NSObject</string>
|
||||
<reference key="sourceIdentifier" ref="786211723"/>
|
||||
</object>
|
||||
<object class="IBPartialClassDescription">
|
||||
<string key="className">UIResponder</string>
|
||||
<object class="IBClassDescriptionSource" key="sourceIdentifier">
|
||||
<string key="majorKey">IBFrameworkSource</string>
|
||||
<string key="minorKey">UIKit.framework/Headers/UITextInput.h</string>
|
||||
</object>
|
||||
</object>
|
||||
<object class="IBPartialClassDescription">
|
||||
<string key="className">UISearchBar</string>
|
||||
<string key="superclassName">UIView</string>
|
||||
<object class="IBClassDescriptionSource" key="sourceIdentifier">
|
||||
<string key="majorKey">IBFrameworkSource</string>
|
||||
<string key="minorKey">UIKit.framework/Headers/UISearchBar.h</string>
|
||||
</object>
|
||||
</object>
|
||||
<object class="IBPartialClassDescription">
|
||||
<string key="className">UISearchDisplayController</string>
|
||||
<string key="superclassName">NSObject</string>
|
||||
<object class="IBClassDescriptionSource" key="sourceIdentifier">
|
||||
<string key="majorKey">IBFrameworkSource</string>
|
||||
<string key="minorKey">UIKit.framework/Headers/UISearchDisplayController.h</string>
|
||||
</object>
|
||||
</object>
|
||||
<object class="IBPartialClassDescription">
|
||||
<string key="className">UIView</string>
|
||||
<object class="IBClassDescriptionSource" key="sourceIdentifier">
|
||||
<string key="majorKey">IBFrameworkSource</string>
|
||||
<string key="minorKey">UIKit.framework/Headers/UITextField.h</string>
|
||||
</object>
|
||||
</object>
|
||||
<object class="IBPartialClassDescription">
|
||||
<string key="className">UIView</string>
|
||||
<string key="superclassName">UIResponder</string>
|
||||
<object class="IBClassDescriptionSource" key="sourceIdentifier">
|
||||
<string key="majorKey">IBFrameworkSource</string>
|
||||
<string key="minorKey">UIKit.framework/Headers/UIView.h</string>
|
||||
</object>
|
||||
</object>
|
||||
<object class="IBPartialClassDescription">
|
||||
<string key="className">UIViewController</string>
|
||||
<object class="IBClassDescriptionSource" key="sourceIdentifier">
|
||||
<string key="majorKey">IBFrameworkSource</string>
|
||||
<string key="minorKey">UIKit.framework/Headers/UINavigationController.h</string>
|
||||
</object>
|
||||
</object>
|
||||
<object class="IBPartialClassDescription">
|
||||
<string key="className">UIViewController</string>
|
||||
<object class="IBClassDescriptionSource" key="sourceIdentifier">
|
||||
<string key="majorKey">IBFrameworkSource</string>
|
||||
<string key="minorKey">UIKit.framework/Headers/UISplitViewController.h</string>
|
||||
</object>
|
||||
</object>
|
||||
<object class="IBPartialClassDescription">
|
||||
<string key="className">UIViewController</string>
|
||||
<object class="IBClassDescriptionSource" key="sourceIdentifier">
|
||||
<string key="majorKey">IBFrameworkSource</string>
|
||||
<string key="minorKey">UIKit.framework/Headers/UITabBarController.h</string>
|
||||
</object>
|
||||
</object>
|
||||
<object class="IBPartialClassDescription">
|
||||
<string key="className">UIViewController</string>
|
||||
<string key="superclassName">UIResponder</string>
|
||||
<object class="IBClassDescriptionSource" key="sourceIdentifier">
|
||||
<string key="majorKey">IBFrameworkSource</string>
|
||||
<string key="minorKey">UIKit.framework/Headers/UIViewController.h</string>
|
||||
</object>
|
||||
</object>
|
||||
<object class="IBPartialClassDescription">
|
||||
<string key="className">UIWindow</string>
|
||||
<string key="superclassName">UIView</string>
|
||||
<object class="IBClassDescriptionSource" key="sourceIdentifier">
|
||||
<string key="majorKey">IBFrameworkSource</string>
|
||||
<string key="minorKey">UIKit.framework/Headers/UIWindow.h</string>
|
||||
</object>
|
||||
</object>
|
||||
</object>
|
||||
</object>
|
||||
<int key="IBDocument.localizationMode">0</int>
|
||||
<string key="IBDocument.TargetRuntimeIdentifier">IBIPadFramework</string>
|
||||
<object class="NSMutableDictionary" key="IBDocument.PluginDeclaredDependencyDefaults">
|
||||
<string key="NS.key.0">com.apple.InterfaceBuilder.CocoaTouchPlugin.iPhoneOS</string>
|
||||
<integer value="800" key="NS.object.0"/>
|
||||
</object>
|
||||
<object class="NSMutableDictionary" key="IBDocument.PluginDeclaredDevelopmentDependencies">
|
||||
<string key="NS.key.0">com.apple.InterfaceBuilder.CocoaTouchPlugin.InterfaceBuilder3</string>
|
||||
<integer value="3100" key="NS.object.0"/>
|
||||
</object>
|
||||
<bool key="IBDocument.PluginDeclaredDependenciesTrackSystemTargetVersion">YES</bool>
|
||||
<string key="IBDocument.LastKnownRelativeProjectPath">PickerSamplePad.xcodeproj</string>
|
||||
<int key="IBDocument.defaultPropertyAccessControl">3</int>
|
||||
<string key="IBCocoaTouchPluginVersion">81</string>
|
||||
</data>
|
||||
</archive>
|
|
@ -0,0 +1,37 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||
<plist version="1.0">
|
||||
<dict>
|
||||
<key>CFBundleDevelopmentRegion</key>
|
||||
<string>English</string>
|
||||
<key>CFBundleDisplayName</key>
|
||||
<string>${PRODUCT_NAME}</string>
|
||||
<key>CFBundleExecutable</key>
|
||||
<string>${EXECUTABLE_NAME}</string>
|
||||
<key>CFBundleIconFile</key>
|
||||
<string></string>
|
||||
<key>CFBundleIdentifier</key>
|
||||
<string>com.yourcompany.${PRODUCT_NAME:rfc1034identifier}</string>
|
||||
<key>CFBundleInfoDictionaryVersion</key>
|
||||
<string>6.0</string>
|
||||
<key>CFBundleName</key>
|
||||
<string>${PRODUCT_NAME}</string>
|
||||
<key>CFBundlePackageType</key>
|
||||
<string>APPL</string>
|
||||
<key>CFBundleSignature</key>
|
||||
<string>????</string>
|
||||
<key>CFBundleVersion</key>
|
||||
<string>1.1</string>
|
||||
<key>LSRequiresIPhoneOS</key>
|
||||
<true/>
|
||||
<key>NSMainNibFile</key>
|
||||
<string>MainWindow</string>
|
||||
<key>UISupportedInterfaceOrientations</key>
|
||||
<array>
|
||||
<string>UIInterfaceOrientationPortrait</string>
|
||||
<string>UIInterfaceOrientationPortraitUpsideDown</string>
|
||||
<string>UIInterfaceOrientationLandscapeLeft</string>
|
||||
<string>UIInterfaceOrientationLandscapeRight</string>
|
||||
</array>
|
||||
</dict>
|
||||
</plist>
|
|
@ -0,0 +1,325 @@
|
|||
// !$*UTF8*$!
|
||||
{
|
||||
archiveVersion = 1;
|
||||
classes = {
|
||||
};
|
||||
objectVersion = 46;
|
||||
objects = {
|
||||
|
||||
/* Begin PBXBuildFile section */
|
||||
1D3623260D0F684500981E51 /* PickerSamplePadAppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 1D3623250D0F684500981E51 /* PickerSamplePadAppDelegate.m */; };
|
||||
1D60589B0D05DD56006BFB54 /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 29B97316FDCFA39411CA2CEA /* main.m */; };
|
||||
1D60589F0D05DD5A006BFB54 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 1D30AB110D05D00D00671497 /* Foundation.framework */; };
|
||||
1DF5F4E00D08C38300B7A737 /* UIKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 1DF5F4DF0D08C38300B7A737 /* UIKit.framework */; };
|
||||
288765A50DF7441C002DB57D /* CoreGraphics.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 288765A40DF7441C002DB57D /* CoreGraphics.framework */; };
|
||||
2899E5220DE3E06400AC0155 /* PickerSamplePadViewController.xib in Resources */ = {isa = PBXBuildFile; fileRef = 2899E5210DE3E06400AC0155 /* PickerSamplePadViewController.xib */; };
|
||||
28AD733F0D9D9553002E5188 /* MainWindow.xib in Resources */ = {isa = PBXBuildFile; fileRef = 28AD733E0D9D9553002E5188 /* MainWindow.xib */; };
|
||||
28D7ACF80DDB3853001CB0EB /* PickerSamplePadViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 28D7ACF70DDB3853001CB0EB /* PickerSamplePadViewController.m */; };
|
||||
6913A78B1858D7EF00A5C092 /* InfColorPickerNavigationController.m in Sources */ = {isa = PBXBuildFile; fileRef = 6913A78A1858D7EF00A5C092 /* InfColorPickerNavigationController.m */; };
|
||||
6923F3CE13F4725B0051A217 /* InfColorBarPicker.m in Sources */ = {isa = PBXBuildFile; fileRef = 6923F3C213F4725B0051A217 /* InfColorBarPicker.m */; };
|
||||
6923F3CF13F4725B0051A217 /* InfColorIndicatorView.m in Sources */ = {isa = PBXBuildFile; fileRef = 6923F3C413F4725B0051A217 /* InfColorIndicatorView.m */; };
|
||||
6923F3D013F4725B0051A217 /* InfColorPickerController.m in Sources */ = {isa = PBXBuildFile; fileRef = 6923F3C613F4725B0051A217 /* InfColorPickerController.m */; };
|
||||
6923F3D113F4725B0051A217 /* InfColorPickerView.xib in Resources */ = {isa = PBXBuildFile; fileRef = 6923F3C713F4725B0051A217 /* InfColorPickerView.xib */; };
|
||||
6923F3D213F4725B0051A217 /* InfColorSquarePicker.m in Sources */ = {isa = PBXBuildFile; fileRef = 6923F3C913F4725B0051A217 /* InfColorSquarePicker.m */; };
|
||||
6923F3D313F4725B0051A217 /* InfHSBSupport.m in Sources */ = {isa = PBXBuildFile; fileRef = 6923F3CB13F4725B0051A217 /* InfHSBSupport.m */; };
|
||||
6923F3D413F4725B0051A217 /* InfSourceColorView.m in Sources */ = {isa = PBXBuildFile; fileRef = 6923F3CD13F4725B0051A217 /* InfSourceColorView.m */; };
|
||||
69F47A2D1417FEE800E29503 /* PickerSampleTableViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 69F47A2C1417FEE800E29503 /* PickerSampleTableViewController.m */; };
|
||||
/* End PBXBuildFile section */
|
||||
|
||||
/* Begin PBXFileReference section */
|
||||
1D30AB110D05D00D00671497 /* Foundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Foundation.framework; path = System/Library/Frameworks/Foundation.framework; sourceTree = SDKROOT; };
|
||||
1D3623240D0F684500981E51 /* PickerSamplePadAppDelegate.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = PickerSamplePadAppDelegate.h; sourceTree = "<group>"; };
|
||||
1D3623250D0F684500981E51 /* PickerSamplePadAppDelegate.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = PickerSamplePadAppDelegate.m; sourceTree = "<group>"; };
|
||||
1D6058910D05DD3D006BFB54 /* PickerSamplePad.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = PickerSamplePad.app; sourceTree = BUILT_PRODUCTS_DIR; };
|
||||
1DF5F4DF0D08C38300B7A737 /* UIKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = UIKit.framework; path = System/Library/Frameworks/UIKit.framework; sourceTree = SDKROOT; };
|
||||
288765A40DF7441C002DB57D /* CoreGraphics.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreGraphics.framework; path = System/Library/Frameworks/CoreGraphics.framework; sourceTree = SDKROOT; };
|
||||
2899E5210DE3E06400AC0155 /* PickerSamplePadViewController.xib */ = {isa = PBXFileReference; lastKnownFileType = file.xib; path = PickerSamplePadViewController.xib; sourceTree = "<group>"; };
|
||||
28AD733E0D9D9553002E5188 /* MainWindow.xib */ = {isa = PBXFileReference; lastKnownFileType = file.xib; path = MainWindow.xib; sourceTree = "<group>"; };
|
||||
28D7ACF60DDB3853001CB0EB /* PickerSamplePadViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = PickerSamplePadViewController.h; sourceTree = "<group>"; };
|
||||
28D7ACF70DDB3853001CB0EB /* PickerSamplePadViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = PickerSamplePadViewController.m; sourceTree = "<group>"; };
|
||||
29B97316FDCFA39411CA2CEA /* main.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = "<group>"; };
|
||||
32CA4F630368D1EE00C91783 /* PickerSamplePad_Prefix.pch */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = PickerSamplePad_Prefix.pch; sourceTree = "<group>"; };
|
||||
6913A7891858D7EF00A5C092 /* InfColorPickerNavigationController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = InfColorPickerNavigationController.h; sourceTree = "<group>"; };
|
||||
6913A78A1858D7EF00A5C092 /* InfColorPickerNavigationController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = InfColorPickerNavigationController.m; sourceTree = "<group>"; };
|
||||
6923F3C113F4725B0051A217 /* InfColorBarPicker.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = InfColorBarPicker.h; sourceTree = "<group>"; };
|
||||
6923F3C213F4725B0051A217 /* InfColorBarPicker.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = InfColorBarPicker.m; sourceTree = "<group>"; };
|
||||
6923F3C313F4725B0051A217 /* InfColorIndicatorView.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = InfColorIndicatorView.h; sourceTree = "<group>"; };
|
||||
6923F3C413F4725B0051A217 /* InfColorIndicatorView.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = InfColorIndicatorView.m; sourceTree = "<group>"; };
|
||||
6923F3C513F4725B0051A217 /* InfColorPickerController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = InfColorPickerController.h; sourceTree = "<group>"; };
|
||||
6923F3C613F4725B0051A217 /* InfColorPickerController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = InfColorPickerController.m; sourceTree = "<group>"; };
|
||||
6923F3C713F4725B0051A217 /* InfColorPickerView.xib */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.xib; path = InfColorPickerView.xib; sourceTree = "<group>"; };
|
||||
6923F3C813F4725B0051A217 /* InfColorSquarePicker.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = InfColorSquarePicker.h; sourceTree = "<group>"; };
|
||||
6923F3C913F4725B0051A217 /* InfColorSquarePicker.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = InfColorSquarePicker.m; sourceTree = "<group>"; };
|
||||
6923F3CA13F4725B0051A217 /* InfHSBSupport.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = InfHSBSupport.h; sourceTree = "<group>"; };
|
||||
6923F3CB13F4725B0051A217 /* InfHSBSupport.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = InfHSBSupport.m; sourceTree = "<group>"; };
|
||||
6923F3CC13F4725B0051A217 /* InfSourceColorView.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = InfSourceColorView.h; sourceTree = "<group>"; };
|
||||
6923F3CD13F4725B0051A217 /* InfSourceColorView.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = InfSourceColorView.m; sourceTree = "<group>"; };
|
||||
69F47A2A1417E6E200E29503 /* InfColorPicker.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = InfColorPicker.h; sourceTree = "<group>"; };
|
||||
69F47A2B1417FEE800E29503 /* PickerSampleTableViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = PickerSampleTableViewController.h; sourceTree = "<group>"; };
|
||||
69F47A2C1417FEE800E29503 /* PickerSampleTableViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = PickerSampleTableViewController.m; sourceTree = "<group>"; };
|
||||
8D1107310486CEB800E47090 /* PickerSamplePad-Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; path = "PickerSamplePad-Info.plist"; plistStructureDefinitionIdentifier = "com.apple.xcode.plist.structure-definition.iphone.info-plist"; sourceTree = "<group>"; };
|
||||
/* End PBXFileReference section */
|
||||
|
||||
/* Begin PBXFrameworksBuildPhase section */
|
||||
1D60588F0D05DD3D006BFB54 /* Frameworks */ = {
|
||||
isa = PBXFrameworksBuildPhase;
|
||||
buildActionMask = 2147483647;
|
||||
files = (
|
||||
1D60589F0D05DD5A006BFB54 /* Foundation.framework in Frameworks */,
|
||||
1DF5F4E00D08C38300B7A737 /* UIKit.framework in Frameworks */,
|
||||
288765A50DF7441C002DB57D /* CoreGraphics.framework in Frameworks */,
|
||||
);
|
||||
runOnlyForDeploymentPostprocessing = 0;
|
||||
};
|
||||
/* End PBXFrameworksBuildPhase section */
|
||||
|
||||
/* Begin PBXGroup section */
|
||||
080E96DDFE201D6D7F000001 /* Classes */ = {
|
||||
isa = PBXGroup;
|
||||
children = (
|
||||
1D3623240D0F684500981E51 /* PickerSamplePadAppDelegate.h */,
|
||||
1D3623250D0F684500981E51 /* PickerSamplePadAppDelegate.m */,
|
||||
28D7ACF60DDB3853001CB0EB /* PickerSamplePadViewController.h */,
|
||||
28D7ACF70DDB3853001CB0EB /* PickerSamplePadViewController.m */,
|
||||
69F47A2B1417FEE800E29503 /* PickerSampleTableViewController.h */,
|
||||
69F47A2C1417FEE800E29503 /* PickerSampleTableViewController.m */,
|
||||
);
|
||||
path = Classes;
|
||||
sourceTree = "<group>";
|
||||
};
|
||||
19C28FACFE9D520D11CA2CBB /* Products */ = {
|
||||
isa = PBXGroup;
|
||||
children = (
|
||||
1D6058910D05DD3D006BFB54 /* PickerSamplePad.app */,
|
||||
);
|
||||
name = Products;
|
||||
sourceTree = "<group>";
|
||||
};
|
||||
29B97314FDCFA39411CA2CEA /* CustomTemplate */ = {
|
||||
isa = PBXGroup;
|
||||
children = (
|
||||
080E96DDFE201D6D7F000001 /* Classes */,
|
||||
29B97315FDCFA39411CA2CEA /* Other Sources */,
|
||||
6923F3C013F4725B0051A217 /* InfColorPicker */,
|
||||
29B97317FDCFA39411CA2CEA /* Resources */,
|
||||
29B97323FDCFA39411CA2CEA /* Frameworks */,
|
||||
19C28FACFE9D520D11CA2CBB /* Products */,
|
||||
);
|
||||
name = CustomTemplate;
|
||||
sourceTree = "<group>";
|
||||
};
|
||||
29B97315FDCFA39411CA2CEA /* Other Sources */ = {
|
||||
isa = PBXGroup;
|
||||
children = (
|
||||
32CA4F630368D1EE00C91783 /* PickerSamplePad_Prefix.pch */,
|
||||
29B97316FDCFA39411CA2CEA /* main.m */,
|
||||
);
|
||||
name = "Other Sources";
|
||||
sourceTree = "<group>";
|
||||
};
|
||||
29B97317FDCFA39411CA2CEA /* Resources */ = {
|
||||
isa = PBXGroup;
|
||||
children = (
|
||||
2899E5210DE3E06400AC0155 /* PickerSamplePadViewController.xib */,
|
||||
28AD733E0D9D9553002E5188 /* MainWindow.xib */,
|
||||
8D1107310486CEB800E47090 /* PickerSamplePad-Info.plist */,
|
||||
);
|
||||
name = Resources;
|
||||
sourceTree = "<group>";
|
||||
};
|
||||
29B97323FDCFA39411CA2CEA /* Frameworks */ = {
|
||||
isa = PBXGroup;
|
||||
children = (
|
||||
1DF5F4DF0D08C38300B7A737 /* UIKit.framework */,
|
||||
1D30AB110D05D00D00671497 /* Foundation.framework */,
|
||||
288765A40DF7441C002DB57D /* CoreGraphics.framework */,
|
||||
);
|
||||
name = Frameworks;
|
||||
sourceTree = "<group>";
|
||||
};
|
||||
6923F3C013F4725B0051A217 /* InfColorPicker */ = {
|
||||
isa = PBXGroup;
|
||||
children = (
|
||||
6923F3C113F4725B0051A217 /* InfColorBarPicker.h */,
|
||||
6923F3C213F4725B0051A217 /* InfColorBarPicker.m */,
|
||||
6923F3C313F4725B0051A217 /* InfColorIndicatorView.h */,
|
||||
6923F3C413F4725B0051A217 /* InfColorIndicatorView.m */,
|
||||
69F47A2A1417E6E200E29503 /* InfColorPicker.h */,
|
||||
6923F3C513F4725B0051A217 /* InfColorPickerController.h */,
|
||||
6923F3C613F4725B0051A217 /* InfColorPickerController.m */,
|
||||
6913A7891858D7EF00A5C092 /* InfColorPickerNavigationController.h */,
|
||||
6913A78A1858D7EF00A5C092 /* InfColorPickerNavigationController.m */,
|
||||
6923F3C713F4725B0051A217 /* InfColorPickerView.xib */,
|
||||
6923F3C813F4725B0051A217 /* InfColorSquarePicker.h */,
|
||||
6923F3C913F4725B0051A217 /* InfColorSquarePicker.m */,
|
||||
6923F3CA13F4725B0051A217 /* InfHSBSupport.h */,
|
||||
6923F3CB13F4725B0051A217 /* InfHSBSupport.m */,
|
||||
6923F3CC13F4725B0051A217 /* InfSourceColorView.h */,
|
||||
6923F3CD13F4725B0051A217 /* InfSourceColorView.m */,
|
||||
);
|
||||
name = InfColorPicker;
|
||||
path = ../InfColorPicker;
|
||||
sourceTree = "<group>";
|
||||
};
|
||||
/* End PBXGroup section */
|
||||
|
||||
/* Begin PBXNativeTarget section */
|
||||
1D6058900D05DD3D006BFB54 /* PickerSamplePad */ = {
|
||||
isa = PBXNativeTarget;
|
||||
buildConfigurationList = 1D6058960D05DD3E006BFB54 /* Build configuration list for PBXNativeTarget "PickerSamplePad" */;
|
||||
buildPhases = (
|
||||
1D60588D0D05DD3D006BFB54 /* Resources */,
|
||||
1D60588E0D05DD3D006BFB54 /* Sources */,
|
||||
1D60588F0D05DD3D006BFB54 /* Frameworks */,
|
||||
);
|
||||
buildRules = (
|
||||
);
|
||||
dependencies = (
|
||||
);
|
||||
name = PickerSamplePad;
|
||||
productName = PickerSamplePad;
|
||||
productReference = 1D6058910D05DD3D006BFB54 /* PickerSamplePad.app */;
|
||||
productType = "com.apple.product-type.application";
|
||||
};
|
||||
/* End PBXNativeTarget section */
|
||||
|
||||
/* Begin PBXProject section */
|
||||
29B97313FDCFA39411CA2CEA /* Project object */ = {
|
||||
isa = PBXProject;
|
||||
attributes = {
|
||||
LastUpgradeCheck = 0500;
|
||||
};
|
||||
buildConfigurationList = C01FCF4E08A954540054247B /* Build configuration list for PBXProject "PickerSamplePad" */;
|
||||
compatibilityVersion = "Xcode 3.2";
|
||||
developmentRegion = English;
|
||||
hasScannedForEncodings = 1;
|
||||
knownRegions = (
|
||||
English,
|
||||
Japanese,
|
||||
French,
|
||||
German,
|
||||
);
|
||||
mainGroup = 29B97314FDCFA39411CA2CEA /* CustomTemplate */;
|
||||
projectDirPath = "";
|
||||
projectRoot = "";
|
||||
targets = (
|
||||
1D6058900D05DD3D006BFB54 /* PickerSamplePad */,
|
||||
);
|
||||
};
|
||||
/* End PBXProject section */
|
||||
|
||||
/* Begin PBXResourcesBuildPhase section */
|
||||
1D60588D0D05DD3D006BFB54 /* Resources */ = {
|
||||
isa = PBXResourcesBuildPhase;
|
||||
buildActionMask = 2147483647;
|
||||
files = (
|
||||
28AD733F0D9D9553002E5188 /* MainWindow.xib in Resources */,
|
||||
2899E5220DE3E06400AC0155 /* PickerSamplePadViewController.xib in Resources */,
|
||||
6923F3D113F4725B0051A217 /* InfColorPickerView.xib in Resources */,
|
||||
);
|
||||
runOnlyForDeploymentPostprocessing = 0;
|
||||
};
|
||||
/* End PBXResourcesBuildPhase section */
|
||||
|
||||
/* Begin PBXSourcesBuildPhase section */
|
||||
1D60588E0D05DD3D006BFB54 /* Sources */ = {
|
||||
isa = PBXSourcesBuildPhase;
|
||||
buildActionMask = 2147483647;
|
||||
files = (
|
||||
1D60589B0D05DD56006BFB54 /* main.m in Sources */,
|
||||
1D3623260D0F684500981E51 /* PickerSamplePadAppDelegate.m in Sources */,
|
||||
28D7ACF80DDB3853001CB0EB /* PickerSamplePadViewController.m in Sources */,
|
||||
6923F3CE13F4725B0051A217 /* InfColorBarPicker.m in Sources */,
|
||||
6923F3CF13F4725B0051A217 /* InfColorIndicatorView.m in Sources */,
|
||||
6923F3D013F4725B0051A217 /* InfColorPickerController.m in Sources */,
|
||||
6923F3D213F4725B0051A217 /* InfColorSquarePicker.m in Sources */,
|
||||
6923F3D313F4725B0051A217 /* InfHSBSupport.m in Sources */,
|
||||
6913A78B1858D7EF00A5C092 /* InfColorPickerNavigationController.m in Sources */,
|
||||
6923F3D413F4725B0051A217 /* InfSourceColorView.m in Sources */,
|
||||
69F47A2D1417FEE800E29503 /* PickerSampleTableViewController.m in Sources */,
|
||||
);
|
||||
runOnlyForDeploymentPostprocessing = 0;
|
||||
};
|
||||
/* End PBXSourcesBuildPhase section */
|
||||
|
||||
/* Begin XCBuildConfiguration section */
|
||||
1D6058940D05DD3E006BFB54 /* Debug */ = {
|
||||
isa = XCBuildConfiguration;
|
||||
buildSettings = {
|
||||
COPY_PHASE_STRIP = NO;
|
||||
GCC_DYNAMIC_NO_PIC = NO;
|
||||
GCC_OPTIMIZATION_LEVEL = 0;
|
||||
GCC_PRECOMPILE_PREFIX_HEADER = YES;
|
||||
GCC_PREFIX_HEADER = PickerSamplePad_Prefix.pch;
|
||||
INFOPLIST_FILE = "PickerSamplePad-Info.plist";
|
||||
PRODUCT_NAME = PickerSamplePad;
|
||||
};
|
||||
name = Debug;
|
||||
};
|
||||
1D6058950D05DD3E006BFB54 /* Release */ = {
|
||||
isa = XCBuildConfiguration;
|
||||
buildSettings = {
|
||||
COPY_PHASE_STRIP = YES;
|
||||
GCC_PRECOMPILE_PREFIX_HEADER = YES;
|
||||
GCC_PREFIX_HEADER = PickerSamplePad_Prefix.pch;
|
||||
INFOPLIST_FILE = "PickerSamplePad-Info.plist";
|
||||
PRODUCT_NAME = PickerSamplePad;
|
||||
VALIDATE_PRODUCT = YES;
|
||||
};
|
||||
name = Release;
|
||||
};
|
||||
C01FCF4F08A954540054247B /* Debug */ = {
|
||||
isa = XCBuildConfiguration;
|
||||
buildSettings = {
|
||||
CLANG_ENABLE_OBJC_ARC = YES;
|
||||
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
|
||||
GCC_C_LANGUAGE_STANDARD = c99;
|
||||
GCC_WARN_ABOUT_RETURN_TYPE = YES;
|
||||
GCC_WARN_UNUSED_VARIABLE = YES;
|
||||
IPHONEOS_DEPLOYMENT_TARGET = 5.0;
|
||||
ONLY_ACTIVE_ARCH = YES;
|
||||
SDKROOT = iphoneos;
|
||||
TARGETED_DEVICE_FAMILY = 2;
|
||||
};
|
||||
name = Debug;
|
||||
};
|
||||
C01FCF5008A954540054247B /* Release */ = {
|
||||
isa = XCBuildConfiguration;
|
||||
buildSettings = {
|
||||
CLANG_ENABLE_OBJC_ARC = YES;
|
||||
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
|
||||
GCC_C_LANGUAGE_STANDARD = c99;
|
||||
GCC_WARN_ABOUT_RETURN_TYPE = YES;
|
||||
GCC_WARN_UNUSED_VARIABLE = YES;
|
||||
IPHONEOS_DEPLOYMENT_TARGET = 5.0;
|
||||
OTHER_CFLAGS = "-DNS_BLOCK_ASSERTIONS=1";
|
||||
SDKROOT = iphoneos;
|
||||
TARGETED_DEVICE_FAMILY = 2;
|
||||
};
|
||||
name = Release;
|
||||
};
|
||||
/* End XCBuildConfiguration section */
|
||||
|
||||
/* Begin XCConfigurationList section */
|
||||
1D6058960D05DD3E006BFB54 /* Build configuration list for PBXNativeTarget "PickerSamplePad" */ = {
|
||||
isa = XCConfigurationList;
|
||||
buildConfigurations = (
|
||||
1D6058940D05DD3E006BFB54 /* Debug */,
|
||||
1D6058950D05DD3E006BFB54 /* Release */,
|
||||
);
|
||||
defaultConfigurationIsVisible = 0;
|
||||
defaultConfigurationName = Release;
|
||||
};
|
||||
C01FCF4E08A954540054247B /* Build configuration list for PBXProject "PickerSamplePad" */ = {
|
||||
isa = XCConfigurationList;
|
||||
buildConfigurations = (
|
||||
C01FCF4F08A954540054247B /* Debug */,
|
||||
C01FCF5008A954540054247B /* Release */,
|
||||
);
|
||||
defaultConfigurationIsVisible = 0;
|
||||
defaultConfigurationName = Release;
|
||||
};
|
||||
/* End XCConfigurationList section */
|
||||
};
|
||||
rootObject = 29B97313FDCFA39411CA2CEA /* Project object */;
|
||||
}
|
|
@ -0,0 +1,469 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<archive type="com.apple.InterfaceBuilder3.CocoaTouch.iPad.XIB" version="7.10">
|
||||
<data>
|
||||
<int key="IBDocument.SystemTarget">1280</int>
|
||||
<string key="IBDocument.SystemVersion">11B2118</string>
|
||||
<string key="IBDocument.InterfaceBuilderVersion">1934</string>
|
||||
<string key="IBDocument.AppKitVersion">1138.1</string>
|
||||
<string key="IBDocument.HIToolboxVersion">566.00</string>
|
||||
<object class="NSMutableDictionary" key="IBDocument.PluginVersions">
|
||||
<string key="NS.key.0">com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
|
||||
<string key="NS.object.0">931</string>
|
||||
</object>
|
||||
<object class="NSArray" key="IBDocument.IntegratedClassDependencies">
|
||||
<bool key="EncodedWithXMLCoder">YES</bool>
|
||||
<string>IBUIView</string>
|
||||
<string>IBUIBarButtonItem</string>
|
||||
<string>IBProxyObject</string>
|
||||
<string>IBUIToolbar</string>
|
||||
<string>IBUISwitch</string>
|
||||
<string>IBUILabel</string>
|
||||
<string>IBUIButton</string>
|
||||
</object>
|
||||
<object class="NSArray" key="IBDocument.PluginDependencies">
|
||||
<bool key="EncodedWithXMLCoder">YES</bool>
|
||||
<string>com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
|
||||
</object>
|
||||
<object class="NSMutableDictionary" key="IBDocument.Metadata">
|
||||
<string key="NS.key.0">PluginDependencyRecalculationVersion</string>
|
||||
<integer value="1" key="NS.object.0"/>
|
||||
</object>
|
||||
<object class="NSMutableArray" key="IBDocument.RootObjects" id="1000">
|
||||
<bool key="EncodedWithXMLCoder">YES</bool>
|
||||
<object class="IBProxyObject" id="841351856">
|
||||
<string key="IBProxiedObjectIdentifier">IBFilesOwner</string>
|
||||
<string key="targetRuntimeIdentifier">IBIPadFramework</string>
|
||||
</object>
|
||||
<object class="IBProxyObject" id="606714003">
|
||||
<string key="IBProxiedObjectIdentifier">IBFirstResponder</string>
|
||||
<string key="targetRuntimeIdentifier">IBIPadFramework</string>
|
||||
</object>
|
||||
<object class="IBUIView" id="766721923">
|
||||
<reference key="NSNextResponder"/>
|
||||
<int key="NSvFlags">274</int>
|
||||
<object class="NSMutableArray" key="NSSubviews">
|
||||
<bool key="EncodedWithXMLCoder">YES</bool>
|
||||
<object class="IBUIToolbar" id="165235963">
|
||||
<reference key="NSNextResponder" ref="766721923"/>
|
||||
<int key="NSvFlags">290</int>
|
||||
<string key="NSFrameSize">{768, 44}</string>
|
||||
<reference key="NSSuperview" ref="766721923"/>
|
||||
<reference key="NSWindow"/>
|
||||
<reference key="NSNextKeyView" ref="1053883483"/>
|
||||
<bool key="IBUIOpaque">NO</bool>
|
||||
<bool key="IBUIClearsContextBeforeDrawing">NO</bool>
|
||||
<string key="targetRuntimeIdentifier">IBIPadFramework</string>
|
||||
<object class="NSMutableArray" key="IBUIItems">
|
||||
<bool key="EncodedWithXMLCoder">YES</bool>
|
||||
<object class="IBUIBarButtonItem" id="453340071">
|
||||
<bool key="IBUIEnabled">NO</bool>
|
||||
<string key="IBUITitle">iPad Color Picker Sample</string>
|
||||
<string key="targetRuntimeIdentifier">IBIPadFramework</string>
|
||||
<reference key="IBUIToolbar" ref="165235963"/>
|
||||
</object>
|
||||
<object class="IBUIBarButtonItem" id="591189155">
|
||||
<string key="targetRuntimeIdentifier">IBIPadFramework</string>
|
||||
<reference key="IBUIToolbar" ref="165235963"/>
|
||||
<int key="IBUISystemItemIdentifier">5</int>
|
||||
</object>
|
||||
<object class="IBUIBarButtonItem" id="46677701">
|
||||
<string key="IBUITitle">Change Color</string>
|
||||
<string key="targetRuntimeIdentifier">IBIPadFramework</string>
|
||||
<int key="IBUIStyle">1</int>
|
||||
<reference key="IBUIToolbar" ref="165235963"/>
|
||||
</object>
|
||||
</object>
|
||||
</object>
|
||||
<object class="IBUIButton" id="553259703">
|
||||
<reference key="NSNextResponder" ref="766721923"/>
|
||||
<int key="NSvFlags">301</int>
|
||||
<string key="NSFrame">{{201, 464}, {366, 37}}</string>
|
||||
<reference key="NSSuperview" ref="766721923"/>
|
||||
<reference key="NSWindow"/>
|
||||
<reference key="NSNextKeyView" ref="997888825"/>
|
||||
<bool key="IBUIOpaque">NO</bool>
|
||||
<string key="targetRuntimeIdentifier">IBIPadFramework</string>
|
||||
<int key="IBUIContentHorizontalAlignment">0</int>
|
||||
<int key="IBUIContentVerticalAlignment">0</int>
|
||||
<int key="IBUIButtonType">1</int>
|
||||
<string key="IBUINormalTitle">Change Background Color</string>
|
||||
<object class="NSColor" key="IBUIHighlightedTitleColor" id="247661985">
|
||||
<int key="NSColorSpace">3</int>
|
||||
<bytes key="NSWhite">MQA</bytes>
|
||||
</object>
|
||||
<object class="NSColor" key="IBUINormalTitleColor">
|
||||
<int key="NSColorSpace">1</int>
|
||||
<bytes key="NSRGB">MC4xOTYwNzg0MzQ2IDAuMzA5ODAzOTMyOSAwLjUyMTU2ODY1NgA</bytes>
|
||||
</object>
|
||||
<object class="NSColor" key="IBUINormalTitleShadowColor" id="852860027">
|
||||
<int key="NSColorSpace">3</int>
|
||||
<bytes key="NSWhite">MC41AA</bytes>
|
||||
</object>
|
||||
<object class="IBUIFontDescription" key="IBUIFontDescription" id="289322465">
|
||||
<string key="name">Helvetica-Bold</string>
|
||||
<string key="family">Helvetica</string>
|
||||
<int key="traits">2</int>
|
||||
<double key="pointSize">15</double>
|
||||
</object>
|
||||
<object class="NSFont" key="IBUIFont" id="151549533">
|
||||
<string key="NSName">Helvetica-Bold</string>
|
||||
<double key="NSSize">15</double>
|
||||
<int key="NSfFlags">16</int>
|
||||
</object>
|
||||
</object>
|
||||
<object class="IBUIButton" id="997888825">
|
||||
<reference key="NSNextResponder" ref="766721923"/>
|
||||
<int key="NSvFlags">301</int>
|
||||
<string key="NSFrame">{{201, 528}, {366, 37}}</string>
|
||||
<reference key="NSSuperview" ref="766721923"/>
|
||||
<reference key="NSWindow"/>
|
||||
<reference key="NSNextKeyView"/>
|
||||
<bool key="IBUIOpaque">NO</bool>
|
||||
<string key="targetRuntimeIdentifier">IBIPadFramework</string>
|
||||
<int key="IBUIContentHorizontalAlignment">0</int>
|
||||
<int key="IBUIContentVerticalAlignment">0</int>
|
||||
<int key="IBUIButtonType">1</int>
|
||||
<string key="IBUINormalTitle">Select Colors from Table</string>
|
||||
<reference key="IBUIHighlightedTitleColor" ref="247661985"/>
|
||||
<object class="NSColor" key="IBUINormalTitleColor">
|
||||
<int key="NSColorSpace">1</int>
|
||||
<bytes key="NSRGB">MC4xOTYwNzg0MzQ2IDAuMzA5ODAzOTMyOSAwLjUyMTU2ODY1NgA</bytes>
|
||||
</object>
|
||||
<reference key="IBUINormalTitleShadowColor" ref="852860027"/>
|
||||
<reference key="IBUIFontDescription" ref="289322465"/>
|
||||
<reference key="IBUIFont" ref="151549533"/>
|
||||
</object>
|
||||
<object class="IBUIView" id="1053883483">
|
||||
<reference key="NSNextResponder" ref="766721923"/>
|
||||
<int key="NSvFlags">289</int>
|
||||
<object class="NSMutableArray" key="NSSubviews">
|
||||
<bool key="EncodedWithXMLCoder">YES</bool>
|
||||
<object class="IBUISwitch" id="81878444">
|
||||
<reference key="NSNextResponder" ref="1053883483"/>
|
||||
<int key="NSvFlags">292</int>
|
||||
<string key="NSFrame">{{134, 20}, {94, 27}}</string>
|
||||
<reference key="NSSuperview" ref="1053883483"/>
|
||||
<reference key="NSWindow"/>
|
||||
<reference key="NSNextKeyView" ref="553259703"/>
|
||||
<bool key="IBUIOpaque">NO</bool>
|
||||
<string key="targetRuntimeIdentifier">IBIPadFramework</string>
|
||||
<int key="IBUIContentHorizontalAlignment">0</int>
|
||||
<int key="IBUIContentVerticalAlignment">0</int>
|
||||
</object>
|
||||
<object class="IBUILabel" id="833104629">
|
||||
<reference key="NSNextResponder" ref="1053883483"/>
|
||||
<int key="NSvFlags">292</int>
|
||||
<string key="NSFrame">{{20, 23}, {106, 21}}</string>
|
||||
<reference key="NSSuperview" ref="1053883483"/>
|
||||
<reference key="NSWindow"/>
|
||||
<reference key="NSNextKeyView" ref="81878444"/>
|
||||
<bool key="IBUIOpaque">NO</bool>
|
||||
<bool key="IBUIClipsSubviews">YES</bool>
|
||||
<int key="IBUIContentMode">7</int>
|
||||
<bool key="IBUIUserInteractionEnabled">NO</bool>
|
||||
<string key="targetRuntimeIdentifier">IBIPadFramework</string>
|
||||
<string key="IBUIText">Live Updating</string>
|
||||
<object class="NSColor" key="IBUITextColor">
|
||||
<int key="NSColorSpace">1</int>
|
||||
<bytes key="NSRGB">MCAwIDAAA</bytes>
|
||||
</object>
|
||||
<reference key="IBUIHighlightedColor" ref="247661985"/>
|
||||
<int key="IBUIBaselineAdjustment">1</int>
|
||||
<float key="IBUIMinimumFontSize">10</float>
|
||||
<int key="IBUITextAlignment">2</int>
|
||||
<object class="IBUIFontDescription" key="IBUIFontDescription">
|
||||
<int key="type">1</int>
|
||||
<double key="pointSize">17</double>
|
||||
</object>
|
||||
<object class="NSFont" key="IBUIFont">
|
||||
<string key="NSName">Helvetica</string>
|
||||
<double key="NSSize">17</double>
|
||||
<int key="NSfFlags">16</int>
|
||||
</object>
|
||||
</object>
|
||||
</object>
|
||||
<string key="NSFrame">{{473, 44}, {248, 67}}</string>
|
||||
<reference key="NSSuperview" ref="766721923"/>
|
||||
<reference key="NSWindow"/>
|
||||
<reference key="NSNextKeyView" ref="833104629"/>
|
||||
<object class="NSColor" key="IBUIBackgroundColor">
|
||||
<int key="NSColorSpace">3</int>
|
||||
<bytes key="NSWhite">MC44MDEwMjA0MDgyAA</bytes>
|
||||
</object>
|
||||
<string key="targetRuntimeIdentifier">IBIPadFramework</string>
|
||||
</object>
|
||||
</object>
|
||||
<string key="NSFrame">{{0, 20}, {768, 1004}}</string>
|
||||
<reference key="NSSuperview"/>
|
||||
<reference key="NSWindow"/>
|
||||
<reference key="NSNextKeyView" ref="165235963"/>
|
||||
<object class="NSColor" key="IBUIBackgroundColor">
|
||||
<int key="NSColorSpace">3</int>
|
||||
<bytes key="NSWhite">MQA</bytes>
|
||||
<object class="NSColorSpace" key="NSCustomColorSpace">
|
||||
<int key="NSID">2</int>
|
||||
</object>
|
||||
</object>
|
||||
<object class="IBUISimulatedStatusBarMetrics" key="IBUISimulatedStatusBarMetrics">
|
||||
<int key="IBUIStatusBarStyle">2</int>
|
||||
</object>
|
||||
<string key="targetRuntimeIdentifier">IBIPadFramework</string>
|
||||
</object>
|
||||
</object>
|
||||
<object class="IBObjectContainer" key="IBDocument.Objects">
|
||||
<object class="NSMutableArray" key="connectionRecords">
|
||||
<bool key="EncodedWithXMLCoder">YES</bool>
|
||||
<object class="IBConnectionRecord">
|
||||
<object class="IBCocoaTouchOutletConnection" key="connection">
|
||||
<string key="label">view</string>
|
||||
<reference key="source" ref="841351856"/>
|
||||
<reference key="destination" ref="766721923"/>
|
||||
</object>
|
||||
<int key="connectionID">3</int>
|
||||
</object>
|
||||
<object class="IBConnectionRecord">
|
||||
<object class="IBCocoaTouchEventConnection" key="connection">
|
||||
<string key="label">changeColor:</string>
|
||||
<reference key="source" ref="46677701"/>
|
||||
<reference key="destination" ref="841351856"/>
|
||||
</object>
|
||||
<int key="connectionID">10</int>
|
||||
</object>
|
||||
<object class="IBConnectionRecord">
|
||||
<object class="IBCocoaTouchEventConnection" key="connection">
|
||||
<string key="label">changeColor:</string>
|
||||
<reference key="source" ref="553259703"/>
|
||||
<reference key="destination" ref="841351856"/>
|
||||
<int key="IBEventType">7</int>
|
||||
</object>
|
||||
<int key="connectionID">11</int>
|
||||
</object>
|
||||
<object class="IBConnectionRecord">
|
||||
<object class="IBCocoaTouchEventConnection" key="connection">
|
||||
<string key="label">takeUpdateLive:</string>
|
||||
<reference key="source" ref="81878444"/>
|
||||
<reference key="destination" ref="841351856"/>
|
||||
<int key="IBEventType">13</int>
|
||||
</object>
|
||||
<int key="connectionID">16</int>
|
||||
</object>
|
||||
<object class="IBConnectionRecord">
|
||||
<object class="IBCocoaTouchEventConnection" key="connection">
|
||||
<string key="label">showColorTable:</string>
|
||||
<reference key="source" ref="997888825"/>
|
||||
<reference key="destination" ref="841351856"/>
|
||||
<int key="IBEventType">7</int>
|
||||
</object>
|
||||
<int key="connectionID">19</int>
|
||||
</object>
|
||||
</object>
|
||||
<object class="IBMutableOrderedSet" key="objectRecords">
|
||||
<object class="NSArray" key="orderedObjects">
|
||||
<bool key="EncodedWithXMLCoder">YES</bool>
|
||||
<object class="IBObjectRecord">
|
||||
<int key="objectID">0</int>
|
||||
<object class="NSArray" key="object" id="0">
|
||||
<bool key="EncodedWithXMLCoder">YES</bool>
|
||||
</object>
|
||||
<reference key="children" ref="1000"/>
|
||||
<nil key="parent"/>
|
||||
</object>
|
||||
<object class="IBObjectRecord">
|
||||
<int key="objectID">-1</int>
|
||||
<reference key="object" ref="841351856"/>
|
||||
<reference key="parent" ref="0"/>
|
||||
<string key="objectName">File's Owner</string>
|
||||
</object>
|
||||
<object class="IBObjectRecord">
|
||||
<int key="objectID">-2</int>
|
||||
<reference key="object" ref="606714003"/>
|
||||
<reference key="parent" ref="0"/>
|
||||
</object>
|
||||
<object class="IBObjectRecord">
|
||||
<int key="objectID">2</int>
|
||||
<reference key="object" ref="766721923"/>
|
||||
<object class="NSMutableArray" key="children">
|
||||
<bool key="EncodedWithXMLCoder">YES</bool>
|
||||
<reference ref="165235963"/>
|
||||
<reference ref="553259703"/>
|
||||
<reference ref="1053883483"/>
|
||||
<reference ref="997888825"/>
|
||||
</object>
|
||||
<reference key="parent" ref="0"/>
|
||||
</object>
|
||||
<object class="IBObjectRecord">
|
||||
<int key="objectID">4</int>
|
||||
<reference key="object" ref="165235963"/>
|
||||
<object class="NSMutableArray" key="children">
|
||||
<bool key="EncodedWithXMLCoder">YES</bool>
|
||||
<reference ref="46677701"/>
|
||||
<reference ref="591189155"/>
|
||||
<reference ref="453340071"/>
|
||||
</object>
|
||||
<reference key="parent" ref="766721923"/>
|
||||
</object>
|
||||
<object class="IBObjectRecord">
|
||||
<int key="objectID">5</int>
|
||||
<reference key="object" ref="46677701"/>
|
||||
<reference key="parent" ref="165235963"/>
|
||||
</object>
|
||||
<object class="IBObjectRecord">
|
||||
<int key="objectID">6</int>
|
||||
<reference key="object" ref="591189155"/>
|
||||
<reference key="parent" ref="165235963"/>
|
||||
</object>
|
||||
<object class="IBObjectRecord">
|
||||
<int key="objectID">7</int>
|
||||
<reference key="object" ref="553259703"/>
|
||||
<reference key="parent" ref="766721923"/>
|
||||
</object>
|
||||
<object class="IBObjectRecord">
|
||||
<int key="objectID">14</int>
|
||||
<reference key="object" ref="1053883483"/>
|
||||
<object class="NSMutableArray" key="children">
|
||||
<bool key="EncodedWithXMLCoder">YES</bool>
|
||||
<reference ref="81878444"/>
|
||||
<reference ref="833104629"/>
|
||||
</object>
|
||||
<reference key="parent" ref="766721923"/>
|
||||
</object>
|
||||
<object class="IBObjectRecord">
|
||||
<int key="objectID">12</int>
|
||||
<reference key="object" ref="81878444"/>
|
||||
<reference key="parent" ref="1053883483"/>
|
||||
</object>
|
||||
<object class="IBObjectRecord">
|
||||
<int key="objectID">13</int>
|
||||
<reference key="object" ref="833104629"/>
|
||||
<reference key="parent" ref="1053883483"/>
|
||||
</object>
|
||||
<object class="IBObjectRecord">
|
||||
<int key="objectID">15</int>
|
||||
<reference key="object" ref="453340071"/>
|
||||
<reference key="parent" ref="165235963"/>
|
||||
</object>
|
||||
<object class="IBObjectRecord">
|
||||
<int key="objectID">17</int>
|
||||
<reference key="object" ref="997888825"/>
|
||||
<reference key="parent" ref="766721923"/>
|
||||
</object>
|
||||
</object>
|
||||
</object>
|
||||
<object class="NSMutableDictionary" key="flattenedProperties">
|
||||
<bool key="EncodedWithXMLCoder">YES</bool>
|
||||
<object class="NSArray" key="dict.sortedKeys">
|
||||
<bool key="EncodedWithXMLCoder">YES</bool>
|
||||
<string>-1.CustomClassName</string>
|
||||
<string>-1.IBPluginDependency</string>
|
||||
<string>-2.CustomClassName</string>
|
||||
<string>-2.IBPluginDependency</string>
|
||||
<string>12.IBPluginDependency</string>
|
||||
<string>13.IBPluginDependency</string>
|
||||
<string>14.IBPluginDependency</string>
|
||||
<string>15.IBPluginDependency</string>
|
||||
<string>17.IBPluginDependency</string>
|
||||
<string>2.IBPluginDependency</string>
|
||||
<string>4.IBPluginDependency</string>
|
||||
<string>5.IBPluginDependency</string>
|
||||
<string>6.IBPluginDependency</string>
|
||||
<string>7.IBPluginDependency</string>
|
||||
</object>
|
||||
<object class="NSMutableArray" key="dict.values">
|
||||
<bool key="EncodedWithXMLCoder">YES</bool>
|
||||
<string>PickerSamplePadViewController</string>
|
||||
<string>com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
|
||||
<string>UIResponder</string>
|
||||
<string>com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
|
||||
<string>com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
|
||||
<string>com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
|
||||
<string>com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
|
||||
<string>com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
|
||||
<string>com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
|
||||
<string>com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
|
||||
<string>com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
|
||||
<string>com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
|
||||
<string>com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
|
||||
<string>com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
|
||||
</object>
|
||||
</object>
|
||||
<object class="NSMutableDictionary" key="unlocalizedProperties">
|
||||
<bool key="EncodedWithXMLCoder">YES</bool>
|
||||
<reference key="dict.sortedKeys" ref="0"/>
|
||||
<reference key="dict.values" ref="0"/>
|
||||
</object>
|
||||
<nil key="activeLocalization"/>
|
||||
<object class="NSMutableDictionary" key="localizations">
|
||||
<bool key="EncodedWithXMLCoder">YES</bool>
|
||||
<reference key="dict.sortedKeys" ref="0"/>
|
||||
<reference key="dict.values" ref="0"/>
|
||||
</object>
|
||||
<nil key="sourceID"/>
|
||||
<int key="maxID">19</int>
|
||||
</object>
|
||||
<object class="IBClassDescriber" key="IBDocument.Classes">
|
||||
<object class="NSMutableArray" key="referencedPartialClassDescriptions">
|
||||
<bool key="EncodedWithXMLCoder">YES</bool>
|
||||
<object class="IBPartialClassDescription">
|
||||
<string key="className">PickerSamplePadViewController</string>
|
||||
<string key="superclassName">UIViewController</string>
|
||||
<object class="NSMutableDictionary" key="actions">
|
||||
<bool key="EncodedWithXMLCoder">YES</bool>
|
||||
<object class="NSArray" key="dict.sortedKeys">
|
||||
<bool key="EncodedWithXMLCoder">YES</bool>
|
||||
<string>changeColor:</string>
|
||||
<string>showColorTable:</string>
|
||||
<string>takeUpdateLive:</string>
|
||||
</object>
|
||||
<object class="NSMutableArray" key="dict.values">
|
||||
<bool key="EncodedWithXMLCoder">YES</bool>
|
||||
<string>id</string>
|
||||
<string>id</string>
|
||||
<string>id</string>
|
||||
</object>
|
||||
</object>
|
||||
<object class="NSMutableDictionary" key="actionInfosByName">
|
||||
<bool key="EncodedWithXMLCoder">YES</bool>
|
||||
<object class="NSArray" key="dict.sortedKeys">
|
||||
<bool key="EncodedWithXMLCoder">YES</bool>
|
||||
<string>changeColor:</string>
|
||||
<string>showColorTable:</string>
|
||||
<string>takeUpdateLive:</string>
|
||||
</object>
|
||||
<object class="NSMutableArray" key="dict.values">
|
||||
<bool key="EncodedWithXMLCoder">YES</bool>
|
||||
<object class="IBActionInfo">
|
||||
<string key="name">changeColor:</string>
|
||||
<string key="candidateClassName">id</string>
|
||||
</object>
|
||||
<object class="IBActionInfo">
|
||||
<string key="name">showColorTable:</string>
|
||||
<string key="candidateClassName">id</string>
|
||||
</object>
|
||||
<object class="IBActionInfo">
|
||||
<string key="name">takeUpdateLive:</string>
|
||||
<string key="candidateClassName">id</string>
|
||||
</object>
|
||||
</object>
|
||||
</object>
|
||||
<object class="IBClassDescriptionSource" key="sourceIdentifier">
|
||||
<string key="majorKey">IBProjectSource</string>
|
||||
<string key="minorKey">./Classes/PickerSamplePadViewController.h</string>
|
||||
</object>
|
||||
</object>
|
||||
</object>
|
||||
</object>
|
||||
<int key="IBDocument.localizationMode">0</int>
|
||||
<string key="IBDocument.TargetRuntimeIdentifier">IBIPadFramework</string>
|
||||
<object class="NSMutableDictionary" key="IBDocument.PluginDeclaredDependencyDefaults">
|
||||
<string key="NS.key.0">com.apple.InterfaceBuilder.CocoaTouchPlugin.iPhoneOS</string>
|
||||
<real value="1280" key="NS.object.0"/>
|
||||
</object>
|
||||
<object class="NSMutableDictionary" key="IBDocument.PluginDeclaredDevelopmentDependencies">
|
||||
<string key="NS.key.0">com.apple.InterfaceBuilder.CocoaTouchPlugin.InterfaceBuilder3</string>
|
||||
<integer value="3100" key="NS.object.0"/>
|
||||
</object>
|
||||
<bool key="IBDocument.PluginDeclaredDependenciesTrackSystemTargetVersion">YES</bool>
|
||||
<int key="IBDocument.defaultPropertyAccessControl">3</int>
|
||||
<string key="IBCocoaTouchPluginVersion">931</string>
|
||||
</data>
|
||||
</archive>
|
|
@ -0,0 +1,8 @@
|
|||
//
|
||||
// Prefix header for all source files of the 'PickerSamplePad' target in the 'PickerSamplePad' project
|
||||
//
|
||||
|
||||
#ifdef __OBJC__
|
||||
#import <Foundation/Foundation.h>
|
||||
#import <UIKit/UIKit.h>
|
||||
#endif
|
|
@ -0,0 +1,25 @@
|
|||
//==============================================================================
|
||||
//
|
||||
// main.m
|
||||
// PickerSamplePad
|
||||
//
|
||||
// Created by Troy Gaul on 8/17/10.
|
||||
//
|
||||
// Copyright (c) 2011-2013 InfinitApps LLC: http://infinitapps.com
|
||||
// Some rights reserved: http://opensource.org/licenses/MIT
|
||||
//
|
||||
//==============================================================================
|
||||
|
||||
#import <UIKit/UIKit.h>
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
int main(int argc, char* argv[])
|
||||
{
|
||||
@autoreleasepool {
|
||||
int retVal = UIApplicationMain(argc, argv, nil, nil);
|
||||
return retVal;
|
||||
}
|
||||
}
|
||||
|
||||
//------------------------------------------------------------------------------
|
|
@ -0,0 +1,26 @@
|
|||
//==============================================================================
|
||||
//
|
||||
// PickerSamplePhoneAppDelegate.h
|
||||
// PickerSamplePhone
|
||||
//
|
||||
// Created by Troy Gaul on 8/12/10.
|
||||
//
|
||||
// Copyright (c) 2011-2013 InfinitApps LLC: http://infinitapps.com
|
||||
// Some rights reserved: http://opensource.org/licenses/MIT
|
||||
//
|
||||
//==============================================================================
|
||||
|
||||
#import <UIKit/UIKit.h>
|
||||
|
||||
@class PickerSamplePhoneViewController;
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
@interface PickerSamplePhoneAppDelegate : NSObject <UIApplicationDelegate>
|
||||
|
||||
@property (nonatomic) IBOutlet UIWindow* window;
|
||||
@property (nonatomic) IBOutlet PickerSamplePhoneViewController* viewController;
|
||||
|
||||
@end
|
||||
|
||||
//------------------------------------------------------------------------------
|
|
@ -0,0 +1,44 @@
|
|||
//==============================================================================
|
||||
//
|
||||
// PickerSamplePhoneAppDelegate.m
|
||||
// PickerSamplePhone
|
||||
//
|
||||
// Created by Troy Gaul on 8/12/10.
|
||||
//
|
||||
// Copyright (c) 2011-2013 InfinitApps LLC: http://infinitapps.com
|
||||
// Some rights reserved: http://opensource.org/licenses/MIT
|
||||
//
|
||||
//==============================================================================
|
||||
|
||||
#import "PickerSamplePhoneAppDelegate.h"
|
||||
|
||||
#import "PickerSamplePhoneViewController.h"
|
||||
|
||||
//==============================================================================
|
||||
|
||||
@implementation PickerSamplePhoneAppDelegate
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
@synthesize window;
|
||||
@synthesize viewController;
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
- (BOOL) application: (UIApplication*) application
|
||||
didFinishLaunchingWithOptions: (NSDictionary*) launchOptions
|
||||
{
|
||||
[window setRootViewController: viewController];
|
||||
[window makeKeyAndVisible];
|
||||
|
||||
return YES;
|
||||
}
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
@end
|
||||
|
||||
//==============================================================================
|
|
@ -0,0 +1,25 @@
|
|||
//==============================================================================
|
||||
//
|
||||
// PickerSamplePhoneViewController.h
|
||||
// PickerSamplePhone
|
||||
//
|
||||
// Created by Troy Gaul on 8/12/10.
|
||||
//
|
||||
// Copyright (c) 2011-2013 InfinitApps LLC: http://infinitapps.com
|
||||
// Some rights reserved: http://opensource.org/licenses/MIT
|
||||
//
|
||||
//==============================================================================
|
||||
|
||||
#import <UIKit/UIKit.h>
|
||||
|
||||
#import "InfColorPickerController.h"
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
@interface PickerSamplePhoneViewController : UIViewController <InfColorPickerControllerDelegate>
|
||||
|
||||
- (IBAction) changeBackgroundColor;
|
||||
|
||||
@end
|
||||
|
||||
//------------------------------------------------------------------------------
|
|
@ -0,0 +1,46 @@
|
|||
//==============================================================================
|
||||
//
|
||||
// PickerSamplePhoneViewController.m
|
||||
// PickerSamplePhone
|
||||
//
|
||||
// Created by Troy Gaul on 8/12/10.
|
||||
//
|
||||
// Copyright (c) 2011-2013 InfinitApps LLC: http://infinitapps.com
|
||||
// Some rights reserved: http://opensource.org/licenses/MIT
|
||||
//
|
||||
//==============================================================================
|
||||
|
||||
#import "PickerSamplePhoneViewController.h"
|
||||
|
||||
#import "InfColorPicker.h"
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
@implementation PickerSamplePhoneViewController
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
- (IBAction) changeBackgroundColor
|
||||
{
|
||||
InfColorPickerController* picker = [InfColorPickerController colorPickerViewController];
|
||||
|
||||
picker.sourceColor = self.view.backgroundColor;
|
||||
picker.delegate = self;
|
||||
|
||||
[picker presentModallyOverViewController: self];
|
||||
}
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
- (void) colorPickerControllerDidFinish: (InfColorPickerController*) picker
|
||||
{
|
||||
self.view.backgroundColor = picker.resultColor;
|
||||
|
||||
[self dismissModalViewControllerAnimated: YES];
|
||||
}
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
@end
|
||||
|
||||
//------------------------------------------------------------------------------
|
|
@ -0,0 +1,444 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<archive type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="7.10">
|
||||
<data>
|
||||
<int key="IBDocument.SystemTarget">1024</int>
|
||||
<string key="IBDocument.SystemVersion">10D571</string>
|
||||
<string key="IBDocument.InterfaceBuilderVersion">786</string>
|
||||
<string key="IBDocument.AppKitVersion">1038.29</string>
|
||||
<string key="IBDocument.HIToolboxVersion">460.00</string>
|
||||
<object class="NSMutableDictionary" key="IBDocument.PluginVersions">
|
||||
<string key="NS.key.0">com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
|
||||
<string key="NS.object.0">112</string>
|
||||
</object>
|
||||
<object class="NSMutableArray" key="IBDocument.EditedObjectIDs">
|
||||
<bool key="EncodedWithXMLCoder">YES</bool>
|
||||
<integer value="10"/>
|
||||
</object>
|
||||
<object class="NSArray" key="IBDocument.PluginDependencies">
|
||||
<bool key="EncodedWithXMLCoder">YES</bool>
|
||||
<string>com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
|
||||
</object>
|
||||
<object class="NSMutableDictionary" key="IBDocument.Metadata">
|
||||
<bool key="EncodedWithXMLCoder">YES</bool>
|
||||
<object class="NSArray" key="dict.sortedKeys" id="0">
|
||||
<bool key="EncodedWithXMLCoder">YES</bool>
|
||||
</object>
|
||||
<object class="NSMutableArray" key="dict.values">
|
||||
<bool key="EncodedWithXMLCoder">YES</bool>
|
||||
</object>
|
||||
</object>
|
||||
<object class="NSMutableArray" key="IBDocument.RootObjects" id="1000">
|
||||
<bool key="EncodedWithXMLCoder">YES</bool>
|
||||
<object class="IBProxyObject" id="841351856">
|
||||
<string key="IBProxiedObjectIdentifier">IBFilesOwner</string>
|
||||
<string key="targetRuntimeIdentifier">IBCocoaTouchFramework</string>
|
||||
</object>
|
||||
<object class="IBProxyObject" id="427554174">
|
||||
<string key="IBProxiedObjectIdentifier">IBFirstResponder</string>
|
||||
<string key="targetRuntimeIdentifier">IBCocoaTouchFramework</string>
|
||||
</object>
|
||||
<object class="IBUICustomObject" id="664661524">
|
||||
<string key="targetRuntimeIdentifier">IBCocoaTouchFramework</string>
|
||||
</object>
|
||||
<object class="IBUIViewController" id="943309135">
|
||||
<string key="IBUINibName">PickerSamplePhoneViewController</string>
|
||||
<object class="IBUISimulatedStatusBarMetrics" key="IBUISimulatedStatusBarMetrics"/>
|
||||
<object class="IBUISimulatedOrientationMetrics" key="IBUISimulatedOrientationMetrics">
|
||||
<int key="interfaceOrientation">1</int>
|
||||
</object>
|
||||
<string key="targetRuntimeIdentifier">IBCocoaTouchFramework</string>
|
||||
<bool key="IBUIHorizontal">NO</bool>
|
||||
</object>
|
||||
<object class="IBUIWindow" id="117978783">
|
||||
<nil key="NSNextResponder"/>
|
||||
<int key="NSvFlags">292</int>
|
||||
<string key="NSFrameSize">{320, 480}</string>
|
||||
<object class="NSColor" key="IBUIBackgroundColor">
|
||||
<int key="NSColorSpace">1</int>
|
||||
<bytes key="NSRGB">MSAxIDEAA</bytes>
|
||||
</object>
|
||||
<bool key="IBUIOpaque">NO</bool>
|
||||
<bool key="IBUIClearsContextBeforeDrawing">NO</bool>
|
||||
<object class="IBUISimulatedStatusBarMetrics" key="IBUISimulatedStatusBarMetrics"/>
|
||||
<string key="targetRuntimeIdentifier">IBCocoaTouchFramework</string>
|
||||
<bool key="IBUIResizesToFullScreen">YES</bool>
|
||||
</object>
|
||||
</object>
|
||||
<object class="IBObjectContainer" key="IBDocument.Objects">
|
||||
<object class="NSMutableArray" key="connectionRecords">
|
||||
<bool key="EncodedWithXMLCoder">YES</bool>
|
||||
<object class="IBConnectionRecord">
|
||||
<object class="IBCocoaTouchOutletConnection" key="connection">
|
||||
<string key="label">delegate</string>
|
||||
<reference key="source" ref="841351856"/>
|
||||
<reference key="destination" ref="664661524"/>
|
||||
</object>
|
||||
<int key="connectionID">4</int>
|
||||
</object>
|
||||
<object class="IBConnectionRecord">
|
||||
<object class="IBCocoaTouchOutletConnection" key="connection">
|
||||
<string key="label">viewController</string>
|
||||
<reference key="source" ref="664661524"/>
|
||||
<reference key="destination" ref="943309135"/>
|
||||
</object>
|
||||
<int key="connectionID">11</int>
|
||||
</object>
|
||||
<object class="IBConnectionRecord">
|
||||
<object class="IBCocoaTouchOutletConnection" key="connection">
|
||||
<string key="label">window</string>
|
||||
<reference key="source" ref="664661524"/>
|
||||
<reference key="destination" ref="117978783"/>
|
||||
</object>
|
||||
<int key="connectionID">14</int>
|
||||
</object>
|
||||
</object>
|
||||
<object class="IBMutableOrderedSet" key="objectRecords">
|
||||
<object class="NSArray" key="orderedObjects">
|
||||
<bool key="EncodedWithXMLCoder">YES</bool>
|
||||
<object class="IBObjectRecord">
|
||||
<int key="objectID">0</int>
|
||||
<reference key="object" ref="0"/>
|
||||
<reference key="children" ref="1000"/>
|
||||
<nil key="parent"/>
|
||||
</object>
|
||||
<object class="IBObjectRecord">
|
||||
<int key="objectID">-1</int>
|
||||
<reference key="object" ref="841351856"/>
|
||||
<reference key="parent" ref="0"/>
|
||||
<string key="objectName">File's Owner</string>
|
||||
</object>
|
||||
<object class="IBObjectRecord">
|
||||
<int key="objectID">3</int>
|
||||
<reference key="object" ref="664661524"/>
|
||||
<reference key="parent" ref="0"/>
|
||||
<string key="objectName">PickerSamplePhone App Delegate</string>
|
||||
</object>
|
||||
<object class="IBObjectRecord">
|
||||
<int key="objectID">-2</int>
|
||||
<reference key="object" ref="427554174"/>
|
||||
<reference key="parent" ref="0"/>
|
||||
</object>
|
||||
<object class="IBObjectRecord">
|
||||
<int key="objectID">10</int>
|
||||
<reference key="object" ref="943309135"/>
|
||||
<reference key="parent" ref="0"/>
|
||||
</object>
|
||||
<object class="IBObjectRecord">
|
||||
<int key="objectID">12</int>
|
||||
<reference key="object" ref="117978783"/>
|
||||
<reference key="parent" ref="0"/>
|
||||
</object>
|
||||
</object>
|
||||
</object>
|
||||
<object class="NSMutableDictionary" key="flattenedProperties">
|
||||
<bool key="EncodedWithXMLCoder">YES</bool>
|
||||
<object class="NSArray" key="dict.sortedKeys">
|
||||
<bool key="EncodedWithXMLCoder">YES</bool>
|
||||
<string>-1.CustomClassName</string>
|
||||
<string>-2.CustomClassName</string>
|
||||
<string>10.CustomClassName</string>
|
||||
<string>10.IBEditorWindowLastContentRect</string>
|
||||
<string>10.IBPluginDependency</string>
|
||||
<string>12.IBEditorWindowLastContentRect</string>
|
||||
<string>12.IBPluginDependency</string>
|
||||
<string>3.CustomClassName</string>
|
||||
<string>3.IBPluginDependency</string>
|
||||
</object>
|
||||
<object class="NSMutableArray" key="dict.values">
|
||||
<bool key="EncodedWithXMLCoder">YES</bool>
|
||||
<string>UIApplication</string>
|
||||
<string>UIResponder</string>
|
||||
<string>PickerSamplePhoneViewController</string>
|
||||
<string>{{234, 376}, {320, 480}}</string>
|
||||
<string>com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
|
||||
<string>{{525, 346}, {320, 480}}</string>
|
||||
<string>com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
|
||||
<string>PickerSamplePhoneAppDelegate</string>
|
||||
<string>com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
|
||||
</object>
|
||||
</object>
|
||||
<object class="NSMutableDictionary" key="unlocalizedProperties">
|
||||
<bool key="EncodedWithXMLCoder">YES</bool>
|
||||
<reference key="dict.sortedKeys" ref="0"/>
|
||||
<object class="NSMutableArray" key="dict.values">
|
||||
<bool key="EncodedWithXMLCoder">YES</bool>
|
||||
</object>
|
||||
</object>
|
||||
<nil key="activeLocalization"/>
|
||||
<object class="NSMutableDictionary" key="localizations">
|
||||
<bool key="EncodedWithXMLCoder">YES</bool>
|
||||
<reference key="dict.sortedKeys" ref="0"/>
|
||||
<object class="NSMutableArray" key="dict.values">
|
||||
<bool key="EncodedWithXMLCoder">YES</bool>
|
||||
</object>
|
||||
</object>
|
||||
<nil key="sourceID"/>
|
||||
<int key="maxID">15</int>
|
||||
</object>
|
||||
<object class="IBClassDescriber" key="IBDocument.Classes">
|
||||
<object class="NSMutableArray" key="referencedPartialClassDescriptions">
|
||||
<bool key="EncodedWithXMLCoder">YES</bool>
|
||||
<object class="IBPartialClassDescription">
|
||||
<string key="className">UIWindow</string>
|
||||
<string key="superclassName">UIView</string>
|
||||
<object class="IBClassDescriptionSource" key="sourceIdentifier">
|
||||
<string key="majorKey">IBUserSource</string>
|
||||
<string key="minorKey"/>
|
||||
</object>
|
||||
</object>
|
||||
<object class="IBPartialClassDescription">
|
||||
<string key="className">PickerSamplePhoneAppDelegate</string>
|
||||
<string key="superclassName">NSObject</string>
|
||||
<object class="NSMutableDictionary" key="outlets">
|
||||
<bool key="EncodedWithXMLCoder">YES</bool>
|
||||
<object class="NSArray" key="dict.sortedKeys">
|
||||
<bool key="EncodedWithXMLCoder">YES</bool>
|
||||
<string>viewController</string>
|
||||
<string>window</string>
|
||||
</object>
|
||||
<object class="NSMutableArray" key="dict.values">
|
||||
<bool key="EncodedWithXMLCoder">YES</bool>
|
||||
<string>PickerSamplePhoneViewController</string>
|
||||
<string>UIWindow</string>
|
||||
</object>
|
||||
</object>
|
||||
<object class="NSMutableDictionary" key="toOneOutletInfosByName">
|
||||
<bool key="EncodedWithXMLCoder">YES</bool>
|
||||
<object class="NSArray" key="dict.sortedKeys">
|
||||
<bool key="EncodedWithXMLCoder">YES</bool>
|
||||
<string>viewController</string>
|
||||
<string>window</string>
|
||||
</object>
|
||||
<object class="NSMutableArray" key="dict.values">
|
||||
<bool key="EncodedWithXMLCoder">YES</bool>
|
||||
<object class="IBToOneOutletInfo">
|
||||
<string key="name">viewController</string>
|
||||
<string key="candidateClassName">PickerSamplePhoneViewController</string>
|
||||
</object>
|
||||
<object class="IBToOneOutletInfo">
|
||||
<string key="name">window</string>
|
||||
<string key="candidateClassName">UIWindow</string>
|
||||
</object>
|
||||
</object>
|
||||
</object>
|
||||
<object class="IBClassDescriptionSource" key="sourceIdentifier">
|
||||
<string key="majorKey">IBProjectSource</string>
|
||||
<string key="minorKey">Classes/PickerSamplePhoneAppDelegate.h</string>
|
||||
</object>
|
||||
</object>
|
||||
<object class="IBPartialClassDescription">
|
||||
<string key="className">PickerSamplePhoneAppDelegate</string>
|
||||
<string key="superclassName">NSObject</string>
|
||||
<object class="IBClassDescriptionSource" key="sourceIdentifier">
|
||||
<string key="majorKey">IBUserSource</string>
|
||||
<string key="minorKey"/>
|
||||
</object>
|
||||
</object>
|
||||
<object class="IBPartialClassDescription">
|
||||
<string key="className">PickerSamplePhoneViewController</string>
|
||||
<string key="superclassName">UIViewController</string>
|
||||
<object class="IBClassDescriptionSource" key="sourceIdentifier">
|
||||
<string key="majorKey">IBProjectSource</string>
|
||||
<string key="minorKey">Classes/PickerSamplePhoneViewController.h</string>
|
||||
</object>
|
||||
</object>
|
||||
</object>
|
||||
<object class="NSMutableArray" key="referencedPartialClassDescriptionsV3.2+">
|
||||
<bool key="EncodedWithXMLCoder">YES</bool>
|
||||
<object class="IBPartialClassDescription">
|
||||
<string key="className">NSObject</string>
|
||||
<object class="IBClassDescriptionSource" key="sourceIdentifier">
|
||||
<string key="majorKey">IBFrameworkSource</string>
|
||||
<string key="minorKey">Foundation.framework/Headers/NSError.h</string>
|
||||
</object>
|
||||
</object>
|
||||
<object class="IBPartialClassDescription">
|
||||
<string key="className">NSObject</string>
|
||||
<object class="IBClassDescriptionSource" key="sourceIdentifier">
|
||||
<string key="majorKey">IBFrameworkSource</string>
|
||||
<string key="minorKey">Foundation.framework/Headers/NSFileManager.h</string>
|
||||
</object>
|
||||
</object>
|
||||
<object class="IBPartialClassDescription">
|
||||
<string key="className">NSObject</string>
|
||||
<object class="IBClassDescriptionSource" key="sourceIdentifier">
|
||||
<string key="majorKey">IBFrameworkSource</string>
|
||||
<string key="minorKey">Foundation.framework/Headers/NSKeyValueCoding.h</string>
|
||||
</object>
|
||||
</object>
|
||||
<object class="IBPartialClassDescription">
|
||||
<string key="className">NSObject</string>
|
||||
<object class="IBClassDescriptionSource" key="sourceIdentifier">
|
||||
<string key="majorKey">IBFrameworkSource</string>
|
||||
<string key="minorKey">Foundation.framework/Headers/NSKeyValueObserving.h</string>
|
||||
</object>
|
||||
</object>
|
||||
<object class="IBPartialClassDescription">
|
||||
<string key="className">NSObject</string>
|
||||
<object class="IBClassDescriptionSource" key="sourceIdentifier">
|
||||
<string key="majorKey">IBFrameworkSource</string>
|
||||
<string key="minorKey">Foundation.framework/Headers/NSKeyedArchiver.h</string>
|
||||
</object>
|
||||
</object>
|
||||
<object class="IBPartialClassDescription">
|
||||
<string key="className">NSObject</string>
|
||||
<object class="IBClassDescriptionSource" key="sourceIdentifier">
|
||||
<string key="majorKey">IBFrameworkSource</string>
|
||||
<string key="minorKey">Foundation.framework/Headers/NSObject.h</string>
|
||||
</object>
|
||||
</object>
|
||||
<object class="IBPartialClassDescription">
|
||||
<string key="className">NSObject</string>
|
||||
<object class="IBClassDescriptionSource" key="sourceIdentifier">
|
||||
<string key="majorKey">IBFrameworkSource</string>
|
||||
<string key="minorKey">Foundation.framework/Headers/NSRunLoop.h</string>
|
||||
</object>
|
||||
</object>
|
||||
<object class="IBPartialClassDescription">
|
||||
<string key="className">NSObject</string>
|
||||
<object class="IBClassDescriptionSource" key="sourceIdentifier">
|
||||
<string key="majorKey">IBFrameworkSource</string>
|
||||
<string key="minorKey">Foundation.framework/Headers/NSThread.h</string>
|
||||
</object>
|
||||
</object>
|
||||
<object class="IBPartialClassDescription">
|
||||
<string key="className">NSObject</string>
|
||||
<object class="IBClassDescriptionSource" key="sourceIdentifier">
|
||||
<string key="majorKey">IBFrameworkSource</string>
|
||||
<string key="minorKey">Foundation.framework/Headers/NSURL.h</string>
|
||||
</object>
|
||||
</object>
|
||||
<object class="IBPartialClassDescription">
|
||||
<string key="className">NSObject</string>
|
||||
<object class="IBClassDescriptionSource" key="sourceIdentifier">
|
||||
<string key="majorKey">IBFrameworkSource</string>
|
||||
<string key="minorKey">Foundation.framework/Headers/NSURLConnection.h</string>
|
||||
</object>
|
||||
</object>
|
||||
<object class="IBPartialClassDescription">
|
||||
<string key="className">NSObject</string>
|
||||
<object class="IBClassDescriptionSource" key="sourceIdentifier">
|
||||
<string key="majorKey">IBFrameworkSource</string>
|
||||
<string key="minorKey">UIKit.framework/Headers/UIAccessibility.h</string>
|
||||
</object>
|
||||
</object>
|
||||
<object class="IBPartialClassDescription">
|
||||
<string key="className">NSObject</string>
|
||||
<object class="IBClassDescriptionSource" key="sourceIdentifier">
|
||||
<string key="majorKey">IBFrameworkSource</string>
|
||||
<string key="minorKey">UIKit.framework/Headers/UINibLoading.h</string>
|
||||
</object>
|
||||
</object>
|
||||
<object class="IBPartialClassDescription">
|
||||
<string key="className">NSObject</string>
|
||||
<object class="IBClassDescriptionSource" key="sourceIdentifier" id="356479594">
|
||||
<string key="majorKey">IBFrameworkSource</string>
|
||||
<string key="minorKey">UIKit.framework/Headers/UIResponder.h</string>
|
||||
</object>
|
||||
</object>
|
||||
<object class="IBPartialClassDescription">
|
||||
<string key="className">UIApplication</string>
|
||||
<string key="superclassName">UIResponder</string>
|
||||
<object class="IBClassDescriptionSource" key="sourceIdentifier">
|
||||
<string key="majorKey">IBFrameworkSource</string>
|
||||
<string key="minorKey">UIKit.framework/Headers/UIApplication.h</string>
|
||||
</object>
|
||||
</object>
|
||||
<object class="IBPartialClassDescription">
|
||||
<string key="className">UIResponder</string>
|
||||
<string key="superclassName">NSObject</string>
|
||||
<reference key="sourceIdentifier" ref="356479594"/>
|
||||
</object>
|
||||
<object class="IBPartialClassDescription">
|
||||
<string key="className">UISearchBar</string>
|
||||
<string key="superclassName">UIView</string>
|
||||
<object class="IBClassDescriptionSource" key="sourceIdentifier">
|
||||
<string key="majorKey">IBFrameworkSource</string>
|
||||
<string key="minorKey">UIKit.framework/Headers/UISearchBar.h</string>
|
||||
</object>
|
||||
</object>
|
||||
<object class="IBPartialClassDescription">
|
||||
<string key="className">UISearchDisplayController</string>
|
||||
<string key="superclassName">NSObject</string>
|
||||
<object class="IBClassDescriptionSource" key="sourceIdentifier">
|
||||
<string key="majorKey">IBFrameworkSource</string>
|
||||
<string key="minorKey">UIKit.framework/Headers/UISearchDisplayController.h</string>
|
||||
</object>
|
||||
</object>
|
||||
<object class="IBPartialClassDescription">
|
||||
<string key="className">UIView</string>
|
||||
<object class="IBClassDescriptionSource" key="sourceIdentifier">
|
||||
<string key="majorKey">IBFrameworkSource</string>
|
||||
<string key="minorKey">UIKit.framework/Headers/UITextField.h</string>
|
||||
</object>
|
||||
</object>
|
||||
<object class="IBPartialClassDescription">
|
||||
<string key="className">UIView</string>
|
||||
<string key="superclassName">UIResponder</string>
|
||||
<object class="IBClassDescriptionSource" key="sourceIdentifier">
|
||||
<string key="majorKey">IBFrameworkSource</string>
|
||||
<string key="minorKey">UIKit.framework/Headers/UIView.h</string>
|
||||
</object>
|
||||
</object>
|
||||
<object class="IBPartialClassDescription">
|
||||
<string key="className">UIViewController</string>
|
||||
<object class="IBClassDescriptionSource" key="sourceIdentifier">
|
||||
<string key="majorKey">IBFrameworkSource</string>
|
||||
<string key="minorKey">UIKit.framework/Headers/UINavigationController.h</string>
|
||||
</object>
|
||||
</object>
|
||||
<object class="IBPartialClassDescription">
|
||||
<string key="className">UIViewController</string>
|
||||
<object class="IBClassDescriptionSource" key="sourceIdentifier">
|
||||
<string key="majorKey">IBFrameworkSource</string>
|
||||
<string key="minorKey">UIKit.framework/Headers/UIPopoverController.h</string>
|
||||
</object>
|
||||
</object>
|
||||
<object class="IBPartialClassDescription">
|
||||
<string key="className">UIViewController</string>
|
||||
<object class="IBClassDescriptionSource" key="sourceIdentifier">
|
||||
<string key="majorKey">IBFrameworkSource</string>
|
||||
<string key="minorKey">UIKit.framework/Headers/UISplitViewController.h</string>
|
||||
</object>
|
||||
</object>
|
||||
<object class="IBPartialClassDescription">
|
||||
<string key="className">UIViewController</string>
|
||||
<object class="IBClassDescriptionSource" key="sourceIdentifier">
|
||||
<string key="majorKey">IBFrameworkSource</string>
|
||||
<string key="minorKey">UIKit.framework/Headers/UITabBarController.h</string>
|
||||
</object>
|
||||
</object>
|
||||
<object class="IBPartialClassDescription">
|
||||
<string key="className">UIViewController</string>
|
||||
<string key="superclassName">UIResponder</string>
|
||||
<object class="IBClassDescriptionSource" key="sourceIdentifier">
|
||||
<string key="majorKey">IBFrameworkSource</string>
|
||||
<string key="minorKey">UIKit.framework/Headers/UIViewController.h</string>
|
||||
</object>
|
||||
</object>
|
||||
<object class="IBPartialClassDescription">
|
||||
<string key="className">UIWindow</string>
|
||||
<string key="superclassName">UIView</string>
|
||||
<object class="IBClassDescriptionSource" key="sourceIdentifier">
|
||||
<string key="majorKey">IBFrameworkSource</string>
|
||||
<string key="minorKey">UIKit.framework/Headers/UIWindow.h</string>
|
||||
</object>
|
||||
</object>
|
||||
</object>
|
||||
</object>
|
||||
<int key="IBDocument.localizationMode">0</int>
|
||||
<string key="IBDocument.TargetRuntimeIdentifier">IBCocoaTouchFramework</string>
|
||||
<object class="NSMutableDictionary" key="IBDocument.PluginDeclaredDependencyDefaults">
|
||||
<string key="NS.key.0">com.apple.InterfaceBuilder.CocoaTouchPlugin.iPhoneOS</string>
|
||||
<integer value="1024" key="NS.object.0"/>
|
||||
</object>
|
||||
<object class="NSMutableDictionary" key="IBDocument.PluginDeclaredDevelopmentDependencies">
|
||||
<string key="NS.key.0">com.apple.InterfaceBuilder.CocoaTouchPlugin.InterfaceBuilder3</string>
|
||||
<integer value="3100" key="NS.object.0"/>
|
||||
</object>
|
||||
<bool key="IBDocument.PluginDeclaredDependenciesTrackSystemTargetVersion">YES</bool>
|
||||
<string key="IBDocument.LastKnownRelativeProjectPath">PickerSamplePhone.xcodeproj</string>
|
||||
<int key="IBDocument.defaultPropertyAccessControl">3</int>
|
||||
<string key="IBCocoaTouchPluginVersion">112</string>
|
||||
</data>
|
||||
</archive>
|
|
@ -0,0 +1,30 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||
<plist version="1.0">
|
||||
<dict>
|
||||
<key>CFBundleDevelopmentRegion</key>
|
||||
<string>English</string>
|
||||
<key>CFBundleDisplayName</key>
|
||||
<string>HSB Sample</string>
|
||||
<key>CFBundleExecutable</key>
|
||||
<string>${EXECUTABLE_NAME}</string>
|
||||
<key>CFBundleIconFile</key>
|
||||
<string></string>
|
||||
<key>CFBundleIdentifier</key>
|
||||
<string>com.infinitapps.${PRODUCT_NAME:rfc1034identifier}</string>
|
||||
<key>CFBundleInfoDictionaryVersion</key>
|
||||
<string>6.0</string>
|
||||
<key>CFBundleName</key>
|
||||
<string>${PRODUCT_NAME}</string>
|
||||
<key>CFBundlePackageType</key>
|
||||
<string>APPL</string>
|
||||
<key>CFBundleSignature</key>
|
||||
<string>????</string>
|
||||
<key>CFBundleVersion</key>
|
||||
<string>1.1</string>
|
||||
<key>LSRequiresIPhoneOS</key>
|
||||
<true/>
|
||||
<key>NSMainNibFile</key>
|
||||
<string>MainWindow</string>
|
||||
</dict>
|
||||
</plist>
|
|
@ -0,0 +1,346 @@
|
|||
// !$*UTF8*$!
|
||||
{
|
||||
archiveVersion = 1;
|
||||
classes = {
|
||||
};
|
||||
objectVersion = 46;
|
||||
objects = {
|
||||
|
||||
/* Begin PBXBuildFile section */
|
||||
1D3623260D0F684500981E51 /* PickerSamplePhoneAppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 1D3623250D0F684500981E51 /* PickerSamplePhoneAppDelegate.m */; };
|
||||
1D60589B0D05DD56006BFB54 /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 29B97316FDCFA39411CA2CEA /* main.m */; };
|
||||
1D60589F0D05DD5A006BFB54 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 1D30AB110D05D00D00671497 /* Foundation.framework */; };
|
||||
1DF5F4E00D08C38300B7A737 /* UIKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 1DF5F4DF0D08C38300B7A737 /* UIKit.framework */; };
|
||||
288765A50DF7441C002DB57D /* CoreGraphics.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 288765A40DF7441C002DB57D /* CoreGraphics.framework */; };
|
||||
2899E5220DE3E06400AC0155 /* PickerSamplePhoneViewController.xib in Resources */ = {isa = PBXBuildFile; fileRef = 2899E5210DE3E06400AC0155 /* PickerSamplePhoneViewController.xib */; };
|
||||
28AD733F0D9D9553002E5188 /* MainWindow.xib in Resources */ = {isa = PBXBuildFile; fileRef = 28AD733E0D9D9553002E5188 /* MainWindow.xib */; };
|
||||
28D7ACF80DDB3853001CB0EB /* PickerSamplePhoneViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 28D7ACF70DDB3853001CB0EB /* PickerSamplePhoneViewController.m */; };
|
||||
6913A78E1858D80600A5C092 /* InfColorPickerNavigationController.m in Sources */ = {isa = PBXBuildFile; fileRef = 6913A78D1858D80600A5C092 /* InfColorPickerNavigationController.m */; };
|
||||
6923F3E613F481720051A217 /* InfColorBarPicker.m in Sources */ = {isa = PBXBuildFile; fileRef = 6923F3DA13F481720051A217 /* InfColorBarPicker.m */; };
|
||||
6923F3E713F481720051A217 /* InfColorIndicatorView.m in Sources */ = {isa = PBXBuildFile; fileRef = 6923F3DC13F481720051A217 /* InfColorIndicatorView.m */; };
|
||||
6923F3E813F481720051A217 /* InfColorPickerController.m in Sources */ = {isa = PBXBuildFile; fileRef = 6923F3DE13F481720051A217 /* InfColorPickerController.m */; };
|
||||
6923F3E913F481720051A217 /* InfColorPickerView.xib in Resources */ = {isa = PBXBuildFile; fileRef = 6923F3DF13F481720051A217 /* InfColorPickerView.xib */; };
|
||||
6923F3EA13F481720051A217 /* InfColorSquarePicker.m in Sources */ = {isa = PBXBuildFile; fileRef = 6923F3E113F481720051A217 /* InfColorSquarePicker.m */; };
|
||||
6923F3EB13F481720051A217 /* InfHSBSupport.m in Sources */ = {isa = PBXBuildFile; fileRef = 6923F3E313F481720051A217 /* InfHSBSupport.m */; };
|
||||
6923F3EC13F481720051A217 /* InfSourceColorView.m in Sources */ = {isa = PBXBuildFile; fileRef = 6923F3E513F481720051A217 /* InfSourceColorView.m */; };
|
||||
/* End PBXBuildFile section */
|
||||
|
||||
/* Begin PBXFileReference section */
|
||||
1D30AB110D05D00D00671497 /* Foundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Foundation.framework; path = System/Library/Frameworks/Foundation.framework; sourceTree = SDKROOT; };
|
||||
1D3623240D0F684500981E51 /* PickerSamplePhoneAppDelegate.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; lineEnding = 0; path = PickerSamplePhoneAppDelegate.h; sourceTree = "<group>"; xcLanguageSpecificationIdentifier = xcode.lang.objcpp; };
|
||||
1D3623250D0F684500981E51 /* PickerSamplePhoneAppDelegate.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; lineEnding = 0; path = PickerSamplePhoneAppDelegate.m; sourceTree = "<group>"; xcLanguageSpecificationIdentifier = xcode.lang.objc; };
|
||||
1D6058910D05DD3D006BFB54 /* PickerSamplePhone.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = PickerSamplePhone.app; sourceTree = BUILT_PRODUCTS_DIR; };
|
||||
1DF5F4DF0D08C38300B7A737 /* UIKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = UIKit.framework; path = System/Library/Frameworks/UIKit.framework; sourceTree = SDKROOT; };
|
||||
288765A40DF7441C002DB57D /* CoreGraphics.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreGraphics.framework; path = System/Library/Frameworks/CoreGraphics.framework; sourceTree = SDKROOT; };
|
||||
2899E5210DE3E06400AC0155 /* PickerSamplePhoneViewController.xib */ = {isa = PBXFileReference; lastKnownFileType = file.xib; path = PickerSamplePhoneViewController.xib; sourceTree = "<group>"; };
|
||||
28AD733E0D9D9553002E5188 /* MainWindow.xib */ = {isa = PBXFileReference; lastKnownFileType = file.xib; path = MainWindow.xib; sourceTree = "<group>"; };
|
||||
28D7ACF60DDB3853001CB0EB /* PickerSamplePhoneViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; lineEnding = 0; path = PickerSamplePhoneViewController.h; sourceTree = "<group>"; xcLanguageSpecificationIdentifier = xcode.lang.objcpp; };
|
||||
28D7ACF70DDB3853001CB0EB /* PickerSamplePhoneViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; lineEnding = 0; path = PickerSamplePhoneViewController.m; sourceTree = "<group>"; xcLanguageSpecificationIdentifier = xcode.lang.objc; };
|
||||
29B97316FDCFA39411CA2CEA /* main.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; lineEnding = 0; path = main.m; sourceTree = "<group>"; xcLanguageSpecificationIdentifier = xcode.lang.objc; };
|
||||
6913A78C1858D80600A5C092 /* InfColorPickerNavigationController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = InfColorPickerNavigationController.h; sourceTree = "<group>"; };
|
||||
6913A78D1858D80600A5C092 /* InfColorPickerNavigationController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = InfColorPickerNavigationController.m; sourceTree = "<group>"; };
|
||||
6923F3D913F481720051A217 /* InfColorBarPicker.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; lineEnding = 0; path = InfColorBarPicker.h; sourceTree = "<group>"; };
|
||||
6923F3DA13F481720051A217 /* InfColorBarPicker.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; lineEnding = 0; path = InfColorBarPicker.m; sourceTree = "<group>"; };
|
||||
6923F3DB13F481720051A217 /* InfColorIndicatorView.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; lineEnding = 0; path = InfColorIndicatorView.h; sourceTree = "<group>"; };
|
||||
6923F3DC13F481720051A217 /* InfColorIndicatorView.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; lineEnding = 0; path = InfColorIndicatorView.m; sourceTree = "<group>"; };
|
||||
6923F3DD13F481720051A217 /* InfColorPickerController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; lineEnding = 0; path = InfColorPickerController.h; sourceTree = "<group>"; };
|
||||
6923F3DE13F481720051A217 /* InfColorPickerController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = InfColorPickerController.m; sourceTree = "<group>"; };
|
||||
6923F3DF13F481720051A217 /* InfColorPickerView.xib */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.xib; path = InfColorPickerView.xib; sourceTree = "<group>"; };
|
||||
6923F3E013F481720051A217 /* InfColorSquarePicker.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; lineEnding = 0; path = InfColorSquarePicker.h; sourceTree = "<group>"; };
|
||||
6923F3E113F481720051A217 /* InfColorSquarePicker.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; lineEnding = 0; path = InfColorSquarePicker.m; sourceTree = "<group>"; };
|
||||
6923F3E213F481720051A217 /* InfHSBSupport.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; lineEnding = 0; path = InfHSBSupport.h; sourceTree = "<group>"; };
|
||||
6923F3E313F481720051A217 /* InfHSBSupport.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; lineEnding = 0; path = InfHSBSupport.m; sourceTree = "<group>"; };
|
||||
6923F3E413F481720051A217 /* InfSourceColorView.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; lineEnding = 0; path = InfSourceColorView.h; sourceTree = "<group>"; };
|
||||
6923F3E513F481720051A217 /* InfSourceColorView.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; lineEnding = 0; path = InfSourceColorView.m; sourceTree = "<group>"; };
|
||||
69F47A3114181FB700E29503 /* InfColorPicker.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; lineEnding = 0; path = InfColorPicker.h; sourceTree = "<group>"; };
|
||||
8D1107310486CEB800E47090 /* PickerSamplePhone-Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; path = "PickerSamplePhone-Info.plist"; plistStructureDefinitionIdentifier = "com.apple.xcode.plist.structure-definition.iphone.info-plist"; sourceTree = "<group>"; };
|
||||
/* End PBXFileReference section */
|
||||
|
||||
/* Begin PBXFrameworksBuildPhase section */
|
||||
1D60588F0D05DD3D006BFB54 /* Frameworks */ = {
|
||||
isa = PBXFrameworksBuildPhase;
|
||||
buildActionMask = 2147483647;
|
||||
files = (
|
||||
1D60589F0D05DD5A006BFB54 /* Foundation.framework in Frameworks */,
|
||||
1DF5F4E00D08C38300B7A737 /* UIKit.framework in Frameworks */,
|
||||
288765A50DF7441C002DB57D /* CoreGraphics.framework in Frameworks */,
|
||||
);
|
||||
runOnlyForDeploymentPostprocessing = 0;
|
||||
};
|
||||
/* End PBXFrameworksBuildPhase section */
|
||||
|
||||
/* Begin PBXGroup section */
|
||||
080E96DDFE201D6D7F000001 /* Classes */ = {
|
||||
isa = PBXGroup;
|
||||
children = (
|
||||
1D3623240D0F684500981E51 /* PickerSamplePhoneAppDelegate.h */,
|
||||
1D3623250D0F684500981E51 /* PickerSamplePhoneAppDelegate.m */,
|
||||
28D7ACF60DDB3853001CB0EB /* PickerSamplePhoneViewController.h */,
|
||||
28D7ACF70DDB3853001CB0EB /* PickerSamplePhoneViewController.m */,
|
||||
);
|
||||
path = Classes;
|
||||
sourceTree = "<group>";
|
||||
};
|
||||
19C28FACFE9D520D11CA2CBB /* Products */ = {
|
||||
isa = PBXGroup;
|
||||
children = (
|
||||
1D6058910D05DD3D006BFB54 /* PickerSamplePhone.app */,
|
||||
);
|
||||
name = Products;
|
||||
sourceTree = "<group>";
|
||||
};
|
||||
29B97314FDCFA39411CA2CEA /* CustomTemplate */ = {
|
||||
isa = PBXGroup;
|
||||
children = (
|
||||
080E96DDFE201D6D7F000001 /* Classes */,
|
||||
29B97315FDCFA39411CA2CEA /* Other Sources */,
|
||||
6923F3D813F481720051A217 /* InfColorPicker */,
|
||||
29B97317FDCFA39411CA2CEA /* Resources */,
|
||||
29B97323FDCFA39411CA2CEA /* Frameworks */,
|
||||
19C28FACFE9D520D11CA2CBB /* Products */,
|
||||
);
|
||||
name = CustomTemplate;
|
||||
sourceTree = "<group>";
|
||||
};
|
||||
29B97315FDCFA39411CA2CEA /* Other Sources */ = {
|
||||
isa = PBXGroup;
|
||||
children = (
|
||||
29B97316FDCFA39411CA2CEA /* main.m */,
|
||||
);
|
||||
name = "Other Sources";
|
||||
sourceTree = "<group>";
|
||||
};
|
||||
29B97317FDCFA39411CA2CEA /* Resources */ = {
|
||||
isa = PBXGroup;
|
||||
children = (
|
||||
2899E5210DE3E06400AC0155 /* PickerSamplePhoneViewController.xib */,
|
||||
28AD733E0D9D9553002E5188 /* MainWindow.xib */,
|
||||
8D1107310486CEB800E47090 /* PickerSamplePhone-Info.plist */,
|
||||
);
|
||||
name = Resources;
|
||||
sourceTree = "<group>";
|
||||
};
|
||||
29B97323FDCFA39411CA2CEA /* Frameworks */ = {
|
||||
isa = PBXGroup;
|
||||
children = (
|
||||
1DF5F4DF0D08C38300B7A737 /* UIKit.framework */,
|
||||
1D30AB110D05D00D00671497 /* Foundation.framework */,
|
||||
288765A40DF7441C002DB57D /* CoreGraphics.framework */,
|
||||
);
|
||||
name = Frameworks;
|
||||
sourceTree = "<group>";
|
||||
};
|
||||
6923F3D813F481720051A217 /* InfColorPicker */ = {
|
||||
isa = PBXGroup;
|
||||
children = (
|
||||
6923F3D913F481720051A217 /* InfColorBarPicker.h */,
|
||||
6923F3DA13F481720051A217 /* InfColorBarPicker.m */,
|
||||
6923F3DB13F481720051A217 /* InfColorIndicatorView.h */,
|
||||
6923F3DC13F481720051A217 /* InfColorIndicatorView.m */,
|
||||
69F47A3114181FB700E29503 /* InfColorPicker.h */,
|
||||
6923F3DD13F481720051A217 /* InfColorPickerController.h */,
|
||||
6923F3DE13F481720051A217 /* InfColorPickerController.m */,
|
||||
6913A78C1858D80600A5C092 /* InfColorPickerNavigationController.h */,
|
||||
6913A78D1858D80600A5C092 /* InfColorPickerNavigationController.m */,
|
||||
6923F3DF13F481720051A217 /* InfColorPickerView.xib */,
|
||||
6923F3E013F481720051A217 /* InfColorSquarePicker.h */,
|
||||
6923F3E113F481720051A217 /* InfColorSquarePicker.m */,
|
||||
6923F3E213F481720051A217 /* InfHSBSupport.h */,
|
||||
6923F3E313F481720051A217 /* InfHSBSupport.m */,
|
||||
6923F3E413F481720051A217 /* InfSourceColorView.h */,
|
||||
6923F3E513F481720051A217 /* InfSourceColorView.m */,
|
||||
);
|
||||
name = InfColorPicker;
|
||||
path = ../InfColorPicker;
|
||||
sourceTree = "<group>";
|
||||
};
|
||||
/* End PBXGroup section */
|
||||
|
||||
/* Begin PBXNativeTarget section */
|
||||
1D6058900D05DD3D006BFB54 /* PickerSamplePhone */ = {
|
||||
isa = PBXNativeTarget;
|
||||
buildConfigurationList = 1D6058960D05DD3E006BFB54 /* Build configuration list for PBXNativeTarget "PickerSamplePhone" */;
|
||||
buildPhases = (
|
||||
1D60588D0D05DD3D006BFB54 /* Resources */,
|
||||
1D60588E0D05DD3D006BFB54 /* Sources */,
|
||||
1D60588F0D05DD3D006BFB54 /* Frameworks */,
|
||||
);
|
||||
buildRules = (
|
||||
);
|
||||
dependencies = (
|
||||
);
|
||||
name = PickerSamplePhone;
|
||||
productName = PickerSamplePhone;
|
||||
productReference = 1D6058910D05DD3D006BFB54 /* PickerSamplePhone.app */;
|
||||
productType = "com.apple.product-type.application";
|
||||
};
|
||||
/* End PBXNativeTarget section */
|
||||
|
||||
/* Begin PBXProject section */
|
||||
29B97313FDCFA39411CA2CEA /* Project object */ = {
|
||||
isa = PBXProject;
|
||||
attributes = {
|
||||
LastUpgradeCheck = 0500;
|
||||
};
|
||||
buildConfigurationList = C01FCF4E08A954540054247B /* Build configuration list for PBXProject "PickerSamplePhone" */;
|
||||
compatibilityVersion = "Xcode 3.2";
|
||||
developmentRegion = English;
|
||||
hasScannedForEncodings = 1;
|
||||
knownRegions = (
|
||||
English,
|
||||
Japanese,
|
||||
French,
|
||||
German,
|
||||
);
|
||||
mainGroup = 29B97314FDCFA39411CA2CEA /* CustomTemplate */;
|
||||
projectDirPath = "";
|
||||
projectRoot = "";
|
||||
targets = (
|
||||
1D6058900D05DD3D006BFB54 /* PickerSamplePhone */,
|
||||
);
|
||||
};
|
||||
/* End PBXProject section */
|
||||
|
||||
/* Begin PBXResourcesBuildPhase section */
|
||||
1D60588D0D05DD3D006BFB54 /* Resources */ = {
|
||||
isa = PBXResourcesBuildPhase;
|
||||
buildActionMask = 2147483647;
|
||||
files = (
|
||||
28AD733F0D9D9553002E5188 /* MainWindow.xib in Resources */,
|
||||
2899E5220DE3E06400AC0155 /* PickerSamplePhoneViewController.xib in Resources */,
|
||||
6923F3E913F481720051A217 /* InfColorPickerView.xib in Resources */,
|
||||
);
|
||||
runOnlyForDeploymentPostprocessing = 0;
|
||||
};
|
||||
/* End PBXResourcesBuildPhase section */
|
||||
|
||||
/* Begin PBXSourcesBuildPhase section */
|
||||
1D60588E0D05DD3D006BFB54 /* Sources */ = {
|
||||
isa = PBXSourcesBuildPhase;
|
||||
buildActionMask = 2147483647;
|
||||
files = (
|
||||
1D60589B0D05DD56006BFB54 /* main.m in Sources */,
|
||||
1D3623260D0F684500981E51 /* PickerSamplePhoneAppDelegate.m in Sources */,
|
||||
28D7ACF80DDB3853001CB0EB /* PickerSamplePhoneViewController.m in Sources */,
|
||||
6923F3E613F481720051A217 /* InfColorBarPicker.m in Sources */,
|
||||
6923F3E713F481720051A217 /* InfColorIndicatorView.m in Sources */,
|
||||
6923F3E813F481720051A217 /* InfColorPickerController.m in Sources */,
|
||||
6923F3EA13F481720051A217 /* InfColorSquarePicker.m in Sources */,
|
||||
6913A78E1858D80600A5C092 /* InfColorPickerNavigationController.m in Sources */,
|
||||
6923F3EB13F481720051A217 /* InfHSBSupport.m in Sources */,
|
||||
6923F3EC13F481720051A217 /* InfSourceColorView.m in Sources */,
|
||||
);
|
||||
runOnlyForDeploymentPostprocessing = 0;
|
||||
};
|
||||
/* End PBXSourcesBuildPhase section */
|
||||
|
||||
/* Begin XCBuildConfiguration section */
|
||||
1D6058940D05DD3E006BFB54 /* Debug */ = {
|
||||
isa = XCBuildConfiguration;
|
||||
buildSettings = {
|
||||
ALWAYS_SEARCH_USER_PATHS = NO;
|
||||
CLANG_ENABLE_OBJC_ARC = YES;
|
||||
COPY_PHASE_STRIP = NO;
|
||||
GCC_DYNAMIC_NO_PIC = NO;
|
||||
GCC_OPTIMIZATION_LEVEL = 0;
|
||||
INFOPLIST_FILE = "PickerSamplePhone-Info.plist";
|
||||
PRODUCT_NAME = PickerSamplePhone;
|
||||
};
|
||||
name = Debug;
|
||||
};
|
||||
1D6058950D05DD3E006BFB54 /* Release */ = {
|
||||
isa = XCBuildConfiguration;
|
||||
buildSettings = {
|
||||
ALWAYS_SEARCH_USER_PATHS = NO;
|
||||
CLANG_ENABLE_OBJC_ARC = YES;
|
||||
COPY_PHASE_STRIP = YES;
|
||||
INFOPLIST_FILE = "PickerSamplePhone-Info.plist";
|
||||
PRODUCT_NAME = PickerSamplePhone;
|
||||
VALIDATE_PRODUCT = YES;
|
||||
};
|
||||
name = Release;
|
||||
};
|
||||
C01FCF4F08A954540054247B /* Debug */ = {
|
||||
isa = XCBuildConfiguration;
|
||||
buildSettings = {
|
||||
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
|
||||
GCC_C_LANGUAGE_STANDARD = c99;
|
||||
GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
|
||||
GCC_WARN_ABOUT_MISSING_PROTOTYPES = YES;
|
||||
GCC_WARN_ABOUT_RETURN_TYPE = YES;
|
||||
GCC_WARN_FOUR_CHARACTER_CONSTANTS = NO;
|
||||
GCC_WARN_INITIALIZER_NOT_FULLY_BRACKETED = YES;
|
||||
GCC_WARN_MULTIPLE_DEFINITION_TYPES_FOR_SELECTOR = NO;
|
||||
GCC_WARN_PEDANTIC = NO;
|
||||
GCC_WARN_SHADOW = YES;
|
||||
GCC_WARN_SIGN_COMPARE = YES;
|
||||
GCC_WARN_STRICT_SELECTOR_MATCH = YES;
|
||||
GCC_WARN_UNDECLARED_SELECTOR = YES;
|
||||
GCC_WARN_UNINITIALIZED_AUTOS = NO;
|
||||
GCC_WARN_UNKNOWN_PRAGMAS = YES;
|
||||
GCC_WARN_UNUSED_FUNCTION = YES;
|
||||
GCC_WARN_UNUSED_LABEL = YES;
|
||||
GCC_WARN_UNUSED_PARAMETER = NO;
|
||||
GCC_WARN_UNUSED_VARIABLE = YES;
|
||||
IPHONEOS_DEPLOYMENT_TARGET = 5.0;
|
||||
ONLY_ACTIVE_ARCH = YES;
|
||||
SDKROOT = iphoneos;
|
||||
};
|
||||
name = Debug;
|
||||
};
|
||||
C01FCF5008A954540054247B /* Release */ = {
|
||||
isa = XCBuildConfiguration;
|
||||
buildSettings = {
|
||||
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
|
||||
GCC_AUTO_VECTORIZATION = YES;
|
||||
GCC_C_LANGUAGE_STANDARD = c99;
|
||||
GCC_FAST_MATH = YES;
|
||||
GCC_MODEL_TUNING = "";
|
||||
GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
|
||||
GCC_WARN_ABOUT_MISSING_PROTOTYPES = YES;
|
||||
GCC_WARN_ABOUT_RETURN_TYPE = YES;
|
||||
GCC_WARN_FOUR_CHARACTER_CONSTANTS = NO;
|
||||
GCC_WARN_INITIALIZER_NOT_FULLY_BRACKETED = YES;
|
||||
GCC_WARN_MULTIPLE_DEFINITION_TYPES_FOR_SELECTOR = NO;
|
||||
GCC_WARN_PEDANTIC = NO;
|
||||
GCC_WARN_SHADOW = YES;
|
||||
GCC_WARN_SIGN_COMPARE = YES;
|
||||
GCC_WARN_STRICT_SELECTOR_MATCH = YES;
|
||||
GCC_WARN_UNDECLARED_SELECTOR = YES;
|
||||
GCC_WARN_UNINITIALIZED_AUTOS = NO;
|
||||
GCC_WARN_UNKNOWN_PRAGMAS = YES;
|
||||
GCC_WARN_UNUSED_FUNCTION = YES;
|
||||
GCC_WARN_UNUSED_LABEL = YES;
|
||||
GCC_WARN_UNUSED_PARAMETER = NO;
|
||||
GCC_WARN_UNUSED_VARIABLE = YES;
|
||||
IPHONEOS_DEPLOYMENT_TARGET = 5.0;
|
||||
OTHER_CFLAGS = "-DNS_BLOCK_ASSERTIONS=1";
|
||||
SDKROOT = iphoneos;
|
||||
};
|
||||
name = Release;
|
||||
};
|
||||
/* End XCBuildConfiguration section */
|
||||
|
||||
/* Begin XCConfigurationList section */
|
||||
1D6058960D05DD3E006BFB54 /* Build configuration list for PBXNativeTarget "PickerSamplePhone" */ = {
|
||||
isa = XCConfigurationList;
|
||||
buildConfigurations = (
|
||||
1D6058940D05DD3E006BFB54 /* Debug */,
|
||||
1D6058950D05DD3E006BFB54 /* Release */,
|
||||
);
|
||||
defaultConfigurationIsVisible = 0;
|
||||
defaultConfigurationName = Release;
|
||||
};
|
||||
C01FCF4E08A954540054247B /* Build configuration list for PBXProject "PickerSamplePhone" */ = {
|
||||
isa = XCConfigurationList;
|
||||
buildConfigurations = (
|
||||
C01FCF4F08A954540054247B /* Debug */,
|
||||
C01FCF5008A954540054247B /* Release */,
|
||||
);
|
||||
defaultConfigurationIsVisible = 0;
|
||||
defaultConfigurationName = Release;
|
||||
};
|
||||
/* End XCConfigurationList section */
|
||||
};
|
||||
rootObject = 29B97313FDCFA39411CA2CEA /* Project object */;
|
||||
}
|
|
@ -0,0 +1,408 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<archive type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="7.10">
|
||||
<data>
|
||||
<int key="IBDocument.SystemTarget">1024</int>
|
||||
<string key="IBDocument.SystemVersion">10F569</string>
|
||||
<string key="IBDocument.InterfaceBuilderVersion">804</string>
|
||||
<string key="IBDocument.AppKitVersion">1038.29</string>
|
||||
<string key="IBDocument.HIToolboxVersion">461.00</string>
|
||||
<object class="NSMutableDictionary" key="IBDocument.PluginVersions">
|
||||
<string key="NS.key.0">com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
|
||||
<string key="NS.object.0">123</string>
|
||||
</object>
|
||||
<object class="NSMutableArray" key="IBDocument.EditedObjectIDs">
|
||||
<bool key="EncodedWithXMLCoder">YES</bool>
|
||||
<integer value="6"/>
|
||||
</object>
|
||||
<object class="NSArray" key="IBDocument.PluginDependencies">
|
||||
<bool key="EncodedWithXMLCoder">YES</bool>
|
||||
<string>com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
|
||||
</object>
|
||||
<object class="NSMutableDictionary" key="IBDocument.Metadata">
|
||||
<bool key="EncodedWithXMLCoder">YES</bool>
|
||||
<object class="NSArray" key="dict.sortedKeys" id="0">
|
||||
<bool key="EncodedWithXMLCoder">YES</bool>
|
||||
</object>
|
||||
<object class="NSMutableArray" key="dict.values">
|
||||
<bool key="EncodedWithXMLCoder">YES</bool>
|
||||
</object>
|
||||
</object>
|
||||
<object class="NSMutableArray" key="IBDocument.RootObjects" id="1000">
|
||||
<bool key="EncodedWithXMLCoder">YES</bool>
|
||||
<object class="IBProxyObject" id="372490531">
|
||||
<string key="IBProxiedObjectIdentifier">IBFilesOwner</string>
|
||||
<string key="targetRuntimeIdentifier">IBCocoaTouchFramework</string>
|
||||
</object>
|
||||
<object class="IBProxyObject" id="843779117">
|
||||
<string key="IBProxiedObjectIdentifier">IBFirstResponder</string>
|
||||
<string key="targetRuntimeIdentifier">IBCocoaTouchFramework</string>
|
||||
</object>
|
||||
<object class="IBUIView" id="774585933">
|
||||
<reference key="NSNextResponder"/>
|
||||
<int key="NSvFlags">274</int>
|
||||
<object class="NSMutableArray" key="NSSubviews">
|
||||
<bool key="EncodedWithXMLCoder">YES</bool>
|
||||
<object class="IBUIButton" id="16884590">
|
||||
<reference key="NSNextResponder" ref="774585933"/>
|
||||
<int key="NSvFlags">292</int>
|
||||
<string key="NSFrame">{{20, 192}, {280, 37}}</string>
|
||||
<reference key="NSSuperview" ref="774585933"/>
|
||||
<bool key="IBUIOpaque">NO</bool>
|
||||
<string key="targetRuntimeIdentifier">IBCocoaTouchFramework</string>
|
||||
<int key="IBUIContentHorizontalAlignment">0</int>
|
||||
<int key="IBUIContentVerticalAlignment">0</int>
|
||||
<object class="NSFont" key="IBUIFont">
|
||||
<string key="NSName">Helvetica-Bold</string>
|
||||
<double key="NSSize">15</double>
|
||||
<int key="NSfFlags">16</int>
|
||||
</object>
|
||||
<int key="IBUIButtonType">1</int>
|
||||
<string key="IBUINormalTitle">Change Background Color</string>
|
||||
<object class="NSColor" key="IBUIHighlightedTitleColor">
|
||||
<int key="NSColorSpace">3</int>
|
||||
<bytes key="NSWhite">MQA</bytes>
|
||||
</object>
|
||||
<object class="NSColor" key="IBUINormalTitleColor">
|
||||
<int key="NSColorSpace">1</int>
|
||||
<bytes key="NSRGB">MC4xOTYwNzg0MzQ2IDAuMzA5ODAzOTMyOSAwLjUyMTU2ODY1NgA</bytes>
|
||||
</object>
|
||||
<object class="NSColor" key="IBUINormalTitleShadowColor">
|
||||
<int key="NSColorSpace">3</int>
|
||||
<bytes key="NSWhite">MC41AA</bytes>
|
||||
</object>
|
||||
</object>
|
||||
</object>
|
||||
<string key="NSFrameSize">{320, 460}</string>
|
||||
<reference key="NSSuperview"/>
|
||||
<object class="NSColor" key="IBUIBackgroundColor">
|
||||
<int key="NSColorSpace">3</int>
|
||||
<bytes key="NSWhite">MC43NQA</bytes>
|
||||
<object class="NSColorSpace" key="NSCustomColorSpace">
|
||||
<int key="NSID">2</int>
|
||||
</object>
|
||||
</object>
|
||||
<bool key="IBUIClearsContextBeforeDrawing">NO</bool>
|
||||
<object class="IBUISimulatedStatusBarMetrics" key="IBUISimulatedStatusBarMetrics"/>
|
||||
<string key="targetRuntimeIdentifier">IBCocoaTouchFramework</string>
|
||||
</object>
|
||||
</object>
|
||||
<object class="IBObjectContainer" key="IBDocument.Objects">
|
||||
<object class="NSMutableArray" key="connectionRecords">
|
||||
<bool key="EncodedWithXMLCoder">YES</bool>
|
||||
<object class="IBConnectionRecord">
|
||||
<object class="IBCocoaTouchOutletConnection" key="connection">
|
||||
<string key="label">view</string>
|
||||
<reference key="source" ref="372490531"/>
|
||||
<reference key="destination" ref="774585933"/>
|
||||
</object>
|
||||
<int key="connectionID">7</int>
|
||||
</object>
|
||||
<object class="IBConnectionRecord">
|
||||
<object class="IBCocoaTouchEventConnection" key="connection">
|
||||
<string key="label">changeBackgroundColor</string>
|
||||
<reference key="source" ref="16884590"/>
|
||||
<reference key="destination" ref="372490531"/>
|
||||
<int key="IBEventType">7</int>
|
||||
</object>
|
||||
<int key="connectionID">9</int>
|
||||
</object>
|
||||
</object>
|
||||
<object class="IBMutableOrderedSet" key="objectRecords">
|
||||
<object class="NSArray" key="orderedObjects">
|
||||
<bool key="EncodedWithXMLCoder">YES</bool>
|
||||
<object class="IBObjectRecord">
|
||||
<int key="objectID">0</int>
|
||||
<reference key="object" ref="0"/>
|
||||
<reference key="children" ref="1000"/>
|
||||
<nil key="parent"/>
|
||||
</object>
|
||||
<object class="IBObjectRecord">
|
||||
<int key="objectID">-1</int>
|
||||
<reference key="object" ref="372490531"/>
|
||||
<reference key="parent" ref="0"/>
|
||||
<string key="objectName">File's Owner</string>
|
||||
</object>
|
||||
<object class="IBObjectRecord">
|
||||
<int key="objectID">-2</int>
|
||||
<reference key="object" ref="843779117"/>
|
||||
<reference key="parent" ref="0"/>
|
||||
</object>
|
||||
<object class="IBObjectRecord">
|
||||
<int key="objectID">6</int>
|
||||
<reference key="object" ref="774585933"/>
|
||||
<object class="NSMutableArray" key="children">
|
||||
<bool key="EncodedWithXMLCoder">YES</bool>
|
||||
<reference ref="16884590"/>
|
||||
</object>
|
||||
<reference key="parent" ref="0"/>
|
||||
</object>
|
||||
<object class="IBObjectRecord">
|
||||
<int key="objectID">8</int>
|
||||
<reference key="object" ref="16884590"/>
|
||||
<reference key="parent" ref="774585933"/>
|
||||
</object>
|
||||
</object>
|
||||
</object>
|
||||
<object class="NSMutableDictionary" key="flattenedProperties">
|
||||
<bool key="EncodedWithXMLCoder">YES</bool>
|
||||
<object class="NSArray" key="dict.sortedKeys">
|
||||
<bool key="EncodedWithXMLCoder">YES</bool>
|
||||
<string>-1.CustomClassName</string>
|
||||
<string>-2.CustomClassName</string>
|
||||
<string>6.IBEditorWindowLastContentRect</string>
|
||||
<string>6.IBPluginDependency</string>
|
||||
<string>8.IBPluginDependency</string>
|
||||
<string>8.IBViewBoundsToFrameTransform</string>
|
||||
</object>
|
||||
<object class="NSMutableArray" key="dict.values">
|
||||
<bool key="EncodedWithXMLCoder">YES</bool>
|
||||
<string>PickerSamplePhoneViewController</string>
|
||||
<string>UIResponder</string>
|
||||
<string>{{239, 654}, {320, 480}}</string>
|
||||
<string>com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
|
||||
<string>com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
|
||||
<object class="NSAffineTransform">
|
||||
<bytes key="NSTransformStruct">P4AAAL+AAABBoAAAwlwAAA</bytes>
|
||||
</object>
|
||||
</object>
|
||||
</object>
|
||||
<object class="NSMutableDictionary" key="unlocalizedProperties">
|
||||
<bool key="EncodedWithXMLCoder">YES</bool>
|
||||
<reference key="dict.sortedKeys" ref="0"/>
|
||||
<object class="NSMutableArray" key="dict.values">
|
||||
<bool key="EncodedWithXMLCoder">YES</bool>
|
||||
</object>
|
||||
</object>
|
||||
<nil key="activeLocalization"/>
|
||||
<object class="NSMutableDictionary" key="localizations">
|
||||
<bool key="EncodedWithXMLCoder">YES</bool>
|
||||
<reference key="dict.sortedKeys" ref="0"/>
|
||||
<object class="NSMutableArray" key="dict.values">
|
||||
<bool key="EncodedWithXMLCoder">YES</bool>
|
||||
</object>
|
||||
</object>
|
||||
<nil key="sourceID"/>
|
||||
<int key="maxID">9</int>
|
||||
</object>
|
||||
<object class="IBClassDescriber" key="IBDocument.Classes">
|
||||
<object class="NSMutableArray" key="referencedPartialClassDescriptions">
|
||||
<bool key="EncodedWithXMLCoder">YES</bool>
|
||||
<object class="IBPartialClassDescription">
|
||||
<string key="className">PickerSamplePhoneViewController</string>
|
||||
<string key="superclassName">UIViewController</string>
|
||||
<object class="NSMutableDictionary" key="actions">
|
||||
<string key="NS.key.0">changeBackgroundColor</string>
|
||||
<string key="NS.object.0">id</string>
|
||||
</object>
|
||||
<object class="NSMutableDictionary" key="actionInfosByName">
|
||||
<string key="NS.key.0">changeBackgroundColor</string>
|
||||
<object class="IBActionInfo" key="NS.object.0">
|
||||
<string key="name">changeBackgroundColor</string>
|
||||
<string key="candidateClassName">id</string>
|
||||
</object>
|
||||
</object>
|
||||
<object class="IBClassDescriptionSource" key="sourceIdentifier">
|
||||
<string key="majorKey">IBProjectSource</string>
|
||||
<string key="minorKey">Classes/PickerSamplePhoneViewController.h</string>
|
||||
</object>
|
||||
</object>
|
||||
</object>
|
||||
<object class="NSMutableArray" key="referencedPartialClassDescriptionsV3.2+">
|
||||
<bool key="EncodedWithXMLCoder">YES</bool>
|
||||
<object class="IBPartialClassDescription">
|
||||
<string key="className">NSObject</string>
|
||||
<object class="IBClassDescriptionSource" key="sourceIdentifier">
|
||||
<string key="majorKey">IBFrameworkSource</string>
|
||||
<string key="minorKey">Foundation.framework/Headers/NSError.h</string>
|
||||
</object>
|
||||
</object>
|
||||
<object class="IBPartialClassDescription">
|
||||
<string key="className">NSObject</string>
|
||||
<object class="IBClassDescriptionSource" key="sourceIdentifier">
|
||||
<string key="majorKey">IBFrameworkSource</string>
|
||||
<string key="minorKey">Foundation.framework/Headers/NSFileManager.h</string>
|
||||
</object>
|
||||
</object>
|
||||
<object class="IBPartialClassDescription">
|
||||
<string key="className">NSObject</string>
|
||||
<object class="IBClassDescriptionSource" key="sourceIdentifier">
|
||||
<string key="majorKey">IBFrameworkSource</string>
|
||||
<string key="minorKey">Foundation.framework/Headers/NSKeyValueCoding.h</string>
|
||||
</object>
|
||||
</object>
|
||||
<object class="IBPartialClassDescription">
|
||||
<string key="className">NSObject</string>
|
||||
<object class="IBClassDescriptionSource" key="sourceIdentifier">
|
||||
<string key="majorKey">IBFrameworkSource</string>
|
||||
<string key="minorKey">Foundation.framework/Headers/NSKeyValueObserving.h</string>
|
||||
</object>
|
||||
</object>
|
||||
<object class="IBPartialClassDescription">
|
||||
<string key="className">NSObject</string>
|
||||
<object class="IBClassDescriptionSource" key="sourceIdentifier">
|
||||
<string key="majorKey">IBFrameworkSource</string>
|
||||
<string key="minorKey">Foundation.framework/Headers/NSKeyedArchiver.h</string>
|
||||
</object>
|
||||
</object>
|
||||
<object class="IBPartialClassDescription">
|
||||
<string key="className">NSObject</string>
|
||||
<object class="IBClassDescriptionSource" key="sourceIdentifier">
|
||||
<string key="majorKey">IBFrameworkSource</string>
|
||||
<string key="minorKey">Foundation.framework/Headers/NSObject.h</string>
|
||||
</object>
|
||||
</object>
|
||||
<object class="IBPartialClassDescription">
|
||||
<string key="className">NSObject</string>
|
||||
<object class="IBClassDescriptionSource" key="sourceIdentifier">
|
||||
<string key="majorKey">IBFrameworkSource</string>
|
||||
<string key="minorKey">Foundation.framework/Headers/NSRunLoop.h</string>
|
||||
</object>
|
||||
</object>
|
||||
<object class="IBPartialClassDescription">
|
||||
<string key="className">NSObject</string>
|
||||
<object class="IBClassDescriptionSource" key="sourceIdentifier">
|
||||
<string key="majorKey">IBFrameworkSource</string>
|
||||
<string key="minorKey">Foundation.framework/Headers/NSThread.h</string>
|
||||
</object>
|
||||
</object>
|
||||
<object class="IBPartialClassDescription">
|
||||
<string key="className">NSObject</string>
|
||||
<object class="IBClassDescriptionSource" key="sourceIdentifier">
|
||||
<string key="majorKey">IBFrameworkSource</string>
|
||||
<string key="minorKey">Foundation.framework/Headers/NSURL.h</string>
|
||||
</object>
|
||||
</object>
|
||||
<object class="IBPartialClassDescription">
|
||||
<string key="className">NSObject</string>
|
||||
<object class="IBClassDescriptionSource" key="sourceIdentifier">
|
||||
<string key="majorKey">IBFrameworkSource</string>
|
||||
<string key="minorKey">Foundation.framework/Headers/NSURLConnection.h</string>
|
||||
</object>
|
||||
</object>
|
||||
<object class="IBPartialClassDescription">
|
||||
<string key="className">NSObject</string>
|
||||
<object class="IBClassDescriptionSource" key="sourceIdentifier">
|
||||
<string key="majorKey">IBFrameworkSource</string>
|
||||
<string key="minorKey">UIKit.framework/Headers/UIAccessibility.h</string>
|
||||
</object>
|
||||
</object>
|
||||
<object class="IBPartialClassDescription">
|
||||
<string key="className">NSObject</string>
|
||||
<object class="IBClassDescriptionSource" key="sourceIdentifier">
|
||||
<string key="majorKey">IBFrameworkSource</string>
|
||||
<string key="minorKey">UIKit.framework/Headers/UINibLoading.h</string>
|
||||
</object>
|
||||
</object>
|
||||
<object class="IBPartialClassDescription">
|
||||
<string key="className">NSObject</string>
|
||||
<object class="IBClassDescriptionSource" key="sourceIdentifier" id="483454074">
|
||||
<string key="majorKey">IBFrameworkSource</string>
|
||||
<string key="minorKey">UIKit.framework/Headers/UIResponder.h</string>
|
||||
</object>
|
||||
</object>
|
||||
<object class="IBPartialClassDescription">
|
||||
<string key="className">UIButton</string>
|
||||
<string key="superclassName">UIControl</string>
|
||||
<object class="IBClassDescriptionSource" key="sourceIdentifier">
|
||||
<string key="majorKey">IBFrameworkSource</string>
|
||||
<string key="minorKey">UIKit.framework/Headers/UIButton.h</string>
|
||||
</object>
|
||||
</object>
|
||||
<object class="IBPartialClassDescription">
|
||||
<string key="className">UIControl</string>
|
||||
<string key="superclassName">UIView</string>
|
||||
<object class="IBClassDescriptionSource" key="sourceIdentifier">
|
||||
<string key="majorKey">IBFrameworkSource</string>
|
||||
<string key="minorKey">UIKit.framework/Headers/UIControl.h</string>
|
||||
</object>
|
||||
</object>
|
||||
<object class="IBPartialClassDescription">
|
||||
<string key="className">UIResponder</string>
|
||||
<string key="superclassName">NSObject</string>
|
||||
<reference key="sourceIdentifier" ref="483454074"/>
|
||||
</object>
|
||||
<object class="IBPartialClassDescription">
|
||||
<string key="className">UISearchBar</string>
|
||||
<string key="superclassName">UIView</string>
|
||||
<object class="IBClassDescriptionSource" key="sourceIdentifier">
|
||||
<string key="majorKey">IBFrameworkSource</string>
|
||||
<string key="minorKey">UIKit.framework/Headers/UISearchBar.h</string>
|
||||
</object>
|
||||
</object>
|
||||
<object class="IBPartialClassDescription">
|
||||
<string key="className">UISearchDisplayController</string>
|
||||
<string key="superclassName">NSObject</string>
|
||||
<object class="IBClassDescriptionSource" key="sourceIdentifier">
|
||||
<string key="majorKey">IBFrameworkSource</string>
|
||||
<string key="minorKey">UIKit.framework/Headers/UISearchDisplayController.h</string>
|
||||
</object>
|
||||
</object>
|
||||
<object class="IBPartialClassDescription">
|
||||
<string key="className">UIView</string>
|
||||
<object class="IBClassDescriptionSource" key="sourceIdentifier">
|
||||
<string key="majorKey">IBFrameworkSource</string>
|
||||
<string key="minorKey">UIKit.framework/Headers/UITextField.h</string>
|
||||
</object>
|
||||
</object>
|
||||
<object class="IBPartialClassDescription">
|
||||
<string key="className">UIView</string>
|
||||
<string key="superclassName">UIResponder</string>
|
||||
<object class="IBClassDescriptionSource" key="sourceIdentifier">
|
||||
<string key="majorKey">IBFrameworkSource</string>
|
||||
<string key="minorKey">UIKit.framework/Headers/UIView.h</string>
|
||||
</object>
|
||||
</object>
|
||||
<object class="IBPartialClassDescription">
|
||||
<string key="className">UIViewController</string>
|
||||
<object class="IBClassDescriptionSource" key="sourceIdentifier">
|
||||
<string key="majorKey">IBFrameworkSource</string>
|
||||
<string key="minorKey">UIKit.framework/Headers/UINavigationController.h</string>
|
||||
</object>
|
||||
</object>
|
||||
<object class="IBPartialClassDescription">
|
||||
<string key="className">UIViewController</string>
|
||||
<object class="IBClassDescriptionSource" key="sourceIdentifier">
|
||||
<string key="majorKey">IBFrameworkSource</string>
|
||||
<string key="minorKey">UIKit.framework/Headers/UIPopoverController.h</string>
|
||||
</object>
|
||||
</object>
|
||||
<object class="IBPartialClassDescription">
|
||||
<string key="className">UIViewController</string>
|
||||
<object class="IBClassDescriptionSource" key="sourceIdentifier">
|
||||
<string key="majorKey">IBFrameworkSource</string>
|
||||
<string key="minorKey">UIKit.framework/Headers/UISplitViewController.h</string>
|
||||
</object>
|
||||
</object>
|
||||
<object class="IBPartialClassDescription">
|
||||
<string key="className">UIViewController</string>
|
||||
<object class="IBClassDescriptionSource" key="sourceIdentifier">
|
||||
<string key="majorKey">IBFrameworkSource</string>
|
||||
<string key="minorKey">UIKit.framework/Headers/UITabBarController.h</string>
|
||||
</object>
|
||||
</object>
|
||||
<object class="IBPartialClassDescription">
|
||||
<string key="className">UIViewController</string>
|
||||
<string key="superclassName">UIResponder</string>
|
||||
<object class="IBClassDescriptionSource" key="sourceIdentifier">
|
||||
<string key="majorKey">IBFrameworkSource</string>
|
||||
<string key="minorKey">UIKit.framework/Headers/UIViewController.h</string>
|
||||
</object>
|
||||
</object>
|
||||
</object>
|
||||
</object>
|
||||
<int key="IBDocument.localizationMode">0</int>
|
||||
<string key="IBDocument.TargetRuntimeIdentifier">IBCocoaTouchFramework</string>
|
||||
<object class="NSMutableDictionary" key="IBDocument.PluginDeclaredDependencyDefaults">
|
||||
<string key="NS.key.0">com.apple.InterfaceBuilder.CocoaTouchPlugin.iPhoneOS</string>
|
||||
<integer value="1024" key="NS.object.0"/>
|
||||
</object>
|
||||
<object class="NSMutableDictionary" key="IBDocument.PluginDeclaredDevelopmentDependencies">
|
||||
<string key="NS.key.0">com.apple.InterfaceBuilder.CocoaTouchPlugin.InterfaceBuilder3</string>
|
||||
<integer value="3100" key="NS.object.0"/>
|
||||
</object>
|
||||
<bool key="IBDocument.PluginDeclaredDependenciesTrackSystemTargetVersion">YES</bool>
|
||||
<string key="IBDocument.LastKnownRelativeProjectPath">PickerSamplePhone.xcodeproj</string>
|
||||
<int key="IBDocument.defaultPropertyAccessControl">3</int>
|
||||
<string key="IBCocoaTouchPluginVersion">123</string>
|
||||
</data>
|
||||
</archive>
|
|
@ -0,0 +1,26 @@
|
|||
//==============================================================================
|
||||
//
|
||||
// main.m
|
||||
// PickerSamplePhone
|
||||
//
|
||||
// Created by Troy Gaul on 8/12/10.
|
||||
//
|
||||
// Copyright (c) 2011-2013 InfinitApps LLC: http://infinitapps.com
|
||||
// Some rights reserved: http://opensource.org/licenses/MIT
|
||||
//
|
||||
//==============================================================================
|
||||
|
||||
#import <UIKit/UIKit.h>
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
int main(int argc, char* argv[])
|
||||
{
|
||||
@autoreleasepool {
|
||||
int retVal = UIApplicationMain(argc, argv, nil, nil);
|
||||
|
||||
return retVal;
|
||||
}
|
||||
}
|
||||
|
||||
//------------------------------------------------------------------------------
|
|
@ -0,0 +1,37 @@
|
|||
The InfinitApps Color Picker, known as InfColorPicker, is a view controller for use in iOS applications to allow the selection of a color from RGB space, but using an HSB representation of that color space to make selection of a color easier for a human.
|
||||
|
||||
![InfColorPicker Screenshot](http://f.cl.ly/items/0b0X0Z1t2A170E0c3L1R/InfColorPicker.png)
|
||||
|
||||
InfColorPicker is distributed with an MIT license.
|
||||
|
||||
It is ARC-based and supports iPhone OS 5 and later (with one small change it could be made compatible back to iOS 4 if that's necessary).
|
||||
|
||||
Usage
|
||||
-----
|
||||
|
||||
The main component is the `InfColorPickerController` class, which can be instantiated and hosted in a few different ways, such as in a popover view controller for the iPad, pushed onto a navigation controller navigation stack, or presented modally on an iPhone.
|
||||
|
||||
The initial color can be set via the property `sourceColor`, which will be shown alongside the user-selected `resultColor` color, and these can be accessed and changed while the color picker is visible.
|
||||
|
||||
In order to receive the selected color(s) back from the controller, you have to have an object that implements one of the methods in the `InfColorPickerControllerDelegate` protocol.
|
||||
|
||||
Example
|
||||
-------
|
||||
|
||||
- (void) changeColor
|
||||
{
|
||||
InfColorPickerController* picker = [ InfColorPickerController colorPickerViewController ];
|
||||
|
||||
picker.sourceColor = self.color;
|
||||
picker.delegate = self;
|
||||
|
||||
[ picker presentModallyOverViewController: self ];
|
||||
}
|
||||
|
||||
- (void) colorPickerControllerDidFinish: (InfColorPickerController*) picker
|
||||
{
|
||||
self.color = picker.resultColor;
|
||||
|
||||
[ self dismissModalViewControllerAnimated: YES ];
|
||||
}
|
||||
|
|
@ -0,0 +1,116 @@
|
|||
namespace InfColorPicker {
|
||||
|
||||
// @interface InfColorBarView : UIView
|
||||
[BaseType (typeof (UIView))]
|
||||
interface InfColorBarView {
|
||||
|
||||
}
|
||||
|
||||
// @interface InfColorBarPicker : UIControl
|
||||
[BaseType (typeof (UIControl))]
|
||||
interface InfColorBarPicker {
|
||||
|
||||
// @property (nonatomic) float value;
|
||||
[Export ("value")]
|
||||
float Value { get; set; }
|
||||
}
|
||||
|
||||
// @interface InfColorIndicatorView : UIView
|
||||
[BaseType (typeof (UIView))]
|
||||
interface InfColorIndicatorView {
|
||||
|
||||
// @property (nonatomic) UIColor * color;
|
||||
[Export ("color")]
|
||||
UIColor Color { get; set; }
|
||||
}
|
||||
|
||||
// @protocol InfColorPickerControllerDelegate
|
||||
[Protocol, Model]
|
||||
interface InfColorPickerControllerDelegate {
|
||||
|
||||
}
|
||||
|
||||
// @interface InfColorPickerController : UIViewController
|
||||
[BaseType (typeof (UIViewController))]
|
||||
interface InfColorPickerController {
|
||||
|
||||
// @property (nonatomic) UIColor * sourceColor;
|
||||
[Export ("sourceColor")]
|
||||
UIColor SourceColor { get; set; }
|
||||
|
||||
// @property (nonatomic) UIColor * resultColor;
|
||||
[Export ("resultColor")]
|
||||
UIColor ResultColor { get; set; }
|
||||
|
||||
// @property (nonatomic, weak) id<InfColorPickerControllerDelegate> delegate;
|
||||
[Export ("delegate", ArgumentSemantic.Weak)]
|
||||
[NullAllowed]
|
||||
NSObject WeakDelegate { get; set; }
|
||||
|
||||
// @property (nonatomic, weak) id<InfColorPickerControllerDelegate> delegate;
|
||||
[Wrap ("WeakDelegate")]
|
||||
InfColorPickerControllerDelegate Delegate { get; set; }
|
||||
|
||||
// +(InfColorPickerController *)colorPickerViewController;
|
||||
[Static, Export ("colorPickerViewController")]
|
||||
InfColorPickerController ColorPickerViewController ();
|
||||
|
||||
// +(CGSize)idealSizeForViewInPopover;
|
||||
[Static, Export ("idealSizeForViewInPopover")]
|
||||
CGSize IdealSizeForViewInPopover ();
|
||||
|
||||
// -(void)presentModallyOverViewController:(UIViewController *)controller;
|
||||
[Export ("presentModallyOverViewController:")]
|
||||
void PresentModallyOverViewController (UIViewController controller);
|
||||
}
|
||||
|
||||
// @protocol InfColorPickerControllerDelegate
|
||||
[Protocol, Model]
|
||||
interface InfColorPickerControllerDelegate {
|
||||
|
||||
// @optional -(void)colorPickerControllerDidFinish:(InfColorPickerController *)controller;
|
||||
[Export ("colorPickerControllerDidFinish:")]
|
||||
void ColorPickerControllerDidFinish (InfColorPickerController controller);
|
||||
|
||||
// @optional -(void)colorPickerControllerDidChangeColor:(InfColorPickerController *)controller;
|
||||
[Export ("colorPickerControllerDidChangeColor:")]
|
||||
void ColorPickerControllerDidChangeColor (InfColorPickerController controller);
|
||||
}
|
||||
|
||||
// @interface InfColorPickerNavigationController : UINavigationController
|
||||
[BaseType (typeof (UINavigationController))]
|
||||
interface InfColorPickerNavigationController {
|
||||
|
||||
}
|
||||
|
||||
// @interface InfColorSquareView : UIImageView
|
||||
[BaseType (typeof (UIImageView))]
|
||||
interface InfColorSquareView {
|
||||
|
||||
// @property (nonatomic) float hue;
|
||||
[Export ("hue")]
|
||||
float Hue { get; set; }
|
||||
}
|
||||
|
||||
// @interface InfColorSquarePicker : UIControl
|
||||
[BaseType (typeof (UIControl))]
|
||||
interface InfColorSquarePicker {
|
||||
|
||||
// @property (nonatomic) float hue;
|
||||
[Export ("hue")]
|
||||
float Hue { get; set; }
|
||||
|
||||
// @property (nonatomic) CGPoint value;
|
||||
[Export ("value")]
|
||||
CGPoint Value { get; set; }
|
||||
}
|
||||
|
||||
// @interface InfSourceColorView : UIControl
|
||||
[BaseType (typeof (UIControl))]
|
||||
interface InfSourceColorView {
|
||||
|
||||
// @property (nonatomic) BOOL trackingInside;
|
||||
[Export ("trackingInside")]
|
||||
bool TrackingInside { get; set; }
|
||||
}
|
||||
}
|
|
@ -0,0 +1,8 @@
|
|||
namespace InfColorPicker {
|
||||
|
||||
public enum <unamed-C-enum> : uint {
|
||||
InfComponentIndexHue = 0,
|
||||
InfComponentIndexSaturation = 1,
|
||||
InfComponentIndexBrightness = 2
|
||||
}
|
||||
}
|
|
@ -0,0 +1,417 @@
|
|||
// !$*UTF8*$!
|
||||
{
|
||||
archiveVersion = 1;
|
||||
classes = {
|
||||
};
|
||||
objectVersion = 46;
|
||||
objects = {
|
||||
|
||||
/* Begin PBXBuildFile section */
|
||||
2D686E461A0ABAD80045D4F5 /* InfColorPicker.h in CopyFiles */ = {isa = PBXBuildFile; fileRef = 2D686E451A0ABAD80045D4F5 /* InfColorPicker.h */; };
|
||||
2D686E481A0ABAD80045D4F5 /* InfColorPicker.m in Sources */ = {isa = PBXBuildFile; fileRef = 2D686E471A0ABAD80045D4F5 /* InfColorPicker.m */; };
|
||||
2D686E4E1A0ABAD80045D4F5 /* libInfColorPicker.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 2D686E421A0ABAD80045D4F5 /* libInfColorPicker.a */; };
|
||||
2D686E6B1A0ABD150045D4F5 /* InfColorBarPicker.m in Sources */ = {isa = PBXBuildFile; fileRef = 2D686E5D1A0ABD150045D4F5 /* InfColorBarPicker.m */; };
|
||||
2D686E6C1A0ABD150045D4F5 /* InfColorIndicatorView.m in Sources */ = {isa = PBXBuildFile; fileRef = 2D686E5F1A0ABD150045D4F5 /* InfColorIndicatorView.m */; };
|
||||
2D686E6D1A0ABD150045D4F5 /* InfColorPickerController.m in Sources */ = {isa = PBXBuildFile; fileRef = 2D686E611A0ABD150045D4F5 /* InfColorPickerController.m */; };
|
||||
2D686E6E1A0ABD150045D4F5 /* InfColorPickerNavigationController.m in Sources */ = {isa = PBXBuildFile; fileRef = 2D686E631A0ABD150045D4F5 /* InfColorPickerNavigationController.m */; };
|
||||
2D686E6F1A0ABD150045D4F5 /* InfColorSquarePicker.m in Sources */ = {isa = PBXBuildFile; fileRef = 2D686E661A0ABD150045D4F5 /* InfColorSquarePicker.m */; };
|
||||
2D686E701A0ABD150045D4F5 /* InfHSBSupport.m in Sources */ = {isa = PBXBuildFile; fileRef = 2D686E681A0ABD150045D4F5 /* InfHSBSupport.m */; };
|
||||
2D686E711A0ABD150045D4F5 /* InfSourceColorView.m in Sources */ = {isa = PBXBuildFile; fileRef = 2D686E6A1A0ABD150045D4F5 /* InfSourceColorView.m */; };
|
||||
/* End PBXBuildFile section */
|
||||
|
||||
/* Begin PBXContainerItemProxy section */
|
||||
2D686E4F1A0ABAD80045D4F5 /* PBXContainerItemProxy */ = {
|
||||
isa = PBXContainerItemProxy;
|
||||
containerPortal = 2D686E3A1A0ABAD80045D4F5 /* Project object */;
|
||||
proxyType = 1;
|
||||
remoteGlobalIDString = 2D686E411A0ABAD80045D4F5;
|
||||
remoteInfo = InfColorPicker;
|
||||
};
|
||||
/* End PBXContainerItemProxy section */
|
||||
|
||||
/* Begin PBXCopyFilesBuildPhase section */
|
||||
2D686E401A0ABAD80045D4F5 /* CopyFiles */ = {
|
||||
isa = PBXCopyFilesBuildPhase;
|
||||
buildActionMask = 2147483647;
|
||||
dstPath = "include/$(PRODUCT_NAME)";
|
||||
dstSubfolderSpec = 16;
|
||||
files = (
|
||||
2D686E461A0ABAD80045D4F5 /* InfColorPicker.h in CopyFiles */,
|
||||
);
|
||||
runOnlyForDeploymentPostprocessing = 0;
|
||||
};
|
||||
/* End PBXCopyFilesBuildPhase section */
|
||||
|
||||
/* Begin PBXFileReference section */
|
||||
2D686E421A0ABAD80045D4F5 /* libInfColorPicker.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = libInfColorPicker.a; sourceTree = BUILT_PRODUCTS_DIR; };
|
||||
2D686E451A0ABAD80045D4F5 /* InfColorPicker.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = InfColorPicker.h; sourceTree = "<group>"; };
|
||||
2D686E471A0ABAD80045D4F5 /* InfColorPicker.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = InfColorPicker.m; sourceTree = "<group>"; };
|
||||
2D686E4D1A0ABAD80045D4F5 /* InfColorPickerTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = InfColorPickerTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; };
|
||||
2D686E531A0ABAD80045D4F5 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
|
||||
2D686E5C1A0ABD150045D4F5 /* InfColorBarPicker.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = InfColorBarPicker.h; sourceTree = "<group>"; };
|
||||
2D686E5D1A0ABD150045D4F5 /* InfColorBarPicker.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = InfColorBarPicker.m; sourceTree = "<group>"; };
|
||||
2D686E5E1A0ABD150045D4F5 /* InfColorIndicatorView.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = InfColorIndicatorView.h; sourceTree = "<group>"; };
|
||||
2D686E5F1A0ABD150045D4F5 /* InfColorIndicatorView.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = InfColorIndicatorView.m; sourceTree = "<group>"; };
|
||||
2D686E601A0ABD150045D4F5 /* InfColorPickerController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = InfColorPickerController.h; sourceTree = "<group>"; };
|
||||
2D686E611A0ABD150045D4F5 /* InfColorPickerController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = InfColorPickerController.m; sourceTree = "<group>"; };
|
||||
2D686E621A0ABD150045D4F5 /* InfColorPickerNavigationController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = InfColorPickerNavigationController.h; sourceTree = "<group>"; };
|
||||
2D686E631A0ABD150045D4F5 /* InfColorPickerNavigationController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = InfColorPickerNavigationController.m; sourceTree = "<group>"; };
|
||||
2D686E641A0ABD150045D4F5 /* InfColorPickerView.xib */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.xib; path = InfColorPickerView.xib; sourceTree = "<group>"; };
|
||||
2D686E651A0ABD150045D4F5 /* InfColorSquarePicker.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = InfColorSquarePicker.h; sourceTree = "<group>"; };
|
||||
2D686E661A0ABD150045D4F5 /* InfColorSquarePicker.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = InfColorSquarePicker.m; sourceTree = "<group>"; };
|
||||
2D686E671A0ABD150045D4F5 /* InfHSBSupport.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = InfHSBSupport.h; sourceTree = "<group>"; };
|
||||
2D686E681A0ABD150045D4F5 /* InfHSBSupport.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = InfHSBSupport.m; sourceTree = "<group>"; };
|
||||
2D686E691A0ABD150045D4F5 /* InfSourceColorView.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = InfSourceColorView.h; sourceTree = "<group>"; };
|
||||
2D686E6A1A0ABD150045D4F5 /* InfSourceColorView.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = InfSourceColorView.m; sourceTree = "<group>"; };
|
||||
/* End PBXFileReference section */
|
||||
|
||||
/* Begin PBXFrameworksBuildPhase section */
|
||||
2D686E3F1A0ABAD80045D4F5 /* Frameworks */ = {
|
||||
isa = PBXFrameworksBuildPhase;
|
||||
buildActionMask = 2147483647;
|
||||
files = (
|
||||
);
|
||||
runOnlyForDeploymentPostprocessing = 0;
|
||||
};
|
||||
2D686E4A1A0ABAD80045D4F5 /* Frameworks */ = {
|
||||
isa = PBXFrameworksBuildPhase;
|
||||
buildActionMask = 2147483647;
|
||||
files = (
|
||||
2D686E4E1A0ABAD80045D4F5 /* libInfColorPicker.a in Frameworks */,
|
||||
);
|
||||
runOnlyForDeploymentPostprocessing = 0;
|
||||
};
|
||||
/* End PBXFrameworksBuildPhase section */
|
||||
|
||||
/* Begin PBXGroup section */
|
||||
2D686E391A0ABAD80045D4F5 = {
|
||||
isa = PBXGroup;
|
||||
children = (
|
||||
2D686E441A0ABAD80045D4F5 /* InfColorPicker */,
|
||||
2D686E511A0ABAD80045D4F5 /* InfColorPickerTests */,
|
||||
2D686E431A0ABAD80045D4F5 /* Products */,
|
||||
);
|
||||
sourceTree = "<group>";
|
||||
};
|
||||
2D686E431A0ABAD80045D4F5 /* Products */ = {
|
||||
isa = PBXGroup;
|
||||
children = (
|
||||
2D686E421A0ABAD80045D4F5 /* libInfColorPicker.a */,
|
||||
2D686E4D1A0ABAD80045D4F5 /* InfColorPickerTests.xctest */,
|
||||
);
|
||||
name = Products;
|
||||
sourceTree = "<group>";
|
||||
};
|
||||
2D686E441A0ABAD80045D4F5 /* InfColorPicker */ = {
|
||||
isa = PBXGroup;
|
||||
children = (
|
||||
2D686E5C1A0ABD150045D4F5 /* InfColorBarPicker.h */,
|
||||
2D686E5D1A0ABD150045D4F5 /* InfColorBarPicker.m */,
|
||||
2D686E5E1A0ABD150045D4F5 /* InfColorIndicatorView.h */,
|
||||
2D686E5F1A0ABD150045D4F5 /* InfColorIndicatorView.m */,
|
||||
2D686E601A0ABD150045D4F5 /* InfColorPickerController.h */,
|
||||
2D686E611A0ABD150045D4F5 /* InfColorPickerController.m */,
|
||||
2D686E621A0ABD150045D4F5 /* InfColorPickerNavigationController.h */,
|
||||
2D686E631A0ABD150045D4F5 /* InfColorPickerNavigationController.m */,
|
||||
2D686E641A0ABD150045D4F5 /* InfColorPickerView.xib */,
|
||||
2D686E651A0ABD150045D4F5 /* InfColorSquarePicker.h */,
|
||||
2D686E661A0ABD150045D4F5 /* InfColorSquarePicker.m */,
|
||||
2D686E671A0ABD150045D4F5 /* InfHSBSupport.h */,
|
||||
2D686E681A0ABD150045D4F5 /* InfHSBSupport.m */,
|
||||
2D686E691A0ABD150045D4F5 /* InfSourceColorView.h */,
|
||||
2D686E6A1A0ABD150045D4F5 /* InfSourceColorView.m */,
|
||||
2D686E451A0ABAD80045D4F5 /* InfColorPicker.h */,
|
||||
2D686E471A0ABAD80045D4F5 /* InfColorPicker.m */,
|
||||
);
|
||||
path = InfColorPicker;
|
||||
sourceTree = "<group>";
|
||||
};
|
||||
2D686E511A0ABAD80045D4F5 /* InfColorPickerTests */ = {
|
||||
isa = PBXGroup;
|
||||
children = (
|
||||
2D686E521A0ABAD80045D4F5 /* Supporting Files */,
|
||||
);
|
||||
path = InfColorPickerTests;
|
||||
sourceTree = "<group>";
|
||||
};
|
||||
2D686E521A0ABAD80045D4F5 /* Supporting Files */ = {
|
||||
isa = PBXGroup;
|
||||
children = (
|
||||
2D686E531A0ABAD80045D4F5 /* Info.plist */,
|
||||
);
|
||||
name = "Supporting Files";
|
||||
sourceTree = "<group>";
|
||||
};
|
||||
/* End PBXGroup section */
|
||||
|
||||
/* Begin PBXNativeTarget section */
|
||||
2D686E411A0ABAD80045D4F5 /* InfColorPicker */ = {
|
||||
isa = PBXNativeTarget;
|
||||
buildConfigurationList = 2D686E561A0ABAD80045D4F5 /* Build configuration list for PBXNativeTarget "InfColorPicker" */;
|
||||
buildPhases = (
|
||||
2D686E3E1A0ABAD80045D4F5 /* Sources */,
|
||||
2D686E3F1A0ABAD80045D4F5 /* Frameworks */,
|
||||
2D686E401A0ABAD80045D4F5 /* CopyFiles */,
|
||||
);
|
||||
buildRules = (
|
||||
);
|
||||
dependencies = (
|
||||
);
|
||||
name = InfColorPicker;
|
||||
productName = InfColorPicker;
|
||||
productReference = 2D686E421A0ABAD80045D4F5 /* libInfColorPicker.a */;
|
||||
productType = "com.apple.product-type.library.static";
|
||||
};
|
||||
2D686E4C1A0ABAD80045D4F5 /* InfColorPickerTests */ = {
|
||||
isa = PBXNativeTarget;
|
||||
buildConfigurationList = 2D686E591A0ABAD80045D4F5 /* Build configuration list for PBXNativeTarget "InfColorPickerTests" */;
|
||||
buildPhases = (
|
||||
2D686E491A0ABAD80045D4F5 /* Sources */,
|
||||
2D686E4A1A0ABAD80045D4F5 /* Frameworks */,
|
||||
2D686E4B1A0ABAD80045D4F5 /* Resources */,
|
||||
);
|
||||
buildRules = (
|
||||
);
|
||||
dependencies = (
|
||||
2D686E501A0ABAD80045D4F5 /* PBXTargetDependency */,
|
||||
);
|
||||
name = InfColorPickerTests;
|
||||
productName = InfColorPickerTests;
|
||||
productReference = 2D686E4D1A0ABAD80045D4F5 /* InfColorPickerTests.xctest */;
|
||||
productType = "com.apple.product-type.bundle.unit-test";
|
||||
};
|
||||
/* End PBXNativeTarget section */
|
||||
|
||||
/* Begin PBXProject section */
|
||||
2D686E3A1A0ABAD80045D4F5 /* Project object */ = {
|
||||
isa = PBXProject;
|
||||
attributes = {
|
||||
LastUpgradeCheck = 0610;
|
||||
ORGANIZATIONNAME = "Xamarin, Inc.";
|
||||
TargetAttributes = {
|
||||
2D686E411A0ABAD80045D4F5 = {
|
||||
CreatedOnToolsVersion = 6.1;
|
||||
};
|
||||
2D686E4C1A0ABAD80045D4F5 = {
|
||||
CreatedOnToolsVersion = 6.1;
|
||||
};
|
||||
};
|
||||
};
|
||||
buildConfigurationList = 2D686E3D1A0ABAD80045D4F5 /* Build configuration list for PBXProject "InfColorPicker" */;
|
||||
compatibilityVersion = "Xcode 3.2";
|
||||
developmentRegion = English;
|
||||
hasScannedForEncodings = 0;
|
||||
knownRegions = (
|
||||
en,
|
||||
);
|
||||
mainGroup = 2D686E391A0ABAD80045D4F5;
|
||||
productRefGroup = 2D686E431A0ABAD80045D4F5 /* Products */;
|
||||
projectDirPath = "";
|
||||
projectRoot = "";
|
||||
targets = (
|
||||
2D686E411A0ABAD80045D4F5 /* InfColorPicker */,
|
||||
2D686E4C1A0ABAD80045D4F5 /* InfColorPickerTests */,
|
||||
);
|
||||
};
|
||||
/* End PBXProject section */
|
||||
|
||||
/* Begin PBXResourcesBuildPhase section */
|
||||
2D686E4B1A0ABAD80045D4F5 /* Resources */ = {
|
||||
isa = PBXResourcesBuildPhase;
|
||||
buildActionMask = 2147483647;
|
||||
files = (
|
||||
);
|
||||
runOnlyForDeploymentPostprocessing = 0;
|
||||
};
|
||||
/* End PBXResourcesBuildPhase section */
|
||||
|
||||
/* Begin PBXSourcesBuildPhase section */
|
||||
2D686E3E1A0ABAD80045D4F5 /* Sources */ = {
|
||||
isa = PBXSourcesBuildPhase;
|
||||
buildActionMask = 2147483647;
|
||||
files = (
|
||||
2D686E6C1A0ABD150045D4F5 /* InfColorIndicatorView.m in Sources */,
|
||||
2D686E481A0ABAD80045D4F5 /* InfColorPicker.m in Sources */,
|
||||
2D686E6E1A0ABD150045D4F5 /* InfColorPickerNavigationController.m in Sources */,
|
||||
2D686E701A0ABD150045D4F5 /* InfHSBSupport.m in Sources */,
|
||||
2D686E6B1A0ABD150045D4F5 /* InfColorBarPicker.m in Sources */,
|
||||
2D686E6F1A0ABD150045D4F5 /* InfColorSquarePicker.m in Sources */,
|
||||
2D686E6D1A0ABD150045D4F5 /* InfColorPickerController.m in Sources */,
|
||||
2D686E711A0ABD150045D4F5 /* InfSourceColorView.m in Sources */,
|
||||
);
|
||||
runOnlyForDeploymentPostprocessing = 0;
|
||||
};
|
||||
2D686E491A0ABAD80045D4F5 /* Sources */ = {
|
||||
isa = PBXSourcesBuildPhase;
|
||||
buildActionMask = 2147483647;
|
||||
files = (
|
||||
);
|
||||
runOnlyForDeploymentPostprocessing = 0;
|
||||
};
|
||||
/* End PBXSourcesBuildPhase section */
|
||||
|
||||
/* Begin PBXTargetDependency section */
|
||||
2D686E501A0ABAD80045D4F5 /* PBXTargetDependency */ = {
|
||||
isa = PBXTargetDependency;
|
||||
target = 2D686E411A0ABAD80045D4F5 /* InfColorPicker */;
|
||||
targetProxy = 2D686E4F1A0ABAD80045D4F5 /* PBXContainerItemProxy */;
|
||||
};
|
||||
/* End PBXTargetDependency section */
|
||||
|
||||
/* Begin XCBuildConfiguration section */
|
||||
2D686E541A0ABAD80045D4F5 /* Debug */ = {
|
||||
isa = XCBuildConfiguration;
|
||||
buildSettings = {
|
||||
ALWAYS_SEARCH_USER_PATHS = NO;
|
||||
CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
|
||||
CLANG_CXX_LIBRARY = "libc++";
|
||||
CLANG_ENABLE_MODULES = YES;
|
||||
CLANG_ENABLE_OBJC_ARC = YES;
|
||||
CLANG_WARN_BOOL_CONVERSION = YES;
|
||||
CLANG_WARN_CONSTANT_CONVERSION = YES;
|
||||
CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
|
||||
CLANG_WARN_EMPTY_BODY = YES;
|
||||
CLANG_WARN_ENUM_CONVERSION = YES;
|
||||
CLANG_WARN_INT_CONVERSION = YES;
|
||||
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
|
||||
CLANG_WARN_UNREACHABLE_CODE = YES;
|
||||
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
|
||||
CODE_SIGN_IDENTITY = "iPhone Developer";
|
||||
COPY_PHASE_STRIP = NO;
|
||||
ENABLE_STRICT_OBJC_MSGSEND = YES;
|
||||
GCC_C_LANGUAGE_STANDARD = gnu99;
|
||||
GCC_DYNAMIC_NO_PIC = NO;
|
||||
GCC_OPTIMIZATION_LEVEL = 0;
|
||||
GCC_PREPROCESSOR_DEFINITIONS = (
|
||||
"DEBUG=1",
|
||||
"$(inherited)",
|
||||
);
|
||||
GCC_SYMBOLS_PRIVATE_EXTERN = NO;
|
||||
GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
|
||||
GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
|
||||
GCC_WARN_UNDECLARED_SELECTOR = YES;
|
||||
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
|
||||
GCC_WARN_UNUSED_FUNCTION = YES;
|
||||
GCC_WARN_UNUSED_VARIABLE = YES;
|
||||
IPHONEOS_DEPLOYMENT_TARGET = 8.1;
|
||||
MTL_ENABLE_DEBUG_INFO = YES;
|
||||
ONLY_ACTIVE_ARCH = YES;
|
||||
SDKROOT = iphoneos;
|
||||
};
|
||||
name = Debug;
|
||||
};
|
||||
2D686E551A0ABAD80045D4F5 /* Release */ = {
|
||||
isa = XCBuildConfiguration;
|
||||
buildSettings = {
|
||||
ALWAYS_SEARCH_USER_PATHS = NO;
|
||||
CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
|
||||
CLANG_CXX_LIBRARY = "libc++";
|
||||
CLANG_ENABLE_MODULES = YES;
|
||||
CLANG_ENABLE_OBJC_ARC = YES;
|
||||
CLANG_WARN_BOOL_CONVERSION = YES;
|
||||
CLANG_WARN_CONSTANT_CONVERSION = YES;
|
||||
CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
|
||||
CLANG_WARN_EMPTY_BODY = YES;
|
||||
CLANG_WARN_ENUM_CONVERSION = YES;
|
||||
CLANG_WARN_INT_CONVERSION = YES;
|
||||
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
|
||||
CLANG_WARN_UNREACHABLE_CODE = YES;
|
||||
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
|
||||
CODE_SIGN_IDENTITY = "iPhone Developer";
|
||||
COPY_PHASE_STRIP = YES;
|
||||
ENABLE_NS_ASSERTIONS = NO;
|
||||
ENABLE_STRICT_OBJC_MSGSEND = YES;
|
||||
GCC_C_LANGUAGE_STANDARD = gnu99;
|
||||
GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
|
||||
GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
|
||||
GCC_WARN_UNDECLARED_SELECTOR = YES;
|
||||
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
|
||||
GCC_WARN_UNUSED_FUNCTION = YES;
|
||||
GCC_WARN_UNUSED_VARIABLE = YES;
|
||||
IPHONEOS_DEPLOYMENT_TARGET = 8.1;
|
||||
MTL_ENABLE_DEBUG_INFO = NO;
|
||||
SDKROOT = iphoneos;
|
||||
VALIDATE_PRODUCT = YES;
|
||||
};
|
||||
name = Release;
|
||||
};
|
||||
2D686E571A0ABAD80045D4F5 /* Debug */ = {
|
||||
isa = XCBuildConfiguration;
|
||||
buildSettings = {
|
||||
OTHER_LDFLAGS = "-ObjC";
|
||||
PRODUCT_NAME = "$(TARGET_NAME)";
|
||||
SKIP_INSTALL = YES;
|
||||
};
|
||||
name = Debug;
|
||||
};
|
||||
2D686E581A0ABAD80045D4F5 /* Release */ = {
|
||||
isa = XCBuildConfiguration;
|
||||
buildSettings = {
|
||||
OTHER_LDFLAGS = "-ObjC";
|
||||
PRODUCT_NAME = "$(TARGET_NAME)";
|
||||
SKIP_INSTALL = YES;
|
||||
};
|
||||
name = Release;
|
||||
};
|
||||
2D686E5A1A0ABAD80045D4F5 /* Debug */ = {
|
||||
isa = XCBuildConfiguration;
|
||||
buildSettings = {
|
||||
FRAMEWORK_SEARCH_PATHS = (
|
||||
"$(SDKROOT)/Developer/Library/Frameworks",
|
||||
"$(inherited)",
|
||||
);
|
||||
GCC_PREPROCESSOR_DEFINITIONS = (
|
||||
"DEBUG=1",
|
||||
"$(inherited)",
|
||||
);
|
||||
INFOPLIST_FILE = InfColorPickerTests/Info.plist;
|
||||
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
|
||||
PRODUCT_NAME = "$(TARGET_NAME)";
|
||||
};
|
||||
name = Debug;
|
||||
};
|
||||
2D686E5B1A0ABAD80045D4F5 /* Release */ = {
|
||||
isa = XCBuildConfiguration;
|
||||
buildSettings = {
|
||||
FRAMEWORK_SEARCH_PATHS = (
|
||||
"$(SDKROOT)/Developer/Library/Frameworks",
|
||||
"$(inherited)",
|
||||
);
|
||||
INFOPLIST_FILE = InfColorPickerTests/Info.plist;
|
||||
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
|
||||
PRODUCT_NAME = "$(TARGET_NAME)";
|
||||
};
|
||||
name = Release;
|
||||
};
|
||||
/* End XCBuildConfiguration section */
|
||||
|
||||
/* Begin XCConfigurationList section */
|
||||
2D686E3D1A0ABAD80045D4F5 /* Build configuration list for PBXProject "InfColorPicker" */ = {
|
||||
isa = XCConfigurationList;
|
||||
buildConfigurations = (
|
||||
2D686E541A0ABAD80045D4F5 /* Debug */,
|
||||
2D686E551A0ABAD80045D4F5 /* Release */,
|
||||
);
|
||||
defaultConfigurationIsVisible = 0;
|
||||
defaultConfigurationName = Release;
|
||||
};
|
||||
2D686E561A0ABAD80045D4F5 /* Build configuration list for PBXNativeTarget "InfColorPicker" */ = {
|
||||
isa = XCConfigurationList;
|
||||
buildConfigurations = (
|
||||
2D686E571A0ABAD80045D4F5 /* Debug */,
|
||||
2D686E581A0ABAD80045D4F5 /* Release */,
|
||||
);
|
||||
defaultConfigurationIsVisible = 0;
|
||||
};
|
||||
2D686E591A0ABAD80045D4F5 /* Build configuration list for PBXNativeTarget "InfColorPickerTests" */ = {
|
||||
isa = XCConfigurationList;
|
||||
buildConfigurations = (
|
||||
2D686E5A1A0ABAD80045D4F5 /* Debug */,
|
||||
2D686E5B1A0ABAD80045D4F5 /* Release */,
|
||||
);
|
||||
defaultConfigurationIsVisible = 0;
|
||||
};
|
||||
/* End XCConfigurationList section */
|
||||
};
|
||||
rootObject = 2D686E3A1A0ABAD80045D4F5 /* Project object */;
|
||||
}
|
7
InfColorPicker/InfColorPicker/InfColorPicker.xcodeproj/project.xcworkspace/contents.xcworkspacedata
сгенерированный
Normal file
7
InfColorPicker/InfColorPicker/InfColorPicker.xcodeproj/project.xcworkspace/contents.xcworkspacedata
сгенерированный
Normal file
|
@ -0,0 +1,7 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<Workspace
|
||||
version = "1.0">
|
||||
<FileRef
|
||||
location = "self:InfColorPicker.xcodeproj">
|
||||
</FileRef>
|
||||
</Workspace>
|
Двоичные данные
InfColorPicker/InfColorPicker/InfColorPicker.xcodeproj/project.xcworkspace/xcuserdata/kmullins.xcuserdatad/UserInterfaceState.xcuserstate
сгенерированный
Normal file
Двоичные данные
InfColorPicker/InfColorPicker/InfColorPicker.xcodeproj/project.xcworkspace/xcuserdata/kmullins.xcuserdatad/UserInterfaceState.xcuserstate
сгенерированный
Normal file
Двоичный файл не отображается.
|
@ -0,0 +1,110 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<Scheme
|
||||
LastUpgradeVersion = "0610"
|
||||
version = "1.3">
|
||||
<BuildAction
|
||||
parallelizeBuildables = "YES"
|
||||
buildImplicitDependencies = "YES">
|
||||
<BuildActionEntries>
|
||||
<BuildActionEntry
|
||||
buildForTesting = "YES"
|
||||
buildForRunning = "YES"
|
||||
buildForProfiling = "YES"
|
||||
buildForArchiving = "YES"
|
||||
buildForAnalyzing = "YES">
|
||||
<BuildableReference
|
||||
BuildableIdentifier = "primary"
|
||||
BlueprintIdentifier = "2D686E411A0ABAD80045D4F5"
|
||||
BuildableName = "libInfColorPicker.a"
|
||||
BlueprintName = "InfColorPicker"
|
||||
ReferencedContainer = "container:InfColorPicker.xcodeproj">
|
||||
</BuildableReference>
|
||||
</BuildActionEntry>
|
||||
<BuildActionEntry
|
||||
buildForTesting = "YES"
|
||||
buildForRunning = "YES"
|
||||
buildForProfiling = "NO"
|
||||
buildForArchiving = "NO"
|
||||
buildForAnalyzing = "YES">
|
||||
<BuildableReference
|
||||
BuildableIdentifier = "primary"
|
||||
BlueprintIdentifier = "2D686E4C1A0ABAD80045D4F5"
|
||||
BuildableName = "InfColorPickerTests.xctest"
|
||||
BlueprintName = "InfColorPickerTests"
|
||||
ReferencedContainer = "container:InfColorPicker.xcodeproj">
|
||||
</BuildableReference>
|
||||
</BuildActionEntry>
|
||||
</BuildActionEntries>
|
||||
</BuildAction>
|
||||
<TestAction
|
||||
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
|
||||
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
|
||||
shouldUseLaunchSchemeArgsEnv = "YES"
|
||||
buildConfiguration = "Debug">
|
||||
<Testables>
|
||||
<TestableReference
|
||||
skipped = "NO">
|
||||
<BuildableReference
|
||||
BuildableIdentifier = "primary"
|
||||
BlueprintIdentifier = "2D686E4C1A0ABAD80045D4F5"
|
||||
BuildableName = "InfColorPickerTests.xctest"
|
||||
BlueprintName = "InfColorPickerTests"
|
||||
ReferencedContainer = "container:InfColorPicker.xcodeproj">
|
||||
</BuildableReference>
|
||||
</TestableReference>
|
||||
</Testables>
|
||||
<MacroExpansion>
|
||||
<BuildableReference
|
||||
BuildableIdentifier = "primary"
|
||||
BlueprintIdentifier = "2D686E411A0ABAD80045D4F5"
|
||||
BuildableName = "libInfColorPicker.a"
|
||||
BlueprintName = "InfColorPicker"
|
||||
ReferencedContainer = "container:InfColorPicker.xcodeproj">
|
||||
</BuildableReference>
|
||||
</MacroExpansion>
|
||||
</TestAction>
|
||||
<LaunchAction
|
||||
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
|
||||
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
|
||||
launchStyle = "0"
|
||||
useCustomWorkingDirectory = "NO"
|
||||
buildConfiguration = "Debug"
|
||||
ignoresPersistentStateOnLaunch = "NO"
|
||||
debugDocumentVersioning = "YES"
|
||||
allowLocationSimulation = "YES">
|
||||
<MacroExpansion>
|
||||
<BuildableReference
|
||||
BuildableIdentifier = "primary"
|
||||
BlueprintIdentifier = "2D686E411A0ABAD80045D4F5"
|
||||
BuildableName = "libInfColorPicker.a"
|
||||
BlueprintName = "InfColorPicker"
|
||||
ReferencedContainer = "container:InfColorPicker.xcodeproj">
|
||||
</BuildableReference>
|
||||
</MacroExpansion>
|
||||
<AdditionalOptions>
|
||||
</AdditionalOptions>
|
||||
</LaunchAction>
|
||||
<ProfileAction
|
||||
shouldUseLaunchSchemeArgsEnv = "YES"
|
||||
savedToolIdentifier = ""
|
||||
useCustomWorkingDirectory = "NO"
|
||||
buildConfiguration = "Release"
|
||||
debugDocumentVersioning = "YES">
|
||||
<MacroExpansion>
|
||||
<BuildableReference
|
||||
BuildableIdentifier = "primary"
|
||||
BlueprintIdentifier = "2D686E411A0ABAD80045D4F5"
|
||||
BuildableName = "libInfColorPicker.a"
|
||||
BlueprintName = "InfColorPicker"
|
||||
ReferencedContainer = "container:InfColorPicker.xcodeproj">
|
||||
</BuildableReference>
|
||||
</MacroExpansion>
|
||||
</ProfileAction>
|
||||
<AnalyzeAction
|
||||
buildConfiguration = "Debug">
|
||||
</AnalyzeAction>
|
||||
<ArchiveAction
|
||||
buildConfiguration = "Release"
|
||||
revealArchiveInOrganizer = "YES">
|
||||
</ArchiveAction>
|
||||
</Scheme>
|
|
@ -0,0 +1,27 @@
|
|||
<?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>SchemeUserState</key>
|
||||
<dict>
|
||||
<key>InfColorPicker.xcscheme</key>
|
||||
<dict>
|
||||
<key>orderHint</key>
|
||||
<integer>0</integer>
|
||||
</dict>
|
||||
</dict>
|
||||
<key>SuppressBuildableAutocreation</key>
|
||||
<dict>
|
||||
<key>2D686E411A0ABAD80045D4F5</key>
|
||||
<dict>
|
||||
<key>primary</key>
|
||||
<true/>
|
||||
</dict>
|
||||
<key>2D686E4C1A0ABAD80045D4F5</key>
|
||||
<dict>
|
||||
<key>primary</key>
|
||||
<true/>
|
||||
</dict>
|
||||
</dict>
|
||||
</dict>
|
||||
</plist>
|
|
@ -0,0 +1,29 @@
|
|||
//==============================================================================
|
||||
//
|
||||
// InfColorBarPicker.h
|
||||
// InfColorPicker
|
||||
//
|
||||
// Created by Troy Gaul on 8/9/10.
|
||||
//
|
||||
// Copyright (c) 2011-2013 InfinitApps LLC: http://infinitapps.com
|
||||
// Some rights reserved: http://opensource.org/licenses/MIT
|
||||
//
|
||||
//==============================================================================
|
||||
|
||||
#import <UIKit/UIKit.h>
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
@interface InfColorBarView : UIView
|
||||
|
||||
@end
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
@interface InfColorBarPicker : UIControl
|
||||
|
||||
@property (nonatomic) float value;
|
||||
|
||||
@end
|
||||
|
||||
//------------------------------------------------------------------------------
|
|
@ -0,0 +1,180 @@
|
|||
//==============================================================================
|
||||
//
|
||||
// InfColorBarPicker.m
|
||||
// InfColorPicker
|
||||
//
|
||||
// Created by Troy Gaul on 8/9/10.
|
||||
//
|
||||
// Copyright (c) 2011-2013 InfinitApps LLC: http://infinitapps.com
|
||||
// Some rights reserved: http://opensource.org/licenses/MIT
|
||||
//
|
||||
//==============================================================================
|
||||
|
||||
#import "InfColorBarPicker.h"
|
||||
|
||||
#import "InfColorIndicatorView.h"
|
||||
#import "InfHSBSupport.h"
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
#if !__has_feature(objc_arc)
|
||||
#error This file must be compiled with ARC enabled (-fobjc-arc).
|
||||
#endif
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
#define kContentInsetX 20
|
||||
|
||||
//==============================================================================
|
||||
|
||||
@implementation InfColorBarView
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
static CGImageRef createContentImage()
|
||||
{
|
||||
float hsv[] = { 0.0f, 1.0f, 1.0f };
|
||||
return createHSVBarContentImage(InfComponentIndexHue, hsv);
|
||||
}
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
- (void) drawRect: (CGRect) rect
|
||||
{
|
||||
CGImageRef image = createContentImage();
|
||||
|
||||
if (image) {
|
||||
CGContextRef context = UIGraphicsGetCurrentContext();
|
||||
|
||||
CGContextDrawImage(context, [self bounds], image);
|
||||
|
||||
CGImageRelease(image);
|
||||
}
|
||||
}
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
@end
|
||||
|
||||
//==============================================================================
|
||||
|
||||
@implementation InfColorBarPicker {
|
||||
InfColorIndicatorView* indicator;
|
||||
}
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
#pragma mark Drawing
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
- (void) layoutSubviews
|
||||
{
|
||||
if (indicator == nil) {
|
||||
CGFloat kIndicatorSize = 24.0f;
|
||||
indicator = [[InfColorIndicatorView alloc] initWithFrame: CGRectMake(0, 0, kIndicatorSize, kIndicatorSize)];
|
||||
[self addSubview: indicator];
|
||||
}
|
||||
|
||||
indicator.color = [UIColor colorWithHue: self.value
|
||||
saturation: 1.0f
|
||||
brightness: 1.0f
|
||||
alpha: 1.0f];
|
||||
|
||||
CGFloat indicatorLoc = kContentInsetX + (self.value * (self.bounds.size.width - 2 * kContentInsetX));
|
||||
indicator.center = CGPointMake(indicatorLoc, CGRectGetMidY(self.bounds));
|
||||
}
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
#pragma mark Properties
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
- (void) setValue: (float) newValue
|
||||
{
|
||||
if (newValue != _value) {
|
||||
_value = newValue;
|
||||
|
||||
[self sendActionsForControlEvents: UIControlEventValueChanged];
|
||||
[self setNeedsLayout];
|
||||
}
|
||||
}
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
#pragma mark Tracking
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
- (void) trackIndicatorWithTouch: (UITouch*) touch
|
||||
{
|
||||
float percent = ([touch locationInView: self].x - kContentInsetX)
|
||||
/ (self.bounds.size.width - 2 * kContentInsetX);
|
||||
|
||||
self.value = pin(0.0f, percent, 1.0f);
|
||||
}
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
- (BOOL) beginTrackingWithTouch: (UITouch*) touch
|
||||
withEvent: (UIEvent*) event
|
||||
{
|
||||
[self trackIndicatorWithTouch: touch];
|
||||
|
||||
return YES;
|
||||
}
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
- (BOOL) continueTrackingWithTouch: (UITouch*) touch
|
||||
withEvent: (UIEvent*) event
|
||||
{
|
||||
[self trackIndicatorWithTouch: touch];
|
||||
|
||||
return YES;
|
||||
}
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
#pragma mark Accessibility
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
- (UIAccessibilityTraits) accessibilityTraits
|
||||
{
|
||||
UIAccessibilityTraits t = super.accessibilityTraits;
|
||||
|
||||
t |= UIAccessibilityTraitAdjustable;
|
||||
|
||||
return t;
|
||||
}
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
- (void) accessibilityIncrement
|
||||
{
|
||||
float newValue = self.value + 0.05;
|
||||
|
||||
if (newValue > 1.0)
|
||||
newValue -= 1.0;
|
||||
|
||||
self.value = newValue;
|
||||
}
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
- (void) accessibilityDecrement
|
||||
{
|
||||
float newValue = self.value - 0.05;
|
||||
|
||||
if (newValue < 0)
|
||||
newValue += 1.0;
|
||||
|
||||
self.value = newValue;
|
||||
}
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
- (NSString*) accessibilityValue
|
||||
{
|
||||
return [NSString stringWithFormat: @"%d degrees hue", (int) (self.value * 360.0)];
|
||||
}
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
@end
|
||||
|
||||
//==============================================================================
|
|
@ -0,0 +1,23 @@
|
|||
//==============================================================================
|
||||
//
|
||||
// InfColorIndicatorView.h
|
||||
// InfColorPicker
|
||||
//
|
||||
// Created by Troy Gaul on 8/10/10.
|
||||
//
|
||||
// Copyright (c) 2011-2013 InfinitApps LLC: http://infinitapps.com
|
||||
// Some rights reserved: http://opensource.org/licenses/MIT
|
||||
//
|
||||
//==============================================================================
|
||||
|
||||
#import <UIKit/UIKit.h>
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
@interface InfColorIndicatorView : UIView
|
||||
|
||||
@property (nonatomic) UIColor* color;
|
||||
|
||||
@end
|
||||
|
||||
//------------------------------------------------------------------------------
|
|
@ -0,0 +1,84 @@
|
|||
//==============================================================================
|
||||
//
|
||||
// InfColorIndicatorView.m
|
||||
// InfColorPicker
|
||||
//
|
||||
// Created by Troy Gaul on 8/10/10.
|
||||
//
|
||||
// Copyright (c) 2011-2013 InfinitApps LLC: http://infinitapps.com
|
||||
// Some rights reserved: http://opensource.org/licenses/MIT
|
||||
//
|
||||
//==============================================================================
|
||||
|
||||
#import "InfColorIndicatorView.h"
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
#if !__has_feature(objc_arc)
|
||||
#error This file must be compiled with ARC enabled (-fobjc-arc).
|
||||
#endif
|
||||
|
||||
//==============================================================================
|
||||
|
||||
@implementation InfColorIndicatorView
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
- (id) initWithFrame: (CGRect) frame
|
||||
{
|
||||
self = [super initWithFrame: frame];
|
||||
|
||||
if (self) {
|
||||
self.opaque = NO;
|
||||
self.userInteractionEnabled = NO;
|
||||
}
|
||||
|
||||
return self;
|
||||
}
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
- (void) setColor: (UIColor*) newColor
|
||||
{
|
||||
if (![_color isEqual: newColor]) {
|
||||
_color = newColor;
|
||||
|
||||
[self setNeedsDisplay];
|
||||
}
|
||||
}
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
- (void) drawRect: (CGRect) rect
|
||||
{
|
||||
CGContextRef context = UIGraphicsGetCurrentContext();
|
||||
|
||||
CGPoint center = { CGRectGetMidX(self.bounds), CGRectGetMidY(self.bounds) };
|
||||
CGFloat radius = CGRectGetMidX(self.bounds);
|
||||
|
||||
// Fill it:
|
||||
|
||||
CGContextAddArc(context, center.x, center.y, radius - 1.0f, 0.0f, 2.0f * (float) M_PI, YES);
|
||||
[self.color setFill];
|
||||
CGContextFillPath(context);
|
||||
|
||||
// Stroke it (black transucent, inner):
|
||||
|
||||
CGContextAddArc(context, center.x, center.y, radius - 1.0f, 0.0f, 2.0f * (float) M_PI, YES);
|
||||
CGContextSetGrayStrokeColor(context, 0.0f, 0.5f);
|
||||
CGContextSetLineWidth(context, 2.0f);
|
||||
CGContextStrokePath(context);
|
||||
|
||||
// Stroke it (white, outer):
|
||||
|
||||
CGContextAddArc(context, center.x, center.y, radius - 2.0f, 0.0f, 2.0f * (float) M_PI, YES);
|
||||
CGContextSetGrayStrokeColor(context, 1.0f, 1.0f);
|
||||
CGContextSetLineWidth(context, 2.0f);
|
||||
CGContextStrokePath(context);
|
||||
}
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
@end
|
||||
|
||||
//==============================================================================
|
|
@ -0,0 +1,60 @@
|
|||
//==============================================================================
|
||||
//
|
||||
// InfColorPicker.h
|
||||
// InfColorPicker
|
||||
//
|
||||
// Created by Troy Gaul on 7 Aug 2010.
|
||||
//
|
||||
// Copyright (c) 2011-2013 InfinitApps LLC: http://infinitapps.com
|
||||
// Some rights reserved: http://opensource.org/licenses/MIT
|
||||
//
|
||||
//==============================================================================
|
||||
/*
|
||||
|
||||
The InfiniApps Color Picker, known as InfColorPicker, is a view controller
|
||||
for use in iOS applications to allow the selection of a color from RGB space,
|
||||
but using an HSB representation of that color space to make selection of a
|
||||
color easier for a human.
|
||||
|
||||
InfColorPicker is distributed with an MIT license. It supports iPhone OS 3.x
|
||||
as well as iOS 4 and 5.
|
||||
|
||||
Usage
|
||||
-----
|
||||
|
||||
The main component is the `InfColorPickerController` class, which can be
|
||||
instantiated and hosted in a few different ways, such as in a popover view
|
||||
controller for the iPad, pushed onto a navigation controller navigation
|
||||
stack, or presented modally on an iPhone.
|
||||
|
||||
The initial color can be set via the property `sourceColor`, which will be
|
||||
shown alongside the user-selected `resultColor` color, and these can be
|
||||
accessed and changed while the color picker is visible.
|
||||
|
||||
In order to receive the selected color(s) back from the controller, you have
|
||||
to have an object that implements one of the methods in the
|
||||
`InfColorPickerControllerDelegate` protocol.
|
||||
|
||||
Example
|
||||
-------
|
||||
|
||||
- (IBAction) changeBackgroundColor
|
||||
{
|
||||
InfColorPickerController* picker = [InfColorPickerController colorPickerViewController];
|
||||
|
||||
picker.sourceColor = self.view.backgroundColor;
|
||||
picker.delegate = self;
|
||||
|
||||
[picker presentModallyOverViewController: self];
|
||||
}
|
||||
|
||||
- (void) colorPickerControllerDidFinish: (InfColorPickerController*) picker
|
||||
{
|
||||
self.view.backgroundColor = picker.resultColor;
|
||||
|
||||
[self dismissModalViewControllerAnimated: YES];
|
||||
}
|
||||
|
||||
*/
|
||||
|
||||
#import "InfColorPickerController.h"
|
|
@ -0,0 +1,13 @@
|
|||
//
|
||||
// InfColorPicker.m
|
||||
// InfColorPicker
|
||||
//
|
||||
// Created by Kevin Mullins on 11/5/14.
|
||||
// Copyright (c) 2014 Xamarin, Inc. All rights reserved.
|
||||
//
|
||||
|
||||
#import "InfColorPicker.h"
|
||||
|
||||
// @implementation InfColorPicker
|
||||
|
||||
// @end
|
|
@ -0,0 +1,48 @@
|
|||
//==============================================================================
|
||||
//
|
||||
// InfColorPickerController.h
|
||||
// InfColorPicker
|
||||
//
|
||||
// Created by Troy Gaul on 7 Aug 2010.
|
||||
//
|
||||
// Copyright (c) 2011-2013 InfinitApps LLC: http://infinitapps.com
|
||||
// Some rights reserved: http://opensource.org/licenses/MIT
|
||||
//
|
||||
//==============================================================================
|
||||
|
||||
#import <UIKit/UIKit.h>
|
||||
|
||||
@protocol InfColorPickerControllerDelegate;
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
@interface InfColorPickerController : UIViewController
|
||||
|
||||
// Public API:
|
||||
|
||||
+ (InfColorPickerController*) colorPickerViewController;
|
||||
+ (CGSize) idealSizeForViewInPopover;
|
||||
|
||||
- (void) presentModallyOverViewController: (UIViewController*) controller;
|
||||
|
||||
@property (nonatomic) UIColor* sourceColor;
|
||||
@property (nonatomic) UIColor* resultColor;
|
||||
|
||||
@property (weak, nonatomic) id <InfColorPickerControllerDelegate> delegate;
|
||||
|
||||
@end
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
@protocol InfColorPickerControllerDelegate
|
||||
|
||||
@optional
|
||||
|
||||
- (void) colorPickerControllerDidFinish: (InfColorPickerController*) controller;
|
||||
// This is only called when the color picker is presented modally.
|
||||
|
||||
- (void) colorPickerControllerDidChangeColor: (InfColorPickerController*) controller;
|
||||
|
||||
@end
|
||||
|
||||
//------------------------------------------------------------------------------
|
|
@ -0,0 +1,289 @@
|
|||
//==============================================================================
|
||||
//
|
||||
// InfColorPickerController.m
|
||||
// InfColorPicker
|
||||
//
|
||||
// Created by Troy Gaul on 7 Aug 2010.
|
||||
//
|
||||
// Copyright (c) 2011-2013 InfinitApps LLC: http://infinitapps.com
|
||||
// Some rights reserved: http://opensource.org/licenses/MIT
|
||||
//
|
||||
//==============================================================================
|
||||
|
||||
#import "InfColorPickerController.h"
|
||||
|
||||
#import "InfColorBarPicker.h"
|
||||
#import "InfColorSquarePicker.h"
|
||||
#import "InfColorPickerNavigationController.h"
|
||||
#import "InfHSBSupport.h"
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
#if !__has_feature(objc_arc)
|
||||
#error This file must be compiled with ARC enabled (-fobjc-arc).
|
||||
#endif
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
static void HSVFromUIColor(UIColor* color, float* h, float* s, float* v)
|
||||
{
|
||||
CGColorRef colorRef = [color CGColor];
|
||||
|
||||
const CGFloat* components = CGColorGetComponents(colorRef);
|
||||
size_t numComponents = CGColorGetNumberOfComponents(colorRef);
|
||||
|
||||
CGFloat r, g, b;
|
||||
|
||||
if (numComponents < 3) {
|
||||
r = g = b = components[0];
|
||||
}
|
||||
else {
|
||||
r = components[0];
|
||||
g = components[1];
|
||||
b = components[2];
|
||||
}
|
||||
|
||||
RGBToHSV(r, g, b, h, s, v, YES);
|
||||
}
|
||||
|
||||
//==============================================================================
|
||||
|
||||
@interface InfColorPickerController ()
|
||||
|
||||
@property (nonatomic) IBOutlet InfColorBarView* barView;
|
||||
@property (nonatomic) IBOutlet InfColorSquareView* squareView;
|
||||
@property (nonatomic) IBOutlet InfColorBarPicker* barPicker;
|
||||
@property (nonatomic) IBOutlet InfColorSquarePicker* squarePicker;
|
||||
@property (nonatomic) IBOutlet UIView* sourceColorView;
|
||||
@property (nonatomic) IBOutlet UIView* resultColorView;
|
||||
@property (nonatomic) IBOutlet UINavigationController* navController;
|
||||
|
||||
@end
|
||||
|
||||
//==============================================================================
|
||||
|
||||
@implementation InfColorPickerController {
|
||||
float _hue;
|
||||
float _saturation;
|
||||
float _brightness;
|
||||
}
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
#pragma mark Class methods
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
+ (InfColorPickerController*) colorPickerViewController
|
||||
{
|
||||
return [[self alloc] initWithNibName: @"InfColorPickerView" bundle: nil];
|
||||
}
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
+ (CGSize) idealSizeForViewInPopover
|
||||
{
|
||||
return CGSizeMake(256 + (1 + 20) * 2, 420);
|
||||
}
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
#pragma mark Creation
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
- (id) initWithNibName: (NSString*) nibNameOrNil bundle: (NSBundle*) nibBundleOrNil
|
||||
{
|
||||
self = [super initWithNibName: nibNameOrNil bundle: nibBundleOrNil];
|
||||
|
||||
if (self) {
|
||||
self.navigationItem.title = NSLocalizedString(@"Set Color",
|
||||
@"InfColorPicker default nav item title");
|
||||
}
|
||||
|
||||
return self;
|
||||
}
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
- (void) presentModallyOverViewController: (UIViewController*) controller
|
||||
{
|
||||
UINavigationController* nav = [[InfColorPickerNavigationController alloc] initWithRootViewController: self];
|
||||
|
||||
nav.navigationBar.barStyle = UIBarStyleBlackOpaque;
|
||||
|
||||
self.navigationItem.rightBarButtonItem = [[UIBarButtonItem alloc] initWithBarButtonSystemItem: UIBarButtonSystemItemDone
|
||||
target: self
|
||||
action: @selector(done:)];
|
||||
|
||||
[controller presentViewController: nav animated: YES completion: nil];
|
||||
}
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
#pragma mark UIViewController methods
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
- (void) viewDidLoad
|
||||
{
|
||||
[super viewDidLoad];
|
||||
|
||||
self.modalTransitionStyle = UIModalTransitionStyleCoverVertical;
|
||||
|
||||
_barPicker.value = _hue;
|
||||
_squareView.hue = _hue;
|
||||
_squarePicker.hue = _hue;
|
||||
_squarePicker.value = CGPointMake(_saturation, _brightness);
|
||||
|
||||
if (_sourceColor)
|
||||
_sourceColorView.backgroundColor = _sourceColor;
|
||||
|
||||
if (_resultColor)
|
||||
_resultColorView.backgroundColor = _resultColor;
|
||||
}
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
- (BOOL) shouldAutorotateToInterfaceOrientation: (UIInterfaceOrientation) interfaceOrientation
|
||||
{
|
||||
return UIInterfaceOrientationIsPortrait(interfaceOrientation);
|
||||
}
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
- (NSUInteger) supportedInterfaceOrientations
|
||||
{
|
||||
if (UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPad)
|
||||
return UIInterfaceOrientationMaskAll;
|
||||
else
|
||||
return UIInterfaceOrientationMaskPortrait | UIInterfaceOrientationMaskPortraitUpsideDown;
|
||||
}
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
- (UIRectEdge) edgesForExtendedLayout
|
||||
{
|
||||
return UIRectEdgeNone;
|
||||
}
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
#pragma mark IB actions
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
- (IBAction) takeBarValue: (InfColorBarPicker*) sender
|
||||
{
|
||||
_hue = sender.value;
|
||||
|
||||
_squareView.hue = _hue;
|
||||
_squarePicker.hue = _hue;
|
||||
|
||||
[self updateResultColor];
|
||||
}
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
- (IBAction) takeSquareValue: (InfColorSquarePicker*) sender
|
||||
{
|
||||
_saturation = sender.value.x;
|
||||
_brightness = sender.value.y;
|
||||
|
||||
[self updateResultColor];
|
||||
}
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
- (IBAction) takeBackgroundColor: (UIView*) sender
|
||||
{
|
||||
self.resultColor = sender.backgroundColor;
|
||||
}
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
- (IBAction) done: (id) sender
|
||||
{
|
||||
[self.delegate colorPickerControllerDidFinish: self];
|
||||
}
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
#pragma mark Properties
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
- (void) informDelegateDidChangeColor
|
||||
{
|
||||
if (self.delegate && [(id) self.delegate respondsToSelector: @selector(colorPickerControllerDidChangeColor:)])
|
||||
[self.delegate colorPickerControllerDidChangeColor: self];
|
||||
}
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
- (void) updateResultColor
|
||||
{
|
||||
// This is used when code internally causes the update. We do this so that
|
||||
// we don't cause push-back on the HSV values in case there are rounding
|
||||
// differences or anything.
|
||||
|
||||
[self willChangeValueForKey: @"resultColor"];
|
||||
|
||||
_resultColor = [UIColor colorWithHue: _hue
|
||||
saturation: _saturation
|
||||
brightness: _brightness
|
||||
alpha: 1.0f];
|
||||
|
||||
[self didChangeValueForKey: @"resultColor"];
|
||||
|
||||
_resultColorView.backgroundColor = _resultColor;
|
||||
|
||||
[self informDelegateDidChangeColor];
|
||||
}
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
- (void) setResultColor: (UIColor*) newValue
|
||||
{
|
||||
if (![_resultColor isEqual: newValue]) {
|
||||
_resultColor = newValue;
|
||||
|
||||
float h = _hue;
|
||||
HSVFromUIColor(newValue, &h, &_saturation, &_brightness);
|
||||
|
||||
if ((h == 0.0 && _hue == 1.0) || (h == 1.0 && _hue == 0.0)) {
|
||||
// these are equivalent, so do nothing
|
||||
}
|
||||
else if (h != _hue) {
|
||||
_hue = h;
|
||||
|
||||
_barPicker.value = _hue;
|
||||
_squareView.hue = _hue;
|
||||
_squarePicker.hue = _hue;
|
||||
}
|
||||
|
||||
_squarePicker.value = CGPointMake(_saturation, _brightness);
|
||||
|
||||
_resultColorView.backgroundColor = _resultColor;
|
||||
|
||||
[self informDelegateDidChangeColor];
|
||||
}
|
||||
}
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
- (void) setSourceColor: (UIColor*) newValue
|
||||
{
|
||||
if (![_sourceColor isEqual: newValue]) {
|
||||
_sourceColor = newValue;
|
||||
|
||||
_sourceColorView.backgroundColor = _sourceColor;
|
||||
|
||||
self.resultColor = newValue;
|
||||
}
|
||||
}
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
#pragma mark UIViewController(UIPopoverController) methods
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
- (CGSize) contentSizeForViewInPopover
|
||||
{
|
||||
return [[self class] idealSizeForViewInPopover];
|
||||
}
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
@end
|
||||
|
||||
//==============================================================================
|
|
@ -0,0 +1,24 @@
|
|||
//==============================================================================
|
||||
//
|
||||
// InfColorPickerNavigationController.h
|
||||
// InfColorPicker
|
||||
//
|
||||
// Created by Troy Gaul on 11 Dec 2013.
|
||||
//
|
||||
// Copyright (c) 2013 InfinitApps LLC: http://infinitapps.com
|
||||
// Some rights reserved: http://opensource.org/licenses/MIT
|
||||
//
|
||||
//==============================================================================
|
||||
|
||||
#import <UIKit/UIKit.h>
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
// This navigation controller subclass forwards orientation requests to
|
||||
// the top view controller hosted within it so that it can choose to limit
|
||||
// the orientations it is displayed in.
|
||||
|
||||
@interface InfColorPickerNavigationController : UINavigationController
|
||||
|
||||
@end
|
||||
|
||||
//------------------------------------------------------------------------------
|
|
@ -0,0 +1,50 @@
|
|||
//==============================================================================
|
||||
//
|
||||
// InfColorPickerNavigationController.m
|
||||
// InfColorPicker
|
||||
//
|
||||
// Created by Troy Gaul on 11 Dec 2013.
|
||||
//
|
||||
// Copyright (c) 2011-2013 InfinitApps LLC: http://infinitapps.com
|
||||
// Some rights reserved: http://opensource.org/licenses/MIT
|
||||
//
|
||||
//==============================================================================
|
||||
|
||||
#import "InfColorPickerNavigationController.h"
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
#if !__has_feature(objc_arc)
|
||||
#error This file must be compiled with ARC enabled (-fobjc-arc).
|
||||
#endif
|
||||
|
||||
//==============================================================================
|
||||
|
||||
@implementation InfColorPickerNavigationController
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
- (BOOL) shouldAutorotate
|
||||
{
|
||||
return [self.topViewController shouldAutorotate];
|
||||
}
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
- (BOOL) shouldAutorotateToInterfaceOrientation: (UIInterfaceOrientation) interfaceOrientation
|
||||
{
|
||||
return [self.topViewController shouldAutorotateToInterfaceOrientation: interfaceOrientation];
|
||||
}
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
- (NSUInteger) supportedInterfaceOrientations
|
||||
{
|
||||
return self.topViewController.supportedInterfaceOrientations;
|
||||
}
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
@end
|
||||
|
||||
//==============================================================================
|
|
@ -0,0 +1,712 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<archive type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="8.00">
|
||||
<data>
|
||||
<int key="IBDocument.SystemTarget">2048</int>
|
||||
<string key="IBDocument.SystemVersion">14B17</string>
|
||||
<string key="IBDocument.InterfaceBuilderVersion">6250</string>
|
||||
<string key="IBDocument.AppKitVersion">1343.15</string>
|
||||
<string key="IBDocument.HIToolboxVersion">755.00</string>
|
||||
<object class="NSMutableDictionary" key="IBDocument.PluginVersions">
|
||||
<string key="NS.key.0">com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
|
||||
<string key="NS.object.0">6244</string>
|
||||
</object>
|
||||
<array key="IBDocument.IntegratedClassDependencies">
|
||||
<string>IBProxyObject</string>
|
||||
<string>IBUIView</string>
|
||||
</array>
|
||||
<array key="IBDocument.PluginDependencies">
|
||||
<string>com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
|
||||
</array>
|
||||
<object class="NSMutableDictionary" key="IBDocument.Metadata">
|
||||
<string key="NS.key.0">PluginDependencyRecalculationVersion</string>
|
||||
<integer value="1" key="NS.object.0"/>
|
||||
</object>
|
||||
<array class="NSMutableArray" key="IBDocument.RootObjects" id="1000">
|
||||
<object class="IBProxyObject" id="372490531">
|
||||
<string key="IBProxiedObjectIdentifier">IBFilesOwner</string>
|
||||
<string key="targetRuntimeIdentifier">IBCocoaTouchFramework</string>
|
||||
</object>
|
||||
<object class="IBProxyObject" id="815241450">
|
||||
<string key="IBProxiedObjectIdentifier">IBFirstResponder</string>
|
||||
<string key="targetRuntimeIdentifier">IBCocoaTouchFramework</string>
|
||||
</object>
|
||||
<object class="IBUIView" id="883825266">
|
||||
<reference key="NSNextResponder"/>
|
||||
<int key="NSvFlags">274</int>
|
||||
<array class="NSMutableArray" key="NSSubviews">
|
||||
<object class="IBUIView" id="407640069">
|
||||
<reference key="NSNextResponder" ref="883825266"/>
|
||||
<int key="NSvFlags">301</int>
|
||||
<array class="NSMutableArray" key="NSSubviews">
|
||||
<object class="IBUIView" id="905743537">
|
||||
<reference key="NSNextResponder" ref="407640069"/>
|
||||
<int key="NSvFlags">292</int>
|
||||
<array class="NSMutableArray" key="NSSubviews">
|
||||
<object class="IBUIView" id="998465631">
|
||||
<reference key="NSNextResponder" ref="905743537"/>
|
||||
<int key="NSvFlags">292</int>
|
||||
<string key="NSFrame">{{1, 1}, {256, 256}}</string>
|
||||
<reference key="NSSuperview" ref="905743537"/>
|
||||
<reference key="NSWindow"/>
|
||||
<reference key="NSNextKeyView" ref="65830691"/>
|
||||
<object class="NSColor" key="IBUIBackgroundColor">
|
||||
<int key="NSColorSpace">3</int>
|
||||
<bytes key="NSWhite">MC43NQA</bytes>
|
||||
<object class="NSColorSpace" key="NSCustomColorSpace" id="606899236">
|
||||
<int key="NSID">2</int>
|
||||
</object>
|
||||
</object>
|
||||
<bool key="IBUIClearsContextBeforeDrawing">NO</bool>
|
||||
<bool key="IBUIUserInteractionEnabled">NO</bool>
|
||||
<object class="IBUIAccessibilityConfiguration" key="IBUIAccessibilityConfiguration">
|
||||
<string key="IBUIAccessibilityHint"/>
|
||||
<string key="IBUIAccessibilityLabel"/>
|
||||
<integer value="256" key="IBUIAccessibilityTraits"/>
|
||||
<boolean value="NO" key="IBUIIsAccessibilityElement"/>
|
||||
</object>
|
||||
<string key="targetRuntimeIdentifier">IBCocoaTouchFramework</string>
|
||||
</object>
|
||||
</array>
|
||||
<string key="NSFrame">{{19, 19}, {258, 258}}</string>
|
||||
<reference key="NSSuperview" ref="407640069"/>
|
||||
<reference key="NSWindow"/>
|
||||
<reference key="NSNextKeyView" ref="998465631"/>
|
||||
<object class="NSColor" key="IBUIBackgroundColor" id="459512199">
|
||||
<int key="NSColorSpace">3</int>
|
||||
<bytes key="NSWhite">MQA</bytes>
|
||||
</object>
|
||||
<bool key="IBUIClearsContextBeforeDrawing">NO</bool>
|
||||
<bool key="IBUIUserInteractionEnabled">NO</bool>
|
||||
<object class="IBUIAccessibilityConfiguration" key="IBUIAccessibilityConfiguration">
|
||||
<integer value="256" key="IBUIAccessibilityTraits"/>
|
||||
</object>
|
||||
<string key="targetRuntimeIdentifier">IBCocoaTouchFramework</string>
|
||||
</object>
|
||||
</array>
|
||||
<string key="NSFrame">{{12, 60}, {296, 296}}</string>
|
||||
<reference key="NSSuperview" ref="883825266"/>
|
||||
<reference key="NSWindow"/>
|
||||
<reference key="NSNextKeyView" ref="905743537"/>
|
||||
<object class="NSColor" key="IBUIBackgroundColor">
|
||||
<int key="NSColorSpace">3</int>
|
||||
<bytes key="NSWhite">MC4yAA</bytes>
|
||||
</object>
|
||||
<bool key="IBUIClearsContextBeforeDrawing">NO</bool>
|
||||
<object class="IBUIAccessibilityConfiguration" key="IBUIAccessibilityConfiguration">
|
||||
<string key="IBUIAccessibilityHint">Sets the saturation and brightness of the color.</string>
|
||||
<string key="IBUIAccessibilityLabel">Color square</string>
|
||||
<boolean value="YES" key="IBUIIsAccessibilityElement"/>
|
||||
</object>
|
||||
<string key="targetRuntimeIdentifier">IBCocoaTouchFramework</string>
|
||||
</object>
|
||||
<object class="IBUIView" id="65830691">
|
||||
<reference key="NSNextResponder" ref="883825266"/>
|
||||
<int key="NSvFlags">301</int>
|
||||
<array class="NSMutableArray" key="NSSubviews">
|
||||
<object class="IBUIView" id="804282275">
|
||||
<reference key="NSNextResponder" ref="65830691"/>
|
||||
<int key="NSvFlags">292</int>
|
||||
<array class="NSMutableArray" key="NSSubviews">
|
||||
<object class="IBUIView" id="830998350">
|
||||
<reference key="NSNextResponder" ref="804282275"/>
|
||||
<int key="NSvFlags">292</int>
|
||||
<string key="NSFrame">{{1, 1}, {256, 40}}</string>
|
||||
<reference key="NSSuperview" ref="804282275"/>
|
||||
<reference key="NSWindow"/>
|
||||
<object class="NSColor" key="IBUIBackgroundColor">
|
||||
<int key="NSColorSpace">3</int>
|
||||
<bytes key="NSWhite">MC43NQA</bytes>
|
||||
<reference key="NSCustomColorSpace" ref="606899236"/>
|
||||
</object>
|
||||
<bool key="IBUIClearsContextBeforeDrawing">NO</bool>
|
||||
<bool key="IBUIUserInteractionEnabled">NO</bool>
|
||||
<object class="IBUIAccessibilityConfiguration" key="IBUIAccessibilityConfiguration">
|
||||
<string key="IBUIAccessibilityHint"/>
|
||||
<string key="IBUIAccessibilityLabel"/>
|
||||
<integer value="256" key="IBUIAccessibilityTraits"/>
|
||||
<boolean value="NO" key="IBUIIsAccessibilityElement"/>
|
||||
</object>
|
||||
<string key="targetRuntimeIdentifier">IBCocoaTouchFramework</string>
|
||||
</object>
|
||||
</array>
|
||||
<string key="NSFrame">{{19, 7}, {258, 42}}</string>
|
||||
<reference key="NSSuperview" ref="65830691"/>
|
||||
<reference key="NSWindow"/>
|
||||
<reference key="NSNextKeyView" ref="830998350"/>
|
||||
<reference key="IBUIBackgroundColor" ref="459512199"/>
|
||||
<bool key="IBUIClearsContextBeforeDrawing">NO</bool>
|
||||
<bool key="IBUIUserInteractionEnabled">NO</bool>
|
||||
<string key="targetRuntimeIdentifier">IBCocoaTouchFramework</string>
|
||||
</object>
|
||||
</array>
|
||||
<string key="NSFrame">{{12, 349}, {296, 56}}</string>
|
||||
<reference key="NSSuperview" ref="883825266"/>
|
||||
<reference key="NSWindow"/>
|
||||
<reference key="NSNextKeyView" ref="804282275"/>
|
||||
<object class="NSColor" key="IBUIBackgroundColor">
|
||||
<int key="NSColorSpace">3</int>
|
||||
<bytes key="NSWhite">MC4yAA</bytes>
|
||||
</object>
|
||||
<bool key="IBUIClearsContextBeforeDrawing">NO</bool>
|
||||
<object class="IBUIAccessibilityConfiguration" key="IBUIAccessibilityConfiguration">
|
||||
<string key="IBUIAccessibilityHint">Sets the hue of the color.</string>
|
||||
<string key="IBUIAccessibilityLabel">Color bar</string>
|
||||
<boolean value="YES" key="IBUIIsAccessibilityElement"/>
|
||||
</object>
|
||||
<string key="targetRuntimeIdentifier">IBCocoaTouchFramework</string>
|
||||
</object>
|
||||
<object class="IBUIView" id="753378649">
|
||||
<reference key="NSNextResponder" ref="883825266"/>
|
||||
<int key="NSvFlags">293</int>
|
||||
<array class="NSMutableArray" key="NSSubviews">
|
||||
<object class="IBUIView" id="994297942">
|
||||
<reference key="NSNextResponder" ref="753378649"/>
|
||||
<int key="NSvFlags">297</int>
|
||||
<array class="NSMutableArray" key="NSSubviews">
|
||||
<object class="IBUIView" id="656723274">
|
||||
<reference key="NSNextResponder" ref="994297942"/>
|
||||
<int key="NSvFlags">274</int>
|
||||
<string key="NSFrame">{{1, 1}, {80, 40}}</string>
|
||||
<reference key="NSSuperview" ref="994297942"/>
|
||||
<reference key="NSWindow"/>
|
||||
<reference key="NSNextKeyView" ref="272625938"/>
|
||||
<object class="NSColor" key="IBUIBackgroundColor">
|
||||
<int key="NSColorSpace">3</int>
|
||||
<bytes key="NSWhite">MC41AA</bytes>
|
||||
<reference key="NSCustomColorSpace" ref="606899236"/>
|
||||
</object>
|
||||
<bool key="IBUIClearsContextBeforeDrawing">NO</bool>
|
||||
<object class="IBUIAccessibilityConfiguration" key="IBUIAccessibilityConfiguration">
|
||||
<string key="IBUIAccessibilityLabel">Original color</string>
|
||||
<boolean value="YES" key="IBUIIsAccessibilityElement"/>
|
||||
</object>
|
||||
<string key="targetRuntimeIdentifier">IBCocoaTouchFramework</string>
|
||||
</object>
|
||||
</array>
|
||||
<string key="NSFrame">{{95, 0}, {82, 42}}</string>
|
||||
<reference key="NSSuperview" ref="753378649"/>
|
||||
<reference key="NSWindow"/>
|
||||
<reference key="NSNextKeyView" ref="656723274"/>
|
||||
<object class="NSColor" key="IBUIBackgroundColor">
|
||||
<int key="NSColorSpace">3</int>
|
||||
<bytes key="NSWhite">MQA</bytes>
|
||||
<reference key="NSCustomColorSpace" ref="606899236"/>
|
||||
</object>
|
||||
<bool key="IBUIClearsContextBeforeDrawing">NO</bool>
|
||||
<string key="targetRuntimeIdentifier">IBCocoaTouchFramework</string>
|
||||
</object>
|
||||
<object class="IBUIView" id="148019574">
|
||||
<reference key="NSNextResponder" ref="753378649"/>
|
||||
<int key="NSvFlags">300</int>
|
||||
<array class="NSMutableArray" key="NSSubviews">
|
||||
<object class="IBUIView" id="713903418">
|
||||
<reference key="NSNextResponder" ref="148019574"/>
|
||||
<int key="NSvFlags">278</int>
|
||||
<string key="NSFrame">{{1, 1}, {40, 40}}</string>
|
||||
<reference key="NSSuperview" ref="148019574"/>
|
||||
<reference key="NSWindow"/>
|
||||
<reference key="NSNextKeyView" ref="794256667"/>
|
||||
<reference key="IBUIBackgroundColor" ref="459512199"/>
|
||||
<bool key="IBUIClearsContextBeforeDrawing">NO</bool>
|
||||
<object class="IBUIAccessibilityConfiguration" key="IBUIAccessibilityConfiguration">
|
||||
<string key="IBUIAccessibilityLabel">White</string>
|
||||
<boolean value="YES" key="IBUIIsAccessibilityElement"/>
|
||||
</object>
|
||||
<string key="targetRuntimeIdentifier">IBCocoaTouchFramework</string>
|
||||
</object>
|
||||
<object class="IBUIView" id="794256667">
|
||||
<reference key="NSNextResponder" ref="148019574"/>
|
||||
<int key="NSvFlags">275</int>
|
||||
<string key="NSFrame">{{42.000000023841864, 1}, {40, 40}}</string>
|
||||
<reference key="NSSuperview" ref="148019574"/>
|
||||
<reference key="NSWindow"/>
|
||||
<reference key="NSNextKeyView" ref="994297942"/>
|
||||
<object class="NSColor" key="IBUIBackgroundColor">
|
||||
<int key="NSColorSpace">3</int>
|
||||
<bytes key="NSWhite">MAA</bytes>
|
||||
</object>
|
||||
<bool key="IBUIClearsContextBeforeDrawing">NO</bool>
|
||||
<object class="IBUIAccessibilityConfiguration" key="IBUIAccessibilityConfiguration">
|
||||
<string key="IBUIAccessibilityLabel">Black</string>
|
||||
<boolean value="YES" key="IBUIIsAccessibilityElement"/>
|
||||
</object>
|
||||
<string key="targetRuntimeIdentifier">IBCocoaTouchFramework</string>
|
||||
</object>
|
||||
</array>
|
||||
<string key="NSFrameSize">{83, 42}</string>
|
||||
<reference key="NSSuperview" ref="753378649"/>
|
||||
<reference key="NSWindow"/>
|
||||
<reference key="NSNextKeyView" ref="713903418"/>
|
||||
<object class="NSColor" key="IBUIBackgroundColor">
|
||||
<int key="NSColorSpace">3</int>
|
||||
<bytes key="NSWhite">MQA</bytes>
|
||||
<reference key="NSCustomColorSpace" ref="606899236"/>
|
||||
</object>
|
||||
<bool key="IBUIClearsContextBeforeDrawing">NO</bool>
|
||||
<string key="targetRuntimeIdentifier">IBCocoaTouchFramework</string>
|
||||
</object>
|
||||
<object class="IBUIView" id="272625938">
|
||||
<reference key="NSNextResponder" ref="753378649"/>
|
||||
<int key="NSvFlags">297</int>
|
||||
<array class="NSMutableArray" key="NSSubviews">
|
||||
<object class="IBUIView" id="954839282">
|
||||
<reference key="NSNextResponder" ref="272625938"/>
|
||||
<int key="NSvFlags">274</int>
|
||||
<string key="NSFrame">{{1, 1}, {80, 40}}</string>
|
||||
<reference key="NSSuperview" ref="272625938"/>
|
||||
<reference key="NSWindow"/>
|
||||
<reference key="NSNextKeyView" ref="407640069"/>
|
||||
<object class="NSColor" key="IBUIBackgroundColor">
|
||||
<int key="NSColorSpace">3</int>
|
||||
<bytes key="NSWhite">MC41AA</bytes>
|
||||
<reference key="NSCustomColorSpace" ref="606899236"/>
|
||||
</object>
|
||||
<bool key="IBUIClearsContextBeforeDrawing">NO</bool>
|
||||
<bool key="IBUIUserInteractionEnabled">NO</bool>
|
||||
<object class="IBUIAccessibilityConfiguration" key="IBUIAccessibilityConfiguration">
|
||||
<string key="IBUIAccessibilityLabel">New color</string>
|
||||
<integer value="0" key="IBUIAccessibilityTraits"/>
|
||||
<boolean value="YES" key="IBUIIsAccessibilityElement"/>
|
||||
</object>
|
||||
<string key="targetRuntimeIdentifier">IBCocoaTouchFramework</string>
|
||||
</object>
|
||||
</array>
|
||||
<string key="NSFrame">{{176, 0}, {82, 42}}</string>
|
||||
<reference key="NSSuperview" ref="753378649"/>
|
||||
<reference key="NSWindow"/>
|
||||
<reference key="NSNextKeyView" ref="954839282"/>
|
||||
<object class="NSColor" key="IBUIBackgroundColor">
|
||||
<int key="NSColorSpace">3</int>
|
||||
<bytes key="NSWhite">MQA</bytes>
|
||||
<reference key="NSCustomColorSpace" ref="606899236"/>
|
||||
</object>
|
||||
<bool key="IBUIClearsContextBeforeDrawing">NO</bool>
|
||||
<bool key="IBUIUserInteractionEnabled">NO</bool>
|
||||
<string key="targetRuntimeIdentifier">IBCocoaTouchFramework</string>
|
||||
</object>
|
||||
</array>
|
||||
<string key="NSFrame">{{31, 18}, {258, 42}}</string>
|
||||
<reference key="NSSuperview" ref="883825266"/>
|
||||
<reference key="NSWindow"/>
|
||||
<reference key="NSNextKeyView" ref="148019574"/>
|
||||
<object class="NSColor" key="IBUIBackgroundColor">
|
||||
<int key="NSColorSpace">3</int>
|
||||
<bytes key="NSWhite">MCAwAA</bytes>
|
||||
</object>
|
||||
<string key="targetRuntimeIdentifier">IBCocoaTouchFramework</string>
|
||||
</object>
|
||||
</array>
|
||||
<string key="NSFrame">{{0, 64}, {320, 416}}</string>
|
||||
<reference key="NSSuperview"/>
|
||||
<reference key="NSWindow"/>
|
||||
<reference key="NSNextKeyView" ref="753378649"/>
|
||||
<object class="NSColor" key="IBUIBackgroundColor">
|
||||
<int key="NSColorSpace">3</int>
|
||||
<bytes key="NSWhite">MC4xOTg5Nzk1OTE4AA</bytes>
|
||||
</object>
|
||||
<bool key="IBUIClearsContextBeforeDrawing">NO</bool>
|
||||
<object class="IBUISimulatedStatusBarMetrics" key="IBUISimulatedStatusBarMetrics"/>
|
||||
<object class="IBUISimulatedNavigationBarMetrics" key="IBUISimulatedTopBarMetrics">
|
||||
<int key="IBUIBarStyle">1</int>
|
||||
<bool key="IBUIPrompted">NO</bool>
|
||||
</object>
|
||||
<object class="IBUISimulatedSizeMetrics" key="IBUISimulatedDestinationMetrics">
|
||||
<string key="IBUISimulatedSizeMetricsClass">IBUISimulatedFreeformSizeMetricsSentinel</string>
|
||||
<string key="IBUIDisplayName">Freeform</string>
|
||||
</object>
|
||||
<string key="targetRuntimeIdentifier">IBCocoaTouchFramework</string>
|
||||
</object>
|
||||
</array>
|
||||
<object class="IBObjectContainer" key="IBDocument.Objects">
|
||||
<array key="connectionRecords">
|
||||
<object class="IBConnectionRecord">
|
||||
<object class="IBCocoaTouchOutletConnection" key="connection">
|
||||
<string key="label">view</string>
|
||||
<reference key="source" ref="372490531"/>
|
||||
<reference key="destination" ref="883825266"/>
|
||||
</object>
|
||||
<int key="connectionID">35</int>
|
||||
</object>
|
||||
<object class="IBConnectionRecord">
|
||||
<object class="IBCocoaTouchOutletConnection" key="connection">
|
||||
<string key="label">squareView</string>
|
||||
<reference key="source" ref="372490531"/>
|
||||
<reference key="destination" ref="998465631"/>
|
||||
</object>
|
||||
<int key="connectionID">45</int>
|
||||
</object>
|
||||
<object class="IBConnectionRecord">
|
||||
<object class="IBCocoaTouchOutletConnection" key="connection">
|
||||
<string key="label">barView</string>
|
||||
<reference key="source" ref="372490531"/>
|
||||
<reference key="destination" ref="830998350"/>
|
||||
</object>
|
||||
<int key="connectionID">46</int>
|
||||
</object>
|
||||
<object class="IBConnectionRecord">
|
||||
<object class="IBCocoaTouchOutletConnection" key="connection">
|
||||
<string key="label">squarePicker</string>
|
||||
<reference key="source" ref="372490531"/>
|
||||
<reference key="destination" ref="407640069"/>
|
||||
</object>
|
||||
<int key="connectionID">57</int>
|
||||
</object>
|
||||
<object class="IBConnectionRecord">
|
||||
<object class="IBCocoaTouchOutletConnection" key="connection">
|
||||
<string key="label">barPicker</string>
|
||||
<reference key="source" ref="372490531"/>
|
||||
<reference key="destination" ref="65830691"/>
|
||||
</object>
|
||||
<int key="connectionID">58</int>
|
||||
</object>
|
||||
<object class="IBConnectionRecord">
|
||||
<object class="IBCocoaTouchOutletConnection" key="connection">
|
||||
<string key="label">resultColorView</string>
|
||||
<reference key="source" ref="372490531"/>
|
||||
<reference key="destination" ref="954839282"/>
|
||||
</object>
|
||||
<int key="connectionID">63</int>
|
||||
</object>
|
||||
<object class="IBConnectionRecord">
|
||||
<object class="IBCocoaTouchOutletConnection" key="connection">
|
||||
<string key="label">sourceColorView</string>
|
||||
<reference key="source" ref="372490531"/>
|
||||
<reference key="destination" ref="656723274"/>
|
||||
</object>
|
||||
<int key="connectionID">67</int>
|
||||
</object>
|
||||
<object class="IBConnectionRecord">
|
||||
<object class="IBCocoaTouchEventConnection" key="connection">
|
||||
<string key="label">takeBarValue:</string>
|
||||
<reference key="source" ref="65830691"/>
|
||||
<reference key="destination" ref="372490531"/>
|
||||
<int key="IBEventType">13</int>
|
||||
</object>
|
||||
<int key="connectionID">53</int>
|
||||
</object>
|
||||
<object class="IBConnectionRecord">
|
||||
<object class="IBCocoaTouchEventConnection" key="connection">
|
||||
<string key="label">takeSquareValue:</string>
|
||||
<reference key="source" ref="407640069"/>
|
||||
<reference key="destination" ref="372490531"/>
|
||||
<int key="IBEventType">13</int>
|
||||
</object>
|
||||
<int key="connectionID">56</int>
|
||||
</object>
|
||||
<object class="IBConnectionRecord">
|
||||
<object class="IBCocoaTouchEventConnection" key="connection">
|
||||
<string key="label">takeBackgroundColor:</string>
|
||||
<reference key="source" ref="656723274"/>
|
||||
<reference key="destination" ref="372490531"/>
|
||||
<int key="IBEventType">7</int>
|
||||
</object>
|
||||
<int key="connectionID">78</int>
|
||||
</object>
|
||||
<object class="IBConnectionRecord">
|
||||
<object class="IBCocoaTouchEventConnection" key="connection">
|
||||
<string key="label">takeBackgroundColor:</string>
|
||||
<reference key="source" ref="713903418"/>
|
||||
<reference key="destination" ref="372490531"/>
|
||||
<int key="IBEventType">7</int>
|
||||
</object>
|
||||
<int key="connectionID">75</int>
|
||||
</object>
|
||||
<object class="IBConnectionRecord">
|
||||
<object class="IBCocoaTouchEventConnection" key="connection">
|
||||
<string key="label">takeBackgroundColor:</string>
|
||||
<reference key="source" ref="794256667"/>
|
||||
<reference key="destination" ref="372490531"/>
|
||||
<int key="IBEventType">7</int>
|
||||
</object>
|
||||
<int key="connectionID">77</int>
|
||||
</object>
|
||||
</array>
|
||||
<object class="IBMutableOrderedSet" key="objectRecords">
|
||||
<array key="orderedObjects">
|
||||
<object class="IBObjectRecord">
|
||||
<int key="objectID">0</int>
|
||||
<array key="object" id="0"/>
|
||||
<reference key="children" ref="1000"/>
|
||||
<nil key="parent"/>
|
||||
</object>
|
||||
<object class="IBObjectRecord">
|
||||
<int key="objectID">-1</int>
|
||||
<reference key="object" ref="372490531"/>
|
||||
<reference key="parent" ref="0"/>
|
||||
<string key="objectName">File's Owner</string>
|
||||
</object>
|
||||
<object class="IBObjectRecord">
|
||||
<int key="objectID">-2</int>
|
||||
<reference key="object" ref="815241450"/>
|
||||
<reference key="parent" ref="0"/>
|
||||
</object>
|
||||
<object class="IBObjectRecord">
|
||||
<int key="objectID">34</int>
|
||||
<reference key="object" ref="883825266"/>
|
||||
<array class="NSMutableArray" key="children">
|
||||
<reference ref="65830691"/>
|
||||
<reference ref="407640069"/>
|
||||
<reference ref="753378649"/>
|
||||
</array>
|
||||
<reference key="parent" ref="0"/>
|
||||
</object>
|
||||
<object class="IBObjectRecord">
|
||||
<int key="objectID">52</int>
|
||||
<reference key="object" ref="65830691"/>
|
||||
<array class="NSMutableArray" key="children">
|
||||
<reference ref="804282275"/>
|
||||
</array>
|
||||
<reference key="parent" ref="883825266"/>
|
||||
</object>
|
||||
<object class="IBObjectRecord">
|
||||
<int key="objectID">51</int>
|
||||
<reference key="object" ref="804282275"/>
|
||||
<array class="NSMutableArray" key="children">
|
||||
<reference ref="830998350"/>
|
||||
</array>
|
||||
<reference key="parent" ref="65830691"/>
|
||||
</object>
|
||||
<object class="IBObjectRecord">
|
||||
<int key="objectID">41</int>
|
||||
<reference key="object" ref="830998350"/>
|
||||
<reference key="parent" ref="804282275"/>
|
||||
</object>
|
||||
<object class="IBObjectRecord">
|
||||
<int key="objectID">55</int>
|
||||
<reference key="object" ref="407640069"/>
|
||||
<array class="NSMutableArray" key="children">
|
||||
<reference ref="905743537"/>
|
||||
</array>
|
||||
<reference key="parent" ref="883825266"/>
|
||||
</object>
|
||||
<object class="IBObjectRecord">
|
||||
<int key="objectID">50</int>
|
||||
<reference key="object" ref="905743537"/>
|
||||
<array class="NSMutableArray" key="children">
|
||||
<reference ref="998465631"/>
|
||||
</array>
|
||||
<reference key="parent" ref="407640069"/>
|
||||
</object>
|
||||
<object class="IBObjectRecord">
|
||||
<int key="objectID">39</int>
|
||||
<reference key="object" ref="998465631"/>
|
||||
<reference key="parent" ref="905743537"/>
|
||||
</object>
|
||||
<object class="IBObjectRecord">
|
||||
<int key="objectID">79</int>
|
||||
<reference key="object" ref="753378649"/>
|
||||
<array class="NSMutableArray" key="children">
|
||||
<reference ref="994297942"/>
|
||||
<reference ref="148019574"/>
|
||||
<reference ref="272625938"/>
|
||||
</array>
|
||||
<reference key="parent" ref="883825266"/>
|
||||
</object>
|
||||
<object class="IBObjectRecord">
|
||||
<int key="objectID">65</int>
|
||||
<reference key="object" ref="994297942"/>
|
||||
<array class="NSMutableArray" key="children">
|
||||
<reference ref="656723274"/>
|
||||
</array>
|
||||
<reference key="parent" ref="753378649"/>
|
||||
</object>
|
||||
<object class="IBObjectRecord">
|
||||
<int key="objectID">66</int>
|
||||
<reference key="object" ref="656723274"/>
|
||||
<reference key="parent" ref="994297942"/>
|
||||
</object>
|
||||
<object class="IBObjectRecord">
|
||||
<int key="objectID">69</int>
|
||||
<reference key="object" ref="148019574"/>
|
||||
<array class="NSMutableArray" key="children">
|
||||
<reference ref="794256667"/>
|
||||
<reference ref="713903418"/>
|
||||
</array>
|
||||
<reference key="parent" ref="753378649"/>
|
||||
</object>
|
||||
<object class="IBObjectRecord">
|
||||
<int key="objectID">72</int>
|
||||
<reference key="object" ref="794256667"/>
|
||||
<reference key="parent" ref="148019574"/>
|
||||
</object>
|
||||
<object class="IBObjectRecord">
|
||||
<int key="objectID">70</int>
|
||||
<reference key="object" ref="713903418"/>
|
||||
<reference key="parent" ref="148019574"/>
|
||||
</object>
|
||||
<object class="IBObjectRecord">
|
||||
<int key="objectID">62</int>
|
||||
<reference key="object" ref="272625938"/>
|
||||
<array class="NSMutableArray" key="children">
|
||||
<reference ref="954839282"/>
|
||||
</array>
|
||||
<reference key="parent" ref="753378649"/>
|
||||
</object>
|
||||
<object class="IBObjectRecord">
|
||||
<int key="objectID">43</int>
|
||||
<reference key="object" ref="954839282"/>
|
||||
<reference key="parent" ref="272625938"/>
|
||||
</object>
|
||||
</array>
|
||||
</object>
|
||||
<dictionary class="NSMutableDictionary" key="flattenedProperties">
|
||||
<string key="-1.CustomClassName">InfColorPickerController</string>
|
||||
<string key="-1.IBPluginDependency">com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
|
||||
<string key="-2.CustomClassName">UIResponder</string>
|
||||
<string key="-2.IBPluginDependency">com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
|
||||
<string key="34.IBPluginDependency">com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
|
||||
<string key="39.CustomClassName">InfColorSquareView</string>
|
||||
<string key="39.IBPluginDependency">com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
|
||||
<string key="41.CustomClassName">InfColorBarView</string>
|
||||
<string key="41.IBPluginDependency">com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
|
||||
<string key="43.IBPluginDependency">com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
|
||||
<string key="50.IBPluginDependency">com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
|
||||
<string key="51.IBPluginDependency">com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
|
||||
<string key="52.CustomClassName">InfColorBarPicker</string>
|
||||
<string key="52.IBPluginDependency">com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
|
||||
<string key="55.CustomClassName">InfColorSquarePicker</string>
|
||||
<string key="55.IBPluginDependency">com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
|
||||
<string key="62.IBPluginDependency">com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
|
||||
<string key="65.IBPluginDependency">com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
|
||||
<string key="66.CustomClassName">InfSourceColorView</string>
|
||||
<string key="66.IBPluginDependency">com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
|
||||
<string key="69.IBPluginDependency">com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
|
||||
<string key="70.CustomClassName">InfSourceColorView</string>
|
||||
<string key="70.IBPluginDependency">com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
|
||||
<string key="72.CustomClassName">InfSourceColorView</string>
|
||||
<string key="72.IBPluginDependency">com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
|
||||
<string key="79.IBPluginDependency">com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
|
||||
</dictionary>
|
||||
<dictionary class="NSMutableDictionary" key="unlocalizedProperties"/>
|
||||
<nil key="activeLocalization"/>
|
||||
<dictionary class="NSMutableDictionary" key="localizations"/>
|
||||
<nil key="sourceID"/>
|
||||
<int key="maxID">87</int>
|
||||
</object>
|
||||
<object class="IBClassDescriber" key="IBDocument.Classes">
|
||||
<array class="NSMutableArray" key="referencedPartialClassDescriptions">
|
||||
<object class="IBPartialClassDescription">
|
||||
<string key="className">InfColorBarPicker</string>
|
||||
<string key="superclassName">UIControl</string>
|
||||
<object class="IBClassDescriptionSource" key="sourceIdentifier" id="11997832">
|
||||
<string key="majorKey">IBProjectSource</string>
|
||||
<string key="minorKey">../InfColorPicker/InfColorBarPicker.h</string>
|
||||
</object>
|
||||
</object>
|
||||
<object class="IBPartialClassDescription">
|
||||
<string key="className">InfColorBarView</string>
|
||||
<string key="superclassName">UIView</string>
|
||||
<reference key="sourceIdentifier" ref="11997832"/>
|
||||
</object>
|
||||
<object class="IBPartialClassDescription">
|
||||
<string key="className">InfColorPickerController</string>
|
||||
<string key="superclassName">UIViewController</string>
|
||||
<object class="IBClassDescriptionSource" key="sourceIdentifier">
|
||||
<string key="majorKey">IBProjectSource</string>
|
||||
<string key="minorKey">../InfColorPicker/InfColorPickerController.h</string>
|
||||
</object>
|
||||
</object>
|
||||
<object class="IBPartialClassDescription">
|
||||
<string key="className">InfColorPickerController</string>
|
||||
<dictionary class="NSMutableDictionary" key="actions">
|
||||
<string key="done:">id</string>
|
||||
<string key="takeBackgroundColor:">UIView</string>
|
||||
<string key="takeBarValue:">InfColorBarPicker</string>
|
||||
<string key="takeSquareValue:">InfColorSquarePicker</string>
|
||||
</dictionary>
|
||||
<dictionary class="NSMutableDictionary" key="actionInfosByName">
|
||||
<object class="IBActionInfo" key="done:">
|
||||
<string key="name">done:</string>
|
||||
<string key="candidateClassName">id</string>
|
||||
</object>
|
||||
<object class="IBActionInfo" key="takeBackgroundColor:">
|
||||
<string key="name">takeBackgroundColor:</string>
|
||||
<string key="candidateClassName">UIView</string>
|
||||
</object>
|
||||
<object class="IBActionInfo" key="takeBarValue:">
|
||||
<string key="name">takeBarValue:</string>
|
||||
<string key="candidateClassName">InfColorBarPicker</string>
|
||||
</object>
|
||||
<object class="IBActionInfo" key="takeSquareValue:">
|
||||
<string key="name">takeSquareValue:</string>
|
||||
<string key="candidateClassName">InfColorSquarePicker</string>
|
||||
</object>
|
||||
</dictionary>
|
||||
<dictionary class="NSMutableDictionary" key="outlets">
|
||||
<string key="barPicker">InfColorBarPicker</string>
|
||||
<string key="barView">InfColorBarView</string>
|
||||
<string key="navController">UINavigationController</string>
|
||||
<string key="resultColorView">UIView</string>
|
||||
<string key="sourceColorView">UIView</string>
|
||||
<string key="squarePicker">InfColorSquarePicker</string>
|
||||
<string key="squareView">InfColorSquareView</string>
|
||||
</dictionary>
|
||||
<dictionary class="NSMutableDictionary" key="toOneOutletInfosByName">
|
||||
<object class="IBToOneOutletInfo" key="barPicker">
|
||||
<string key="name">barPicker</string>
|
||||
<string key="candidateClassName">InfColorBarPicker</string>
|
||||
</object>
|
||||
<object class="IBToOneOutletInfo" key="barView">
|
||||
<string key="name">barView</string>
|
||||
<string key="candidateClassName">InfColorBarView</string>
|
||||
</object>
|
||||
<object class="IBToOneOutletInfo" key="navController">
|
||||
<string key="name">navController</string>
|
||||
<string key="candidateClassName">UINavigationController</string>
|
||||
</object>
|
||||
<object class="IBToOneOutletInfo" key="resultColorView">
|
||||
<string key="name">resultColorView</string>
|
||||
<string key="candidateClassName">UIView</string>
|
||||
</object>
|
||||
<object class="IBToOneOutletInfo" key="sourceColorView">
|
||||
<string key="name">sourceColorView</string>
|
||||
<string key="candidateClassName">UIView</string>
|
||||
</object>
|
||||
<object class="IBToOneOutletInfo" key="squarePicker">
|
||||
<string key="name">squarePicker</string>
|
||||
<string key="candidateClassName">InfColorSquarePicker</string>
|
||||
</object>
|
||||
<object class="IBToOneOutletInfo" key="squareView">
|
||||
<string key="name">squareView</string>
|
||||
<string key="candidateClassName">InfColorSquareView</string>
|
||||
</object>
|
||||
</dictionary>
|
||||
<object class="IBClassDescriptionSource" key="sourceIdentifier">
|
||||
<string key="majorKey">IBProjectSource</string>
|
||||
<string key="minorKey">../InfColorPicker/InfColorPickerController.m</string>
|
||||
</object>
|
||||
</object>
|
||||
<object class="IBPartialClassDescription">
|
||||
<string key="className">InfColorSquarePicker</string>
|
||||
<string key="superclassName">UIControl</string>
|
||||
<object class="IBClassDescriptionSource" key="sourceIdentifier" id="657624342">
|
||||
<string key="majorKey">IBProjectSource</string>
|
||||
<string key="minorKey">../InfColorPicker/InfColorSquarePicker.h</string>
|
||||
</object>
|
||||
</object>
|
||||
<object class="IBPartialClassDescription">
|
||||
<string key="className">InfColorSquareView</string>
|
||||
<string key="superclassName">UIImageView</string>
|
||||
<reference key="sourceIdentifier" ref="657624342"/>
|
||||
</object>
|
||||
<object class="IBPartialClassDescription">
|
||||
<string key="className">InfSourceColorView</string>
|
||||
<string key="superclassName">UIControl</string>
|
||||
<object class="IBClassDescriptionSource" key="sourceIdentifier">
|
||||
<string key="majorKey">IBProjectSource</string>
|
||||
<string key="minorKey">../InfColorPicker/InfSourceColorView.h</string>
|
||||
</object>
|
||||
</object>
|
||||
</array>
|
||||
</object>
|
||||
<int key="IBDocument.localizationMode">0</int>
|
||||
<string key="IBDocument.TargetRuntimeIdentifier">IBCocoaTouchFramework</string>
|
||||
<bool key="IBDocument.previouslyAttemptedUpgradeToXcode5">NO</bool>
|
||||
<object class="NSMutableDictionary" key="IBDocument.PluginDeclaredDevelopmentDependencies">
|
||||
<string key="NS.key.0">com.apple.InterfaceBuilder.CocoaTouchPlugin.InterfaceBuilder3</string>
|
||||
<integer value="4600" key="NS.object.0"/>
|
||||
</object>
|
||||
<bool key="IBDocument.PluginDeclaredDependenciesTrackSystemTargetVersion">YES</bool>
|
||||
<int key="IBDocument.defaultPropertyAccessControl">3</int>
|
||||
</data>
|
||||
</archive>
|
|
@ -0,0 +1,32 @@
|
|||
//==============================================================================
|
||||
//
|
||||
// InfColorSquarePicker.h
|
||||
// InfColorPicker
|
||||
//
|
||||
// Created by Troy Gaul on 8/9/10.
|
||||
//
|
||||
// Copyright (c) 2011-2013 InfinitApps LLC: http://infinitapps.com
|
||||
// Some rights reserved: http://opensource.org/licenses/MIT
|
||||
//
|
||||
//==============================================================================
|
||||
|
||||
#import <UIKit/UIKit.h>
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
@interface InfColorSquareView : UIImageView
|
||||
|
||||
@property (nonatomic) float hue;
|
||||
|
||||
@end
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
@interface InfColorSquarePicker : UIControl
|
||||
|
||||
@property (nonatomic) float hue;
|
||||
@property (nonatomic) CGPoint value;
|
||||
|
||||
@end
|
||||
|
||||
//------------------------------------------------------------------------------
|
|
@ -0,0 +1,178 @@
|
|||
//==============================================================================
|
||||
//
|
||||
// InfColorSquarePicker.m
|
||||
// InfColorPicker
|
||||
//
|
||||
// Created by Troy Gaul on 8/9/10.
|
||||
//
|
||||
// Copyright (c) 2011-2013 InfinitApps LLC: http://infinitapps.com
|
||||
// Some rights reserved: http://opensource.org/licenses/MIT
|
||||
//
|
||||
//==============================================================================
|
||||
|
||||
#import "InfColorSquarePicker.h"
|
||||
|
||||
#import "InfColorIndicatorView.h"
|
||||
#import "InfHSBSupport.h"
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
#if !__has_feature(objc_arc)
|
||||
#error This file must be compiled with ARC enabled (-fobjc-arc).
|
||||
#endif
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
#define kContentInsetX 20
|
||||
#define kContentInsetY 20
|
||||
|
||||
#define kIndicatorSize 24
|
||||
|
||||
//==============================================================================
|
||||
|
||||
@implementation InfColorSquareView
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
- (void) updateContent
|
||||
{
|
||||
CGImageRef imageRef = createSaturationBrightnessSquareContentImageWithHue(self.hue * 360);
|
||||
self.image = [UIImage imageWithCGImage: imageRef];
|
||||
CGImageRelease(imageRef);
|
||||
}
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
#pragma mark Properties
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
- (void) setHue: (float) value
|
||||
{
|
||||
if (value != _hue || self.image == nil) {
|
||||
_hue = value;
|
||||
|
||||
[self updateContent];
|
||||
}
|
||||
}
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
@end
|
||||
|
||||
//==============================================================================
|
||||
|
||||
@implementation InfColorSquarePicker {
|
||||
InfColorIndicatorView* indicator;
|
||||
}
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
#pragma mark Appearance
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
- (void) setIndicatorColor
|
||||
{
|
||||
if (indicator == nil)
|
||||
return;
|
||||
|
||||
indicator.color = [UIColor colorWithHue: self.hue
|
||||
saturation: self.value.x
|
||||
brightness: self.value.y
|
||||
alpha: 1.0f];
|
||||
}
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
- (NSString*) spokenValue
|
||||
{
|
||||
return [NSString stringWithFormat: @"%d%% saturation, %d%% brightness",
|
||||
(int) (self.value.x * 100), (int) (self.value.y * 100)];
|
||||
}
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
- (void) layoutSubviews
|
||||
{
|
||||
if (indicator == nil) {
|
||||
CGRect indicatorRect = { CGPointZero, { kIndicatorSize, kIndicatorSize } };
|
||||
indicator = [[InfColorIndicatorView alloc] initWithFrame: indicatorRect];
|
||||
[self addSubview: indicator];
|
||||
}
|
||||
|
||||
[self setIndicatorColor];
|
||||
|
||||
CGFloat indicatorX = kContentInsetX + (self.value.x * (self.bounds.size.width - 2 * kContentInsetX));
|
||||
CGFloat indicatorY = self.bounds.size.height - kContentInsetY
|
||||
- (self.value.y * (self.bounds.size.height - 2 * kContentInsetY));
|
||||
|
||||
indicator.center = CGPointMake(indicatorX, indicatorY);
|
||||
}
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
#pragma mark Properties
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
- (void) setHue: (float) newValue
|
||||
{
|
||||
if (newValue != _hue) {
|
||||
_hue = newValue;
|
||||
|
||||
[self setIndicatorColor];
|
||||
}
|
||||
}
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
- (void) setValue: (CGPoint) newValue
|
||||
{
|
||||
if (!CGPointEqualToPoint(newValue, _value)) {
|
||||
_value = newValue;
|
||||
|
||||
[self sendActionsForControlEvents: UIControlEventValueChanged];
|
||||
[self setNeedsLayout];
|
||||
}
|
||||
}
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
#pragma mark Tracking
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
- (void) trackIndicatorWithTouch: (UITouch*) touch
|
||||
{
|
||||
CGRect bounds = self.bounds;
|
||||
|
||||
CGPoint touchValue;
|
||||
|
||||
touchValue.x = ([touch locationInView: self].x - kContentInsetX)
|
||||
/ (bounds.size.width - 2 * kContentInsetX);
|
||||
|
||||
touchValue.y = ([touch locationInView: self].y - kContentInsetY)
|
||||
/ (bounds.size.height - 2 * kContentInsetY);
|
||||
|
||||
touchValue.x = pin(0.0f, touchValue.x, 1.0f);
|
||||
touchValue.y = 1.0f - pin(0.0f, touchValue.y, 1.0f);
|
||||
|
||||
self.value = touchValue;
|
||||
}
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
- (BOOL) beginTrackingWithTouch: (UITouch*) touch
|
||||
withEvent: (UIEvent*) event
|
||||
{
|
||||
[self trackIndicatorWithTouch: touch];
|
||||
return YES;
|
||||
}
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
- (BOOL) continueTrackingWithTouch: (UITouch*) touch
|
||||
withEvent: (UIEvent*) event
|
||||
{
|
||||
[self trackIndicatorWithTouch: touch];
|
||||
return YES;
|
||||
}
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
@end
|
||||
|
||||
//==============================================================================
|
|
@ -0,0 +1,53 @@
|
|||
//==============================================================================
|
||||
//
|
||||
// InfHSBSupport.h
|
||||
// InfColorPicker
|
||||
//
|
||||
// Created by Troy Gaul on 7 Aug 2010.
|
||||
//
|
||||
// Copyright (c) 2011-2013 InfinitApps LLC: http://infinitapps.com
|
||||
// Some rights reserved: http://opensource.org/licenses/MIT
|
||||
//
|
||||
//==============================================================================
|
||||
|
||||
#import <UIKit/UIKit.h>
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
float pin(float minValue, float value, float maxValue);
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
// These functions convert between an RGB value with components in the
|
||||
// 0.0f..1.0f range to HSV where Hue is 0 .. 360 and Saturation and
|
||||
// Value (aka Brightness) are percentages expressed as 0.0f..1.0f.
|
||||
//
|
||||
// Note that HSB (B = Brightness) and HSV (V = Value) are interchangeable
|
||||
// names that mean the same thing. I use V here as it is unambiguous
|
||||
// relative to the B in RGB, which is Blue.
|
||||
|
||||
void HSVtoRGB(float h, float s, float v, float* r, float* g, float* b);
|
||||
|
||||
void RGBToHSV(float r, float g, float b, float* h, float* s, float* v,
|
||||
BOOL preserveHS);
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
CGImageRef createSaturationBrightnessSquareContentImageWithHue(float hue);
|
||||
// Generates a 256x256 image with the specified constant hue where the
|
||||
// Saturation and value vary in the X and Y axes respectively.
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
typedef enum {
|
||||
InfComponentIndexHue = 0,
|
||||
InfComponentIndexSaturation = 1,
|
||||
InfComponentIndexBrightness = 2,
|
||||
} InfComponentIndex;
|
||||
|
||||
CGImageRef createHSVBarContentImage(InfComponentIndex barComponentIndex, float hsv[3]);
|
||||
// Generates an image where the specified barComponentIndex (0=H, 1=S, 2=V)
|
||||
// varies across the x-axis of the 256x1 pixel image and the other components
|
||||
// remain at the constant value specified in the hsv array.
|
||||
|
||||
//------------------------------------------------------------------------------
|
|
@ -0,0 +1,279 @@
|
|||
//==============================================================================
|
||||
//
|
||||
// InfHSBSupport.m
|
||||
// InfColorPicker
|
||||
//
|
||||
// Created by Troy Gaul on 7 Aug 2010.
|
||||
//
|
||||
// Copyright (c) 2011-2013 InfinitApps LLC: http://infinitapps.com
|
||||
// Some rights reserved: http://opensource.org/licenses/MIT
|
||||
//
|
||||
//==============================================================================
|
||||
|
||||
#import "InfHSBSupport.h"
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
float pin(float minValue, float value, float maxValue)
|
||||
{
|
||||
if (minValue > value)
|
||||
return minValue;
|
||||
else if (maxValue < value)
|
||||
return maxValue;
|
||||
else
|
||||
return value;
|
||||
}
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
#pragma mark Floating point conversion
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
static void hueToComponentFactors(float h, float* r, float* g, float* b)
|
||||
{
|
||||
float h_prime = h / 60.0f;
|
||||
float x = 1.0f - fabsf(fmodf(h_prime, 2.0f) - 1.0f);
|
||||
|
||||
if (h_prime < 1.0f) {
|
||||
*r = 1;
|
||||
*g = x;
|
||||
*b = 0;
|
||||
}
|
||||
else if (h_prime < 2.0f) {
|
||||
*r = x;
|
||||
*g = 1;
|
||||
*b = 0;
|
||||
}
|
||||
else if (h_prime < 3.0f) {
|
||||
*r = 0;
|
||||
*g = 1;
|
||||
*b = x;
|
||||
}
|
||||
else if (h_prime < 4.0f) {
|
||||
*r = 0;
|
||||
*g = x;
|
||||
*b = 1;
|
||||
}
|
||||
else if (h_prime < 5.0f) {
|
||||
*r = x;
|
||||
*g = 0;
|
||||
*b = 1;
|
||||
}
|
||||
else {
|
||||
*r = 1;
|
||||
*g = 0;
|
||||
*b = x;
|
||||
}
|
||||
}
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
void HSVtoRGB(float h, float s, float v, float* r, float* g, float* b)
|
||||
{
|
||||
hueToComponentFactors(h, r, g, b);
|
||||
|
||||
float c = v * s;
|
||||
float m = v - c;
|
||||
|
||||
*r = *r * c + m;
|
||||
*g = *g * c + m;
|
||||
*b = *b * c + m;
|
||||
}
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
void RGBToHSV(float r, float g, float b, float* h, float* s, float* v, BOOL preserveHS)
|
||||
{
|
||||
float max = r;
|
||||
|
||||
if (max < g)
|
||||
max = g;
|
||||
|
||||
if (max < b)
|
||||
max = b;
|
||||
|
||||
float min = r;
|
||||
|
||||
if (min > g)
|
||||
min = g;
|
||||
|
||||
if (min > b)
|
||||
min = b;
|
||||
|
||||
// Brightness (aka Value)
|
||||
|
||||
*v = max;
|
||||
|
||||
// Saturation
|
||||
|
||||
float sat;
|
||||
|
||||
if (max != 0.0f) {
|
||||
sat = (max - min) / max;
|
||||
*s = sat;
|
||||
}
|
||||
else {
|
||||
sat = 0.0f;
|
||||
|
||||
if (!preserveHS)
|
||||
*s = 0.0f; // Black, so sat is undefined, use 0
|
||||
}
|
||||
|
||||
// Hue
|
||||
|
||||
float delta;
|
||||
|
||||
if (sat == 0.0f) {
|
||||
if (!preserveHS)
|
||||
*h = 0.0f; // No color, so hue is undefined, use 0
|
||||
}
|
||||
else {
|
||||
delta = max - min;
|
||||
|
||||
float hue;
|
||||
|
||||
if (r == max)
|
||||
hue = (g - b) / delta;
|
||||
else if (g == max)
|
||||
hue = 2 + (b - r) / delta;
|
||||
else
|
||||
hue = 4 + (r - g) / delta;
|
||||
|
||||
hue /= 6.0f;
|
||||
|
||||
if (hue < 0.0f)
|
||||
hue += 1.0f;
|
||||
|
||||
if (!preserveHS || fabsf(hue - *h) != 1.0f)
|
||||
*h = hue; // 0.0 and 1.0 hues are actually both the same (red)
|
||||
}
|
||||
}
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
#pragma mark Square/Bar image creation
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
static UInt8 blend(UInt8 value, UInt8 percentIn255)
|
||||
{
|
||||
return (UInt8) ((int) value * percentIn255 / 255);
|
||||
}
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
static CGContextRef createBGRxImageContext(int w, int h, void* data)
|
||||
{
|
||||
CGColorSpaceRef colorSpace = CGColorSpaceCreateDeviceRGB();
|
||||
|
||||
CGBitmapInfo kBGRxBitmapInfo = kCGBitmapByteOrder32Little | kCGImageAlphaNoneSkipFirst;
|
||||
// BGRA is the most efficient on the iPhone.
|
||||
|
||||
CGContextRef context = CGBitmapContextCreate(data, w, h, 8, w * 4, colorSpace, kBGRxBitmapInfo);
|
||||
|
||||
CGColorSpaceRelease(colorSpace);
|
||||
|
||||
return context;
|
||||
}
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
CGImageRef createSaturationBrightnessSquareContentImageWithHue(float hue)
|
||||
{
|
||||
void* data = malloc(256 * 256 * 4);
|
||||
if (data == nil)
|
||||
return nil;
|
||||
|
||||
CGContextRef context = createBGRxImageContext(256, 256, data);
|
||||
|
||||
if (context == nil) {
|
||||
free(data);
|
||||
return nil;
|
||||
}
|
||||
|
||||
UInt8* dataPtr = data;
|
||||
size_t rowBytes = CGBitmapContextGetBytesPerRow(context);
|
||||
|
||||
float r, g, b;
|
||||
hueToComponentFactors(hue, &r, &g, &b);
|
||||
|
||||
UInt8 r_s = (UInt8) ((1.0f - r) * 255);
|
||||
UInt8 g_s = (UInt8) ((1.0f - g) * 255);
|
||||
UInt8 b_s = (UInt8) ((1.0f - b) * 255);
|
||||
|
||||
for (int s = 0; s < 256; ++s) {
|
||||
register UInt8* ptr = dataPtr;
|
||||
|
||||
register unsigned int r_hs = 255 - blend(s, r_s);
|
||||
register unsigned int g_hs = 255 - blend(s, g_s);
|
||||
register unsigned int b_hs = 255 - blend(s, b_s);
|
||||
|
||||
for (register int v = 255; v >= 0; --v) {
|
||||
ptr[0] = (UInt8) (v * b_hs >> 8);
|
||||
ptr[1] = (UInt8) (v * g_hs >> 8);
|
||||
ptr[2] = (UInt8) (v * r_hs >> 8);
|
||||
|
||||
// Really, these should all be of the form used in blend(),
|
||||
// which does a divide by 255. However, integer divide is
|
||||
// implemented in software on ARM, so a divide by 256
|
||||
// (done as a bit shift) will be *nearly* the same value,
|
||||
// and is faster. The more-accurate versions would look like:
|
||||
// ptr[0] = blend(v, b_hs);
|
||||
|
||||
ptr += rowBytes;
|
||||
}
|
||||
|
||||
dataPtr += 4;
|
||||
}
|
||||
|
||||
// Return an image of the context's content:
|
||||
|
||||
CGImageRef image = CGBitmapContextCreateImage(context);
|
||||
|
||||
CGContextRelease(context);
|
||||
free(data);
|
||||
|
||||
return image;
|
||||
}
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
CGImageRef createHSVBarContentImage(InfComponentIndex barComponentIndex, float hsv[3])
|
||||
{
|
||||
UInt8 data[256 * 4];
|
||||
|
||||
// Set up the bitmap context for filling with color:
|
||||
|
||||
CGContextRef context = createBGRxImageContext(256, 1, data);
|
||||
|
||||
if (context == nil)
|
||||
return nil;
|
||||
|
||||
// Draw into context here:
|
||||
|
||||
UInt8* ptr = CGBitmapContextGetData(context);
|
||||
if (ptr == nil) {
|
||||
CGContextRelease(context);
|
||||
return nil;
|
||||
}
|
||||
|
||||
float r, g, b;
|
||||
for (int x = 0; x < 256; ++x) {
|
||||
hsv[barComponentIndex] = (float) x / 255.0f;
|
||||
|
||||
HSVtoRGB(hsv[0] * 360.0f, hsv[1], hsv[2], &r, &g, &b);
|
||||
|
||||
ptr[0] = (UInt8) (b * 255.0f);
|
||||
ptr[1] = (UInt8) (g * 255.0f);
|
||||
ptr[2] = (UInt8) (r * 255.0f);
|
||||
|
||||
ptr += 4;
|
||||
}
|
||||
|
||||
// Return an image of the context's content:
|
||||
|
||||
CGImageRef image = CGBitmapContextCreateImage(context);
|
||||
|
||||
CGContextRelease(context);
|
||||
|
||||
return image;
|
||||
}
|
||||
|
||||
//------------------------------------------------------------------------------
|
|
@ -0,0 +1,23 @@
|
|||
//==============================================================================
|
||||
//
|
||||
// InfSourceColorView.h
|
||||
// InfColorPicker
|
||||
//
|
||||
// Created by Troy Gaul on 8/10/10.
|
||||
//
|
||||
// Copyright (c) 2011-2013 InfinitApps LLC: http://infinitapps.com
|
||||
// Some rights reserved: http://opensource.org/licenses/MIT
|
||||
//
|
||||
//==============================================================================
|
||||
|
||||
#import <UIKit/UIKit.h>
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
@interface InfSourceColorView : UIControl
|
||||
|
||||
@property (nonatomic) BOOL trackingInside;
|
||||
|
||||
@end
|
||||
|
||||
//------------------------------------------------------------------------------
|
|
@ -0,0 +1,105 @@
|
|||
//==============================================================================
|
||||
//
|
||||
// InfSourceColorView.m
|
||||
// InfColorPicker
|
||||
//
|
||||
// Created by Troy Gaul on 8/10/10.
|
||||
//
|
||||
// Copyright (c) 2011-2013 InfinitApps LLC: http://infinitapps.com
|
||||
// Some rights reserved: http://opensource.org/licenses/MIT
|
||||
//
|
||||
//==============================================================================
|
||||
|
||||
#import "InfSourceColorView.h"
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
#if !__has_feature(objc_arc)
|
||||
#error This file must be compiled with ARC enabled (-fobjc-arc).
|
||||
#endif
|
||||
|
||||
//==============================================================================
|
||||
|
||||
@implementation InfSourceColorView
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
#pragma mark UIView overrides
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
- (void) drawRect: (CGRect) rect
|
||||
{
|
||||
[super drawRect: rect];
|
||||
|
||||
if (self.enabled && self.trackingInside) {
|
||||
CGRect bounds = [self bounds];
|
||||
|
||||
[[UIColor whiteColor] set];
|
||||
CGContextStrokeRectWithWidth(UIGraphicsGetCurrentContext(),
|
||||
CGRectInset(bounds, 1, 1), 2);
|
||||
|
||||
[[UIColor blackColor] set];
|
||||
UIRectFrame(CGRectInset(bounds, 2, 2));
|
||||
}
|
||||
}
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
#pragma mark UIControl overrides
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
- (void) setTrackingInside: (BOOL) newValue
|
||||
{
|
||||
if (newValue != _trackingInside) {
|
||||
_trackingInside = newValue;
|
||||
[self setNeedsDisplay];
|
||||
}
|
||||
}
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
- (BOOL) beginTrackingWithTouch: (UITouch*) touch
|
||||
withEvent: (UIEvent*) event
|
||||
{
|
||||
if (self.enabled) {
|
||||
self.trackingInside = YES;
|
||||
|
||||
return [super beginTrackingWithTouch: touch withEvent: event];
|
||||
}
|
||||
else {
|
||||
return NO;
|
||||
}
|
||||
}
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
- (BOOL) continueTrackingWithTouch: (UITouch*) touch withEvent: (UIEvent*) event
|
||||
{
|
||||
BOOL isTrackingInside = CGRectContainsPoint([self bounds], [touch locationInView: self]);
|
||||
|
||||
self.trackingInside = isTrackingInside;
|
||||
|
||||
return [super continueTrackingWithTouch: touch withEvent: event];
|
||||
}
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
- (void) endTrackingWithTouch: (UITouch*) touch withEvent: (UIEvent*) event
|
||||
{
|
||||
self.trackingInside = NO;
|
||||
|
||||
[super endTrackingWithTouch: touch withEvent: event];
|
||||
}
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
- (void) cancelTrackingWithEvent: (UIEvent*) event
|
||||
{
|
||||
self.trackingInside = NO;
|
||||
|
||||
[super cancelTrackingWithEvent: event];
|
||||
}
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
@end
|
||||
|
||||
//==============================================================================
|
|
@ -0,0 +1,24 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||
<plist version="1.0">
|
||||
<dict>
|
||||
<key>CFBundleDevelopmentRegion</key>
|
||||
<string>en</string>
|
||||
<key>CFBundleExecutable</key>
|
||||
<string>$(EXECUTABLE_NAME)</string>
|
||||
<key>CFBundleIdentifier</key>
|
||||
<string>com.xamarin.$(PRODUCT_NAME:rfc1034identifier)</string>
|
||||
<key>CFBundleInfoDictionaryVersion</key>
|
||||
<string>6.0</string>
|
||||
<key>CFBundleName</key>
|
||||
<string>$(PRODUCT_NAME)</string>
|
||||
<key>CFBundlePackageType</key>
|
||||
<string>BNDL</string>
|
||||
<key>CFBundleShortVersionString</key>
|
||||
<string>1.0</string>
|
||||
<key>CFBundleSignature</key>
|
||||
<string>????</string>
|
||||
<key>CFBundleVersion</key>
|
||||
<string>1</string>
|
||||
</dict>
|
||||
</plist>
|
Двоичный файл не отображается.
Двоичный файл не отображается.
Двоичный файл не отображается.
Двоичный файл не отображается.
Двоичный файл не отображается.
Двоичный файл не отображается.
|
@ -0,0 +1,5 @@
|
|||
dependencies: \
|
||||
/Users/kmullins/Xamarin\ Corp/Documents/objective_sharpie/Resources/InfColorPicker/InfColorPicker/InfColorBarPicker.m \
|
||||
/Users/kmullins/Xamarin\ Corp/Documents/objective_sharpie/Resources/InfColorPicker/InfColorPicker/InfColorBarPicker.h \
|
||||
/Users/kmullins/Xamarin\ Corp/Documents/objective_sharpie/Resources/InfColorPicker/InfColorPicker/InfColorIndicatorView.h \
|
||||
/Users/kmullins/Xamarin\ Corp/Documents/objective_sharpie/Resources/InfColorPicker/InfColorPicker/InfHSBSupport.h
|
Двоичный файл не отображается.
Двоичный файл не отображается.
|
@ -0,0 +1,3 @@
|
|||
dependencies: \
|
||||
/Users/kmullins/Xamarin\ Corp/Documents/objective_sharpie/Resources/InfColorPicker/InfColorPicker/InfColorIndicatorView.m \
|
||||
/Users/kmullins/Xamarin\ Corp/Documents/objective_sharpie/Resources/InfColorPicker/InfColorPicker/InfColorIndicatorView.h
|
Двоичный файл не отображается.
Двоичный файл не отображается.
|
@ -0,0 +1,8 @@
|
|||
/Users/kmullins/Xamarin Corp/Documents/objective_sharpie/Resources/InfColorPicker/build/InfColorPicker.build/Release-iphoneos/InfColorPicker.build/Objects-normal/armv7/InfColorIndicatorView.o
|
||||
/Users/kmullins/Xamarin Corp/Documents/objective_sharpie/Resources/InfColorPicker/build/InfColorPicker.build/Release-iphoneos/InfColorPicker.build/Objects-normal/armv7/InfColorPicker.o
|
||||
/Users/kmullins/Xamarin Corp/Documents/objective_sharpie/Resources/InfColorPicker/build/InfColorPicker.build/Release-iphoneos/InfColorPicker.build/Objects-normal/armv7/InfColorPickerNavigationController.o
|
||||
/Users/kmullins/Xamarin Corp/Documents/objective_sharpie/Resources/InfColorPicker/build/InfColorPicker.build/Release-iphoneos/InfColorPicker.build/Objects-normal/armv7/InfHSBSupport.o
|
||||
/Users/kmullins/Xamarin Corp/Documents/objective_sharpie/Resources/InfColorPicker/build/InfColorPicker.build/Release-iphoneos/InfColorPicker.build/Objects-normal/armv7/InfColorBarPicker.o
|
||||
/Users/kmullins/Xamarin Corp/Documents/objective_sharpie/Resources/InfColorPicker/build/InfColorPicker.build/Release-iphoneos/InfColorPicker.build/Objects-normal/armv7/InfColorSquarePicker.o
|
||||
/Users/kmullins/Xamarin Corp/Documents/objective_sharpie/Resources/InfColorPicker/build/InfColorPicker.build/Release-iphoneos/InfColorPicker.build/Objects-normal/armv7/InfColorPickerController.o
|
||||
/Users/kmullins/Xamarin Corp/Documents/objective_sharpie/Resources/InfColorPicker/build/InfColorPicker.build/Release-iphoneos/InfColorPicker.build/Objects-normal/armv7/InfSourceColorView.o
|
|
@ -0,0 +1,4 @@
|
|||
dependencies: \
|
||||
/Users/kmullins/Xamarin\ Corp/Documents/objective_sharpie/Resources/InfColorPicker/InfColorPicker/InfColorPicker.m \
|
||||
/Users/kmullins/Xamarin\ Corp/Documents/objective_sharpie/Resources/InfColorPicker/InfColorPicker/InfColorPicker.h \
|
||||
/Users/kmullins/Xamarin\ Corp/Documents/objective_sharpie/Resources/InfColorPicker/InfColorPicker/InfColorPickerController.h
|
Двоичный файл не отображается.
Двоичный файл не отображается.
|
@ -0,0 +1,7 @@
|
|||
dependencies: \
|
||||
/Users/kmullins/Xamarin\ Corp/Documents/objective_sharpie/Resources/InfColorPicker/InfColorPicker/InfColorPickerController.m \
|
||||
/Users/kmullins/Xamarin\ Corp/Documents/objective_sharpie/Resources/InfColorPicker/InfColorPicker/InfColorPickerController.h \
|
||||
/Users/kmullins/Xamarin\ Corp/Documents/objective_sharpie/Resources/InfColorPicker/InfColorPicker/InfColorBarPicker.h \
|
||||
/Users/kmullins/Xamarin\ Corp/Documents/objective_sharpie/Resources/InfColorPicker/InfColorPicker/InfColorSquarePicker.h \
|
||||
/Users/kmullins/Xamarin\ Corp/Documents/objective_sharpie/Resources/InfColorPicker/InfColorPicker/InfColorPickerNavigationController.h \
|
||||
/Users/kmullins/Xamarin\ Corp/Documents/objective_sharpie/Resources/InfColorPicker/InfColorPicker/InfHSBSupport.h
|
Двоичный файл не отображается.
Двоичный файл не отображается.
|
@ -0,0 +1,3 @@
|
|||
dependencies: \
|
||||
/Users/kmullins/Xamarin\ Corp/Documents/objective_sharpie/Resources/InfColorPicker/InfColorPicker/InfColorPickerNavigationController.m \
|
||||
/Users/kmullins/Xamarin\ Corp/Documents/objective_sharpie/Resources/InfColorPicker/InfColorPicker/InfColorPickerNavigationController.h
|
Двоичный файл не отображается.
Двоичный файл не отображается.
|
@ -0,0 +1,5 @@
|
|||
dependencies: \
|
||||
/Users/kmullins/Xamarin\ Corp/Documents/objective_sharpie/Resources/InfColorPicker/InfColorPicker/InfColorSquarePicker.m \
|
||||
/Users/kmullins/Xamarin\ Corp/Documents/objective_sharpie/Resources/InfColorPicker/InfColorPicker/InfColorSquarePicker.h \
|
||||
/Users/kmullins/Xamarin\ Corp/Documents/objective_sharpie/Resources/InfColorPicker/InfColorPicker/InfColorIndicatorView.h \
|
||||
/Users/kmullins/Xamarin\ Corp/Documents/objective_sharpie/Resources/InfColorPicker/InfColorPicker/InfHSBSupport.h
|
Двоичный файл не отображается.
Двоичный файл не отображается.
|
@ -0,0 +1,3 @@
|
|||
dependencies: \
|
||||
/Users/kmullins/Xamarin\ Corp/Documents/objective_sharpie/Resources/InfColorPicker/InfColorPicker/InfHSBSupport.m \
|
||||
/Users/kmullins/Xamarin\ Corp/Documents/objective_sharpie/Resources/InfColorPicker/InfColorPicker/InfHSBSupport.h
|
Двоичный файл не отображается.
Двоичный файл не отображается.
|
@ -0,0 +1,3 @@
|
|||
dependencies: \
|
||||
/Users/kmullins/Xamarin\ Corp/Documents/objective_sharpie/Resources/InfColorPicker/InfColorPicker/InfSourceColorView.m \
|
||||
/Users/kmullins/Xamarin\ Corp/Documents/objective_sharpie/Resources/InfColorPicker/InfColorPicker/InfSourceColorView.h
|
Двоичный файл не отображается.
Двоичный файл не отображается.
Двоичные данные
InfColorPicker/InfColorPicker/build/InfColorPicker.build/Release-iphoneos/InfColorPicker.build/dgph
Normal file
Двоичные данные
InfColorPicker/InfColorPicker/build/InfColorPicker.build/Release-iphoneos/InfColorPicker.build/dgph
Normal file
Двоичный файл не отображается.
Двоичный файл не отображается.
Двоичный файл не отображается.
Некоторые файлы не были показаны из-за слишком большого количества измененных файлов Показать больше
Загрузка…
Ссылка в новой задаче