Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

prompt for pattern sizes

  • Loading branch information...
commit ea627929241a985bd9543bdffe2a86a54d5027c1 1 parent 52669a1
@mattrajca mattrajca authored
View
527 English.lproj/PXPatternSizeWindow.xib
@@ -0,0 +1,527 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<archive type="com.apple.InterfaceBuilder3.Cocoa.XIB" version="8.00">
+ <data>
+ <int key="IBDocument.SystemTarget">1080</int>
+ <string key="IBDocument.SystemVersion">12C3012</string>
+ <string key="IBDocument.InterfaceBuilderVersion">3084</string>
+ <string key="IBDocument.AppKitVersion">1187.34</string>
+ <string key="IBDocument.HIToolboxVersion">625.00</string>
+ <object class="NSMutableDictionary" key="IBDocument.PluginVersions">
+ <string key="NS.key.0">com.apple.InterfaceBuilder.CocoaPlugin</string>
+ <string key="NS.object.0">3084</string>
+ </object>
+ <array key="IBDocument.IntegratedClassDependencies">
+ <string>NSButton</string>
+ <string>NSButtonCell</string>
+ <string>NSCustomObject</string>
+ <string>NSNumberFormatter</string>
+ <string>NSTextField</string>
+ <string>NSTextFieldCell</string>
+ <string>NSView</string>
+ <string>NSWindowTemplate</string>
+ </array>
+ <array key="IBDocument.PluginDependencies">
+ <string>com.apple.InterfaceBuilder.CocoaPlugin</string>
+ </array>
+ <object class="NSMutableDictionary" key="IBDocument.Metadata">
+ <string key="NS.key.0">PluginDependencyRecalculationVersion</string>
+ <integer value="1" key="NS.object.0"/>
+ </object>
+ <array class="NSMutableArray" key="IBDocument.RootObjects" id="1000">
+ <object class="NSCustomObject" id="1001">
+ <string key="NSClassName">PXPatternSizeController</string>
+ </object>
+ <object class="NSCustomObject" id="1003">
+ <string key="NSClassName">FirstResponder</string>
+ </object>
+ <object class="NSCustomObject" id="1004">
+ <string key="NSClassName">NSApplication</string>
+ </object>
+ <object class="NSWindowTemplate" id="1005">
+ <int key="NSWindowStyleMask">15</int>
+ <int key="NSWindowBacking">2</int>
+ <string key="NSWindowRect">{{196, 240}, {188, 119}}</string>
+ <int key="NSWTFlags">544735232</int>
+ <string key="NSWindowTitle">Window</string>
+ <string key="NSWindowClass">NSWindow</string>
+ <nil key="NSViewClass"/>
+ <nil key="NSUserInterfaceItemIdentifier"/>
+ <object class="NSView" key="NSWindowView" id="1006">
+ <reference key="NSNextResponder"/>
+ <int key="NSvFlags">256</int>
+ <array class="NSMutableArray" key="NSSubviews">
+ <object class="NSTextField" id="879242708">
+ <reference key="NSNextResponder" ref="1006"/>
+ <int key="NSvFlags">268</int>
+ <string key="NSFrame">{{22, 83}, {45, 17}}</string>
+ <reference key="NSSuperview" ref="1006"/>
+ <reference key="NSWindow"/>
+ <reference key="NSNextKeyView" ref="567545239"/>
+ <string key="NSReuseIdentifierKey">_NS:1535</string>
+ <bool key="NSEnabled">YES</bool>
+ <object class="NSTextFieldCell" key="NSCell" id="408262842">
+ <int key="NSCellFlags">68157504</int>
+ <int key="NSCellFlags2">272630784</int>
+ <string key="NSContents">Width:</string>
+ <object class="NSFont" key="NSSupport" id="396286971">
+ <string key="NSName">LucidaGrande</string>
+ <double key="NSSize">13</double>
+ <int key="NSfFlags">1044</int>
+ </object>
+ <string key="NSCellIdentifier">_NS:1535</string>
+ <reference key="NSControlView" ref="879242708"/>
+ <object class="NSColor" key="NSBackgroundColor" id="455117703">
+ <int key="NSColorSpace">6</int>
+ <string key="NSCatalogName">System</string>
+ <string key="NSColorName">controlColor</string>
+ <object class="NSColor" key="NSColor">
+ <int key="NSColorSpace">3</int>
+ <bytes key="NSWhite">MC42NjY2NjY2NjY3AA</bytes>
+ </object>
+ </object>
+ <object class="NSColor" key="NSTextColor" id="753260356">
+ <int key="NSColorSpace">6</int>
+ <string key="NSCatalogName">System</string>
+ <string key="NSColorName">controlTextColor</string>
+ <object class="NSColor" key="NSColor" id="1051351510">
+ <int key="NSColorSpace">3</int>
+ <bytes key="NSWhite">MAA</bytes>
+ </object>
+ </object>
+ </object>
+ <bool key="NSAllowsLogicalLayoutDirection">NO</bool>
+ </object>
+ <object class="NSTextField" id="671054434">
+ <reference key="NSNextResponder" ref="1006"/>
+ <int key="NSvFlags">268</int>
+ <string key="NSFrame">{{17, 55}, {50, 17}}</string>
+ <reference key="NSSuperview" ref="1006"/>
+ <reference key="NSWindow"/>
+ <reference key="NSNextKeyView" ref="969916303"/>
+ <string key="NSReuseIdentifierKey">_NS:1535</string>
+ <bool key="NSEnabled">YES</bool>
+ <object class="NSTextFieldCell" key="NSCell" id="214842957">
+ <int key="NSCellFlags">68157504</int>
+ <int key="NSCellFlags2">272630784</int>
+ <string key="NSContents">Height:</string>
+ <reference key="NSSupport" ref="396286971"/>
+ <string key="NSCellIdentifier">_NS:1535</string>
+ <reference key="NSControlView" ref="671054434"/>
+ <reference key="NSBackgroundColor" ref="455117703"/>
+ <reference key="NSTextColor" ref="753260356"/>
+ </object>
+ <bool key="NSAllowsLogicalLayoutDirection">NO</bool>
+ </object>
+ <object class="NSTextField" id="567545239">
+ <reference key="NSNextResponder" ref="1006"/>
+ <int key="NSvFlags">268</int>
+ <string key="NSFrame">{{72, 81}, {96, 22}}</string>
+ <reference key="NSSuperview" ref="1006"/>
+ <reference key="NSWindow"/>
+ <reference key="NSNextKeyView" ref="671054434"/>
+ <string key="NSReuseIdentifierKey">_NS:9</string>
+ <bool key="NSEnabled">YES</bool>
+ <object class="NSTextFieldCell" key="NSCell" id="710343279">
+ <int key="NSCellFlags">-1804599231</int>
+ <int key="NSCellFlags2">272630784</int>
+ <integer value="4" key="NSContents"/>
+ <reference key="NSSupport" ref="396286971"/>
+ <object class="NSNumberFormatter" key="NSFormatter" id="600106897">
+ <dictionary class="NSMutableDictionary" key="NS.attributes">
+ <boolean value="YES" key="allowsFloats"/>
+ <integer value="1040" key="formatterBehavior"/>
+ <object class="NSLocale" key="locale">
+ <string key="NS.identifier"/>
+ </object>
+ <integer value="2" key="minimum"/>
+ <string key="negativeInfinitySymbol">-∞</string>
+ <string key="nilSymbol"/>
+ <integer value="0" key="numberStyle"/>
+ <string key="positiveInfinitySymbol">+∞</string>
+ </dictionary>
+ <string key="NS.positiveformat">#</string>
+ <string key="NS.negativeformat">#</string>
+ <nil key="NS.positiveattrs"/>
+ <nil key="NS.negativeattrs"/>
+ <nil key="NS.zero"/>
+ <object class="NSAttributedString" key="NS.nil">
+ <string key="NSString"/>
+ </object>
+ <object class="NSAttributedString" key="NS.nan">
+ <string key="NSString">NaN</string>
+ <dictionary key="NSAttributes" id="603679106"/>
+ </object>
+ <integer value="2" key="NS.min"/>
+ <object class="NSDecimalNumberPlaceholder" key="NS.max" id="1021357581">
+ <int key="NS.exponent">0</int>
+ <int key="NS.length">0</int>
+ <bool key="NS.negative">YES</bool>
+ <bool key="NS.compact">NO</bool>
+ <int key="NS.mantissa.bo">1</int>
+ <bytes key="NS.mantissa">AAAAAAAAAAAAAAAAAAAAAA</bytes>
+ </object>
+ <object class="NSDecimalNumberHandler" key="NS.rounding">
+ <int key="NS.roundingmode">3</int>
+ <bool key="NS.raise.overflow">YES</bool>
+ <bool key="NS.raise.underflow">YES</bool>
+ <bool key="NS.raise.dividebyzero">YES</bool>
+ </object>
+ <string key="NS.decimal">.</string>
+ <string key="NS.thousand">,</string>
+ <bool key="NS.hasthousands">NO</bool>
+ <bool key="NS.localized">NO</bool>
+ <bool key="NS.allowsfloats">YES</bool>
+ </object>
+ <string key="NSCellIdentifier">_NS:9</string>
+ <reference key="NSControlView" ref="567545239"/>
+ <bool key="NSDrawsBackground">YES</bool>
+ <object class="NSColor" key="NSBackgroundColor" id="507957888">
+ <int key="NSColorSpace">6</int>
+ <string key="NSCatalogName">System</string>
+ <string key="NSColorName">textBackgroundColor</string>
+ <object class="NSColor" key="NSColor">
+ <int key="NSColorSpace">3</int>
+ <bytes key="NSWhite">MQA</bytes>
+ </object>
+ </object>
+ <object class="NSColor" key="NSTextColor" id="336057315">
+ <int key="NSColorSpace">6</int>
+ <string key="NSCatalogName">System</string>
+ <string key="NSColorName">textColor</string>
+ <reference key="NSColor" ref="1051351510"/>
+ </object>
+ </object>
+ <bool key="NSAllowsLogicalLayoutDirection">NO</bool>
+ </object>
+ <object class="NSTextField" id="969916303">
+ <reference key="NSNextResponder" ref="1006"/>
+ <int key="NSvFlags">268</int>
+ <string key="NSFrame">{{72, 53}, {96, 22}}</string>
+ <reference key="NSSuperview" ref="1006"/>
+ <reference key="NSWindow"/>
+ <reference key="NSNextKeyView" ref="227956893"/>
+ <string key="NSReuseIdentifierKey">_NS:9</string>
+ <bool key="NSEnabled">YES</bool>
+ <object class="NSTextFieldCell" key="NSCell" id="397577352">
+ <int key="NSCellFlags">-1804599231</int>
+ <int key="NSCellFlags2">272630784</int>
+ <integer value="4" key="NSContents"/>
+ <reference key="NSSupport" ref="396286971"/>
+ <object class="NSNumberFormatter" key="NSFormatter" id="844888096">
+ <dictionary class="NSMutableDictionary" key="NS.attributes">
+ <boolean value="YES" key="allowsFloats"/>
+ <integer value="1040" key="formatterBehavior"/>
+ <boolean value="NO" key="lenient"/>
+ <integer value="2" key="minimum"/>
+ <string key="negativeInfinitySymbol">-∞</string>
+ <string key="nilSymbol"/>
+ <integer value="0" key="numberStyle"/>
+ <string key="positiveInfinitySymbol">+∞</string>
+ </dictionary>
+ <string key="NS.positiveformat">#</string>
+ <string key="NS.negativeformat">#</string>
+ <nil key="NS.positiveattrs"/>
+ <nil key="NS.negativeattrs"/>
+ <nil key="NS.zero"/>
+ <object class="NSAttributedString" key="NS.nil">
+ <string key="NSString"/>
+ </object>
+ <object class="NSAttributedString" key="NS.nan">
+ <string key="NSString">NaN</string>
+ <reference key="NSAttributes" ref="603679106"/>
+ </object>
+ <integer value="2" key="NS.min"/>
+ <reference key="NS.max" ref="1021357581"/>
+ <object class="NSDecimalNumberHandler" key="NS.rounding">
+ <int key="NS.roundingmode">3</int>
+ <bool key="NS.raise.overflow">YES</bool>
+ <bool key="NS.raise.underflow">YES</bool>
+ <bool key="NS.raise.dividebyzero">YES</bool>
+ </object>
+ <string key="NS.decimal">.</string>
+ <string key="NS.thousand">,</string>
+ <bool key="NS.hasthousands">NO</bool>
+ <bool key="NS.localized">YES</bool>
+ <bool key="NS.allowsfloats">YES</bool>
+ </object>
+ <string key="NSCellIdentifier">_NS:9</string>
+ <reference key="NSControlView" ref="969916303"/>
+ <bool key="NSDrawsBackground">YES</bool>
+ <reference key="NSBackgroundColor" ref="507957888"/>
+ <reference key="NSTextColor" ref="336057315"/>
+ </object>
+ <bool key="NSAllowsLogicalLayoutDirection">NO</bool>
+ </object>
+ <object class="NSButton" id="227956893">
+ <reference key="NSNextResponder" ref="1006"/>
+ <int key="NSvFlags">268</int>
+ <string key="NSFrame">{{93, 13}, {81, 32}}</string>
+ <reference key="NSSuperview" ref="1006"/>
+ <reference key="NSWindow"/>
+ <string key="NSReuseIdentifierKey">_NS:9</string>
+ <bool key="NSEnabled">YES</bool>
+ <object class="NSButtonCell" key="NSCell" id="323468134">
+ <int key="NSCellFlags">67108864</int>
+ <int key="NSCellFlags2">134217728</int>
+ <string key="NSContents">Create</string>
+ <reference key="NSSupport" ref="396286971"/>
+ <string key="NSCellIdentifier">_NS:9</string>
+ <reference key="NSControlView" ref="227956893"/>
+ <int key="NSButtonFlags">-2038284288</int>
+ <int key="NSButtonFlags2">129</int>
+ <string key="NSAlternateContents"/>
+ <string type="base64-UTF8" key="NSKeyEquivalent">DQ</string>
+ <int key="NSPeriodicDelay">200</int>
+ <int key="NSPeriodicInterval">25</int>
+ </object>
+ <bool key="NSAllowsLogicalLayoutDirection">NO</bool>
+ </object>
+ </array>
+ <string key="NSFrameSize">{188, 119}</string>
+ <reference key="NSSuperview"/>
+ <reference key="NSWindow"/>
+ <reference key="NSNextKeyView" ref="879242708"/>
+ </object>
+ <string key="NSScreenRect">{{0, 0}, {1680, 1028}}</string>
+ <string key="NSMaxSize">{10000000000000, 10000000000000}</string>
+ <bool key="NSWindowIsRestorable">YES</bool>
+ </object>
+ </array>
+ <object class="IBObjectContainer" key="IBDocument.Objects">
+ <array class="NSMutableArray" key="connectionRecords">
+ <object class="IBConnectionRecord">
+ <object class="IBOutletConnection" key="connection">
+ <string key="label">window</string>
+ <reference key="source" ref="1001"/>
+ <reference key="destination" ref="1005"/>
+ </object>
+ <int key="connectionID">19</int>
+ </object>
+ <object class="IBConnectionRecord">
+ <object class="IBOutletConnection" key="connection">
+ <string key="label">widthField</string>
+ <reference key="source" ref="1001"/>
+ <reference key="destination" ref="567545239"/>
+ </object>
+ <int key="connectionID">20</int>
+ </object>
+ <object class="IBConnectionRecord">
+ <object class="IBOutletConnection" key="connection">
+ <string key="label">heightField</string>
+ <reference key="source" ref="1001"/>
+ <reference key="destination" ref="969916303"/>
+ </object>
+ <int key="connectionID">21</int>
+ </object>
+ <object class="IBConnectionRecord">
+ <object class="IBActionConnection" key="connection">
+ <string key="label">create:</string>
+ <reference key="source" ref="1001"/>
+ <reference key="destination" ref="227956893"/>
+ </object>
+ <int key="connectionID">22</int>
+ </object>
+ </array>
+ <object class="IBMutableOrderedSet" key="objectRecords">
+ <array key="orderedObjects">
+ <object class="IBObjectRecord">
+ <int key="objectID">0</int>
+ <array key="object" id="0"/>
+ <reference key="children" ref="1000"/>
+ <nil key="parent"/>
+ </object>
+ <object class="IBObjectRecord">
+ <int key="objectID">-2</int>
+ <reference key="object" ref="1001"/>
+ <reference key="parent" ref="0"/>
+ <string key="objectName">File's Owner</string>
+ </object>
+ <object class="IBObjectRecord">
+ <int key="objectID">-1</int>
+ <reference key="object" ref="1003"/>
+ <reference key="parent" ref="0"/>
+ <string key="objectName">First Responder</string>
+ </object>
+ <object class="IBObjectRecord">
+ <int key="objectID">-3</int>
+ <reference key="object" ref="1004"/>
+ <reference key="parent" ref="0"/>
+ <string key="objectName">Application</string>
+ </object>
+ <object class="IBObjectRecord">
+ <int key="objectID">1</int>
+ <reference key="object" ref="1005"/>
+ <array class="NSMutableArray" key="children">
+ <reference ref="1006"/>
+ </array>
+ <reference key="parent" ref="0"/>
+ </object>
+ <object class="IBObjectRecord">
+ <int key="objectID">2</int>
+ <reference key="object" ref="1006"/>
+ <array class="NSMutableArray" key="children">
+ <reference ref="879242708"/>
+ <reference ref="671054434"/>
+ <reference ref="567545239"/>
+ <reference ref="969916303"/>
+ <reference ref="227956893"/>
+ </array>
+ <reference key="parent" ref="1005"/>
+ </object>
+ <object class="IBObjectRecord">
+ <int key="objectID">3</int>
+ <reference key="object" ref="879242708"/>
+ <array class="NSMutableArray" key="children">
+ <reference ref="408262842"/>
+ </array>
+ <reference key="parent" ref="1006"/>
+ </object>
+ <object class="IBObjectRecord">
+ <int key="objectID">4</int>
+ <reference key="object" ref="408262842"/>
+ <reference key="parent" ref="879242708"/>
+ </object>
+ <object class="IBObjectRecord">
+ <int key="objectID">5</int>
+ <reference key="object" ref="671054434"/>
+ <array class="NSMutableArray" key="children">
+ <reference ref="214842957"/>
+ </array>
+ <reference key="parent" ref="1006"/>
+ </object>
+ <object class="IBObjectRecord">
+ <int key="objectID">6</int>
+ <reference key="object" ref="214842957"/>
+ <reference key="parent" ref="671054434"/>
+ </object>
+ <object class="IBObjectRecord">
+ <int key="objectID">11</int>
+ <reference key="object" ref="567545239"/>
+ <array class="NSMutableArray" key="children">
+ <reference ref="710343279"/>
+ </array>
+ <reference key="parent" ref="1006"/>
+ </object>
+ <object class="IBObjectRecord">
+ <int key="objectID">12</int>
+ <reference key="object" ref="710343279"/>
+ <array class="NSMutableArray" key="children">
+ <reference ref="600106897"/>
+ </array>
+ <reference key="parent" ref="567545239"/>
+ </object>
+ <object class="IBObjectRecord">
+ <int key="objectID">13</int>
+ <reference key="object" ref="600106897"/>
+ <reference key="parent" ref="710343279"/>
+ </object>
+ <object class="IBObjectRecord">
+ <int key="objectID">14</int>
+ <reference key="object" ref="969916303"/>
+ <array class="NSMutableArray" key="children">
+ <reference ref="397577352"/>
+ </array>
+ <reference key="parent" ref="1006"/>
+ </object>
+ <object class="IBObjectRecord">
+ <int key="objectID">15</int>
+ <reference key="object" ref="397577352"/>
+ <array class="NSMutableArray" key="children">
+ <reference ref="844888096"/>
+ </array>
+ <reference key="parent" ref="969916303"/>
+ </object>
+ <object class="IBObjectRecord">
+ <int key="objectID">16</int>
+ <reference key="object" ref="844888096"/>
+ <reference key="parent" ref="397577352"/>
+ </object>
+ <object class="IBObjectRecord">
+ <int key="objectID">17</int>
+ <reference key="object" ref="227956893"/>
+ <array class="NSMutableArray" key="children">
+ <reference ref="323468134"/>
+ </array>
+ <reference key="parent" ref="1006"/>
+ </object>
+ <object class="IBObjectRecord">
+ <int key="objectID">18</int>
+ <reference key="object" ref="323468134"/>
+ <reference key="parent" ref="227956893"/>
+ </object>
+ </array>
+ </object>
+ <dictionary class="NSMutableDictionary" key="flattenedProperties">
+ <string key="-1.IBPluginDependency">com.apple.InterfaceBuilder.CocoaPlugin</string>
+ <string key="-2.IBPluginDependency">com.apple.InterfaceBuilder.CocoaPlugin</string>
+ <string key="-3.IBPluginDependency">com.apple.InterfaceBuilder.CocoaPlugin</string>
+ <string key="1.IBPluginDependency">com.apple.InterfaceBuilder.CocoaPlugin</string>
+ <string key="1.IBWindowTemplateEditedContentRect">{{357, 418}, {480, 270}}</string>
+ <boolean value="NO" key="1.NSWindowTemplate.visibleAtLaunch"/>
+ <string key="11.IBPluginDependency">com.apple.InterfaceBuilder.CocoaPlugin</string>
+ <string key="12.IBPluginDependency">com.apple.InterfaceBuilder.CocoaPlugin</string>
+ <integer value="1041" key="13.IBNumberFormatterBehaviorMetadataKey"/>
+ <boolean value="YES" key="13.IBNumberFormatterLocalizesFormatMetadataKey"/>
+ <string key="13.IBPluginDependency">com.apple.InterfaceBuilder.CocoaPlugin</string>
+ <string key="14.IBPluginDependency">com.apple.InterfaceBuilder.CocoaPlugin</string>
+ <string key="15.IBPluginDependency">com.apple.InterfaceBuilder.CocoaPlugin</string>
+ <integer value="1041" key="16.IBNumberFormatterBehaviorMetadataKey"/>
+ <boolean value="YES" key="16.IBNumberFormatterLocalizesFormatMetadataKey"/>
+ <string key="16.IBPluginDependency">com.apple.InterfaceBuilder.CocoaPlugin</string>
+ <string key="17.IBPluginDependency">com.apple.InterfaceBuilder.CocoaPlugin</string>
+ <string key="18.IBPluginDependency">com.apple.InterfaceBuilder.CocoaPlugin</string>
+ <string key="2.IBPluginDependency">com.apple.InterfaceBuilder.CocoaPlugin</string>
+ <string key="3.IBPluginDependency">com.apple.InterfaceBuilder.CocoaPlugin</string>
+ <string key="4.IBPluginDependency">com.apple.InterfaceBuilder.CocoaPlugin</string>
+ <string key="5.IBPluginDependency">com.apple.InterfaceBuilder.CocoaPlugin</string>
+ <string key="6.IBPluginDependency">com.apple.InterfaceBuilder.CocoaPlugin</string>
+ </dictionary>
+ <dictionary class="NSMutableDictionary" key="unlocalizedProperties"/>
+ <nil key="activeLocalization"/>
+ <dictionary class="NSMutableDictionary" key="localizations"/>
+ <nil key="sourceID"/>
+ <int key="maxID">22</int>
+ </object>
+ <object class="IBClassDescriber" key="IBDocument.Classes">
+ <array class="NSMutableArray" key="referencedPartialClassDescriptions">
+ <object class="IBPartialClassDescription">
+ <string key="className">PXPatternSizeController</string>
+ <string key="superclassName">NSWindowController</string>
+ <object class="NSMutableDictionary" key="actions">
+ <string key="NS.key.0">create:</string>
+ <string key="NS.object.0">id</string>
+ </object>
+ <object class="NSMutableDictionary" key="actionInfosByName">
+ <string key="NS.key.0">create:</string>
+ <object class="IBActionInfo" key="NS.object.0">
+ <string key="name">create:</string>
+ <string key="candidateClassName">id</string>
+ </object>
+ </object>
+ <dictionary class="NSMutableDictionary" key="outlets">
+ <string key="heightField">NSTextField</string>
+ <string key="widthField">NSTextField</string>
+ </dictionary>
+ <dictionary class="NSMutableDictionary" key="toOneOutletInfosByName">
+ <object class="IBToOneOutletInfo" key="heightField">
+ <string key="name">heightField</string>
+ <string key="candidateClassName">NSTextField</string>
+ </object>
+ <object class="IBToOneOutletInfo" key="widthField">
+ <string key="name">widthField</string>
+ <string key="candidateClassName">NSTextField</string>
+ </object>
+ </dictionary>
+ <object class="IBClassDescriptionSource" key="sourceIdentifier">
+ <string key="majorKey">IBProjectSource</string>
+ <string key="minorKey">./Classes/PXPatternSizeController.h</string>
+ </object>
+ </object>
+ </array>
+ </object>
+ <int key="IBDocument.localizationMode">0</int>
+ <string key="IBDocument.TargetRuntimeIdentifier">IBCocoaFramework</string>
+ <bool key="IBDocument.PluginDeclaredDependenciesTrackSystemTargetVersion">YES</bool>
+ <int key="IBDocument.defaultPropertyAccessControl">3</int>
+ </data>
+</archive>
View
20 Pixen Application/Tools/Patterns/PXPatternEditorController.m
@@ -10,6 +10,7 @@
#import "PXPattern.h"
#import "PXPatternEditorView.h"
#import "PXPatternItem.h"
+#import "PXPatternSizeController.h"
#import "SBCenteringClipView.h"
@implementation PXPatternEditorController {
@@ -84,15 +85,19 @@ - (void)setPattern:(PXPattern *)pattern
}
}
-- (IBAction)newPattern:(id)sender
+- (void)newPatternImpl
{
- int line = 4;
+ PXPatternSizeController *controller = [PXPatternSizeController new];
+ [controller runSheetModalForParentWindow:[self window]];
+
+ int w = [controller width];
+ int h = [controller height];
PXPattern *pattern = [[PXPattern alloc] init];
- [pattern setSize:NSMakeSize(line, line)];
+ [pattern setSize:NSMakeSize(w, h)];
- for (int x=0; x<line; x++) {
- for (int y=0; y<line; y++) {
+ for (int x=0; x<w; x++) {
+ for (int y=0; y<h; y++) {
[pattern addPoint:NSMakePoint(x, y)];
}
}
@@ -100,6 +105,11 @@ - (IBAction)newPattern:(id)sender
[self addPattern:pattern];
}
+- (IBAction)newPattern:(id)sender
+{
+ [self performSelector:@selector(newPatternImpl) withObject:nil afterDelay:0.0];
+}
+
- (void)deleteSheetDidEnd:(NSAlert *)alert returnCode:(int)returnCode contextInfo:contextInfo
{
if (returnCode == NSAlertFirstButtonReturn)
View
23 Pixen Application/Tools/Patterns/PXPatternSizeController.h
@@ -0,0 +1,23 @@
+//
+// PXPatternSizeController.h
+// Pixen
+//
+// Created by Matt on 2/25/13.
+//
+//
+
+#import <Cocoa/Cocoa.h>
+
+@interface PXPatternSizeController : NSWindowController
+
+@property (nonatomic, weak) IBOutlet NSTextField *widthField;
+@property (nonatomic, weak) IBOutlet NSTextField *heightField;
+
+- (void)runSheetModalForParentWindow:(NSWindow *)parentWindow;
+
+- (IBAction)create:(id)sender;
+
+- (int)width;
+- (int)height;
+
+@end
View
46 Pixen Application/Tools/Patterns/PXPatternSizeController.m
@@ -0,0 +1,46 @@
+//
+// PXPatternSizeController.m
+// Pixen
+//
+// Created by Matt on 2/25/13.
+//
+//
+
+#import "PXPatternSizeController.h"
+
+@implementation PXPatternSizeController
+
+- (id)init
+{
+ self = [super initWithWindowNibName:@"PXPatternSizeWindow"];
+ if (self) {
+
+ }
+ return self;
+}
+
+- (void)runSheetModalForParentWindow:(NSWindow *)parentWindow
+{
+ [NSApp beginSheet:[self window] modalForWindow:parentWindow modalDelegate:nil didEndSelector:NULL contextInfo:NULL];
+ [NSApp runModalForWindow:[self window]];
+
+ [NSApp endSheet:[self window]];
+ [[self window] orderOut:nil];
+}
+
+- (void)create:(id)sender
+{
+ [NSApp stopModal];
+}
+
+- (int)width
+{
+ return [self.widthField intValue];
+}
+
+- (int)height
+{
+ return [self.heightField intValue];
+}
+
+@end
View
26 Pixen.xcodeproj/project.pbxproj
@@ -83,6 +83,12 @@
C98182C414F0212C0052616F /* SenTestingKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = C98182C314F0212C0052616F /* SenTestingKit.framework */; };
C98182D014F0212C0052616F /* PaletteTests.m in Sources */ = {isa = PBXBuildFile; fileRef = C98182CF14F0212C0052616F /* PaletteTests.m */; };
C98182D514F022B00052616F /* Cocoa.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 1058C7A7FEA54F5311CA2CBB /* Cocoa.framework */; };
+ C982819516DBD71E00CD6831 /* PXPatternSizeWindow.xib in Resources */ = {isa = PBXBuildFile; fileRef = C982819316DBD71E00CD6831 /* PXPatternSizeWindow.xib */; };
+ C982819616DBD71E00CD6831 /* PXPatternSizeWindow.xib in Resources */ = {isa = PBXBuildFile; fileRef = C982819316DBD71E00CD6831 /* PXPatternSizeWindow.xib */; };
+ C982819916DBD7B200CD6831 /* PXPatternSizeController.h in Headers */ = {isa = PBXBuildFile; fileRef = C982819716DBD7B200CD6831 /* PXPatternSizeController.h */; };
+ C982819A16DBD7B200CD6831 /* PXPatternSizeController.h in Headers */ = {isa = PBXBuildFile; fileRef = C982819716DBD7B200CD6831 /* PXPatternSizeController.h */; };
+ C982819B16DBD7B200CD6831 /* PXPatternSizeController.m in Sources */ = {isa = PBXBuildFile; fileRef = C982819816DBD7B200CD6831 /* PXPatternSizeController.m */; };
+ C982819C16DBD7B200CD6831 /* PXPatternSizeController.m in Sources */ = {isa = PBXBuildFile; fileRef = C982819816DBD7B200CD6831 /* PXPatternSizeController.m */; };
C984251213AFC142000072C5 /* PXPreview.xib in Resources */ = {isa = PBXBuildFile; fileRef = C984251013AFC142000072C5 /* PXPreview.xib */; };
C985C89914C119DF0091EF22 /* PXCanvasResizePrompt.xib in Resources */ = {isa = PBXBuildFile; fileRef = C985C89714C119DF0091EF22 /* PXCanvasResizePrompt.xib */; };
C989DF9A15386C3400B055D5 /* GPLWriter.h in Headers */ = {isa = PBXBuildFile; fileRef = C989DF9815386C3400B055D5 /* GPLWriter.h */; };
@@ -1086,6 +1092,9 @@
C98182CE14F0212C0052616F /* PaletteTests.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = PaletteTests.h; sourceTree = "<group>"; };
C98182CF14F0212C0052616F /* PaletteTests.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = PaletteTests.m; sourceTree = "<group>"; };
C98182D114F0212C0052616F /* Tests-Prefix.pch */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "Tests-Prefix.pch"; sourceTree = "<group>"; };
+ C982819416DBD71E00CD6831 /* English */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = English; path = English.lproj/PXPatternSizeWindow.xib; sourceTree = "<group>"; };
+ C982819716DBD7B200CD6831 /* PXPatternSizeController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = PXPatternSizeController.h; sourceTree = "<group>"; };
+ C982819816DBD7B200CD6831 /* PXPatternSizeController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = PXPatternSizeController.m; sourceTree = "<group>"; };
C984251113AFC142000072C5 /* English */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = English; path = English.lproj/PXPreview.xib; sourceTree = "<group>"; };
C985C89814C119DF0091EF22 /* English */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = English; path = English.lproj/PXCanvasResizePrompt.xib; sourceTree = "<group>"; };
C989DF9815386C3400B055D5 /* GPLWriter.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = GPLWriter.h; sourceTree = "<group>"; };
@@ -1954,6 +1963,8 @@
EA31FA400CE7D1A700EC481B /* PXPatternEditorView.m */,
C9ADD4A41400821300257E38 /* PXPatternItem.h */,
C9ADD4A51400821300257E38 /* PXPatternItem.m */,
+ C982819716DBD7B200CD6831 /* PXPatternSizeController.h */,
+ C982819816DBD7B200CD6831 /* PXPatternSizeController.m */,
C9606B3316D9C9CC0080ABF8 /* PXSelectPatternController.h */,
C9606B3416D9C9CC0080ABF8 /* PXSelectPatternController.m */,
);
@@ -2354,6 +2365,7 @@
EAE126CF054F41A9001208D9 /* PXImageBackgroundConfigurator.nib */,
C900F4BC1509882F00DC6702 /* PXToolPalette.xib */,
C9ECD4D4150BECB6001F686C /* PXAbout.xib */,
+ C982819316DBD71E00CD6831 /* PXPatternSizeWindow.xib */,
);
name = NIBs;
sourceTree = "<group>";
@@ -2668,6 +2680,7 @@
C90C31B716A60C1300992E3D /* PXInfoView.h in Headers */,
C90C31BD16A705F000992E3D /* PXSeparatorView.h in Headers */,
C9606B3616D9C9CC0080ABF8 /* PXSelectPatternController.h in Headers */,
+ C982819A16DBD7B200CD6831 /* PXPatternSizeController.h in Headers */,
);
runOnlyForDeploymentPostprocessing = 0;
};
@@ -2840,6 +2853,7 @@
C90C31B616A60C1300992E3D /* PXInfoView.h in Headers */,
C90C31BC16A705F000992E3D /* PXSeparatorView.h in Headers */,
C9606B3516D9C9CC0080ABF8 /* PXSelectPatternController.h in Headers */,
+ C982819916DBD7B200CD6831 /* PXPatternSizeController.h in Headers */,
);
runOnlyForDeploymentPostprocessing = 0;
};
@@ -3072,6 +3086,7 @@
C9ACC28315C70AB300D157CB /* SmallSize.png in Resources */,
C9ACC28415C70AB300D157CB /* SmallSize@2x.png in Resources */,
C9606B3C16D9CA0D0080ABF8 /* PXSelectPattern.xib in Resources */,
+ C982819616DBD71E00CD6831 /* PXPatternSizeWindow.xib in Resources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
@@ -3186,6 +3201,7 @@
C9C3B51D15C6FB6F00BA5E0B /* SmallSize.png in Resources */,
C9C3B51E15C6FB6F00BA5E0B /* SmallSize@2x.png in Resources */,
C9606B3B16D9CA0D0080ABF8 /* PXSelectPattern.xib in Resources */,
+ C982819516DBD71E00CD6831 /* PXPatternSizeWindow.xib in Resources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
@@ -3393,6 +3409,7 @@
C90C31BF16A705F000992E3D /* PXSeparatorView.m in Sources */,
C90C31C016A71A1200992E3D /* PXCanvasWindowController_Info.m in Sources */,
C9606B3816D9C9CC0080ABF8 /* PXSelectPatternController.m in Sources */,
+ C982819C16DBD7B200CD6831 /* PXPatternSizeController.m in Sources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
@@ -3571,6 +3588,7 @@
C90C31B816A60C1300992E3D /* PXInfoView.m in Sources */,
C90C31BE16A705F000992E3D /* PXSeparatorView.m in Sources */,
C9606B3716D9C9CC0080ABF8 /* PXSelectPatternController.m in Sources */,
+ C982819B16DBD7B200CD6831 /* PXPatternSizeController.m in Sources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
@@ -3758,6 +3776,14 @@
name = PXEyedropperToolPropertiesView.xib;
sourceTree = "<group>";
};
+ C982819316DBD71E00CD6831 /* PXPatternSizeWindow.xib */ = {
+ isa = PBXVariantGroup;
+ children = (
+ C982819416DBD71E00CD6831 /* English */,
+ );
+ name = PXPatternSizeWindow.xib;
+ sourceTree = "<group>";
+ };
C984251013AFC142000072C5 /* PXPreview.xib */ = {
isa = PBXVariantGroup;
children = (
Please sign in to comment.
Something went wrong with that request. Please try again.