Skip to content

Commit

Permalink
Removed the hardcoded value for the number of rows in the collection …
Browse files Browse the repository at this point in the history
…view.
  • Loading branch information
Ryan C. Payne committed Oct 4, 2010
1 parent 272e4ce commit 14398e7
Show file tree
Hide file tree
Showing 3 changed files with 139 additions and 88 deletions.
4 changes: 4 additions & 0 deletions .gitignore
@@ -0,0 +1,4 @@
.svn
*.mode1v3
*.pbxuser
Build
7 changes: 7 additions & 0 deletions PotionStorefront.xcodeproj/project.pbxproj
Expand Up @@ -426,7 +426,14 @@
isa = PBXProject; isa = PBXProject;
buildConfigurationList = C01FCF4E08A954540054247B /* Build configuration list for PBXProject "PotionStorefront" */; buildConfigurationList = C01FCF4E08A954540054247B /* Build configuration list for PBXProject "PotionStorefront" */;
compatibilityVersion = "Xcode 3.2"; compatibilityVersion = "Xcode 3.2";
developmentRegion = English;
hasScannedForEncodings = 1; hasScannedForEncodings = 1;
knownRegions = (
English,
Japanese,
French,
German,
);
mainGroup = 29B97314FDCFA39411CA2CEA /* PotionStorefront */; mainGroup = 29B97314FDCFA39411CA2CEA /* PotionStorefront */;
projectDirPath = ""; projectDirPath = "";
projectRoot = ""; projectRoot = "";
Expand Down
216 changes: 128 additions & 88 deletions Resources/English.lproj/Store.xib
Expand Up @@ -2,21 +2,21 @@
<archive type="com.apple.InterfaceBuilder3.Cocoa.XIB" version="7.10"> <archive type="com.apple.InterfaceBuilder3.Cocoa.XIB" version="7.10">
<data> <data>
<int key="IBDocument.SystemTarget">1050</int> <int key="IBDocument.SystemTarget">1050</int>
<string key="IBDocument.SystemVersion">10A432</string> <string key="IBDocument.SystemVersion">10F569</string>
<string key="IBDocument.InterfaceBuilderVersion">732</string> <string key="IBDocument.InterfaceBuilderVersion">804</string>
<string key="IBDocument.AppKitVersion">1038</string> <string key="IBDocument.AppKitVersion">1038.29</string>
<string key="IBDocument.HIToolboxVersion">437.00</string> <string key="IBDocument.HIToolboxVersion">461.00</string>
<object class="NSMutableDictionary" key="IBDocument.PluginVersions"> <object class="NSMutableDictionary" key="IBDocument.PluginVersions">
<string key="NS.key.0">com.apple.InterfaceBuilder.CocoaPlugin</string> <string key="NS.key.0">com.apple.InterfaceBuilder.CocoaPlugin</string>
<string key="NS.object.0">732</string> <string key="NS.object.0">804</string>
</object> </object>
<object class="NSMutableArray" key="IBDocument.EditedObjectIDs"> <object class="NSMutableArray" key="IBDocument.EditedObjectIDs">
<bool key="EncodedWithXMLCoder">YES</bool> <bool key="EncodedWithXMLCoder">YES</bool>
<integer value="411"/> <integer value="434"/>
<integer value="2"/>
<integer value="447"/>
<integer value="398"/> <integer value="398"/>
<integer value="2"/>
<integer value="407"/> <integer value="407"/>
<integer value="447"/>
</object> </object>
<object class="NSArray" key="IBDocument.PluginDependencies"> <object class="NSArray" key="IBDocument.PluginDependencies">
<bool key="EncodedWithXMLCoder">YES</bool> <bool key="EncodedWithXMLCoder">YES</bool>
Expand Down Expand Up @@ -350,7 +350,7 @@
<reference key="NSSuperview" ref="672865758"/> <reference key="NSSuperview" ref="672865758"/>
<string key="NSMinGridSize">{0, 0}</string> <string key="NSMinGridSize">{0, 0}</string>
<string key="NSMaxGridSize">{0, 0}</string> <string key="NSMaxGridSize">{0, 0}</string>
<int key="NSMaxNumberOfGridRows">3</int> <int key="NSMaxNumberOfGridRows">0</int>
<int key="NSMaxNumberOfGridColumns">1</int> <int key="NSMaxNumberOfGridColumns">1</int>
<object class="NSArray" key="NSBackgroundColors"> <object class="NSArray" key="NSBackgroundColors">
<bool key="EncodedWithXMLCoder">YES</bool> <bool key="EncodedWithXMLCoder">YES</bool>
Expand Down Expand Up @@ -3953,7 +3953,7 @@ bCBiZSBhcnJpdmluZyBzaG9ydGx5IGJ5IGVtYWlsLg</string>
<string>com.apple.InterfaceBuilder.CocoaPlugin</string> <string>com.apple.InterfaceBuilder.CocoaPlugin</string>
<string>com.apple.InterfaceBuilder.CocoaPlugin</string> <string>com.apple.InterfaceBuilder.CocoaPlugin</string>
<string>com.apple.InterfaceBuilder.CocoaPlugin</string> <string>com.apple.InterfaceBuilder.CocoaPlugin</string>
<string>{{1330, 1085}, {508, 108}}</string> <string>{{1330, 1048}, {508, 108}}</string>
<string>com.apple.InterfaceBuilder.CocoaPlugin</string> <string>com.apple.InterfaceBuilder.CocoaPlugin</string>
<string>com.apple.InterfaceBuilder.CocoaPlugin</string> <string>com.apple.InterfaceBuilder.CocoaPlugin</string>
<string>com.apple.InterfaceBuilder.CocoaPlugin</string> <string>com.apple.InterfaceBuilder.CocoaPlugin</string>
Expand All @@ -3967,7 +3967,7 @@ bCBiZSBhcnJpdmluZyBzaG9ydGx5IGJ5IGVtYWlsLg</string>
<string>PFCollectionViewItem</string> <string>PFCollectionViewItem</string>
<string>com.apple.InterfaceBuilder.CocoaPlugin</string> <string>com.apple.InterfaceBuilder.CocoaPlugin</string>
<string>PFCollectionRowView</string> <string>PFCollectionRowView</string>
<string>{{1333, 966}, {464, 78}}</string> <string>{{838, 966}, {464, 78}}</string>
<string>com.apple.InterfaceBuilder.CocoaPlugin</string> <string>com.apple.InterfaceBuilder.CocoaPlugin</string>
<integer value="1"/> <integer value="1"/>
<string>com.apple.InterfaceBuilder.CocoaPlugin</string> <string>com.apple.InterfaceBuilder.CocoaPlugin</string>
Expand Down Expand Up @@ -4038,6 +4038,13 @@ bCBiZSBhcnJpdmluZyBzaG9ydGx5IGJ5IGVtYWlsLg</string>
<string key="NS.key.0">showRegistrationWindow:</string> <string key="NS.key.0">showRegistrationWindow:</string>
<string key="NS.object.0">id</string> <string key="NS.object.0">id</string>
</object> </object>
<object class="NSMutableDictionary" key="actionInfosByName">
<string key="NS.key.0">showRegistrationWindow:</string>
<object class="IBActionInfo" key="NS.object.0">
<string key="name">showRegistrationWindow:</string>
<string key="candidateClassName">id</string>
</object>
</object>
<object class="IBClassDescriptionSource" key="sourceIdentifier"> <object class="IBClassDescriptionSource" key="sourceIdentifier">
<string key="majorKey">IBProjectSource</string> <string key="majorKey">IBProjectSource</string>
<string key="minorKey">Source/PotionStorefront.h</string> <string key="minorKey">Source/PotionStorefront.h</string>
Expand Down Expand Up @@ -4079,6 +4086,13 @@ bCBiZSBhcnJpdmluZyBzaG9ydGx5IGJ5IGVtYWlsLg</string>
<string key="NS.key.0">toggleItem:</string> <string key="NS.key.0">toggleItem:</string>
<string key="NS.object.0">id</string> <string key="NS.object.0">id</string>
</object> </object>
<object class="NSMutableDictionary" key="actionInfosByName">
<string key="NS.key.0">toggleItem:</string>
<object class="IBActionInfo" key="NS.object.0">
<string key="name">toggleItem:</string>
<string key="candidateClassName">id</string>
</object>
</object>
<reference key="sourceIdentifier" ref="354014785"/> <reference key="sourceIdentifier" ref="354014785"/>
</object> </object>
<object class="IBPartialClassDescription"> <object class="IBPartialClassDescription">
Expand All @@ -4096,6 +4110,13 @@ bCBiZSBhcnJpdmluZyBzaG9ydGx5IGJ5IGVtYWlsLg</string>
<string key="NS.key.0">securityExplanationField</string> <string key="NS.key.0">securityExplanationField</string>
<string key="NS.object.0">PFSecurityExplanationTextField</string> <string key="NS.object.0">PFSecurityExplanationTextField</string>
</object> </object>
<object class="NSMutableDictionary" key="toOneOutletInfosByName">
<string key="NS.key.0">securityExplanationField</string>
<object class="IBToOneOutletInfo" key="NS.object.0">
<string key="name">securityExplanationField</string>
<string key="candidateClassName">PFSecurityExplanationTextField</string>
</object>
</object>
<object class="IBClassDescriptionSource" key="sourceIdentifier" id="142319304"> <object class="IBClassDescriptionSource" key="sourceIdentifier" id="142319304">
<string key="majorKey">IBProjectSource</string> <string key="majorKey">IBProjectSource</string>
<string key="minorKey">Source/PFLockImageView.h</string> <string key="minorKey">Source/PFLockImageView.h</string>
Expand Down Expand Up @@ -4148,89 +4169,68 @@ bCBiZSBhcnJpdmluZyBzaG9ydGx5IGJ5IGVtYWlsLg</string>
<string>id</string> <string>id</string>
</object> </object>
</object> </object>
<object class="NSMutableDictionary" key="outlets"> <object class="NSMutableDictionary" key="actionInfosByName">
<bool key="EncodedWithXMLCoder">YES</bool> <bool key="EncodedWithXMLCoder">YES</bool>
<object class="NSArray" key="dict.sortedKeys"> <object class="NSArray" key="dict.sortedKeys">
<bool key="EncodedWithXMLCoder">YES</bool> <bool key="EncodedWithXMLCoder">YES</bool>
<string>address1Field</string> <string>close:</string>
<string>address1Label</string> <string>openWebStore:</string>
<string>addressPopUpButton</string> <string>purchase:</string>
<string>addressSelectionContainerView</string> <string>selectAddress:</string>
<string>billingView</string> <string>selectCountry:</string>
<string>cityLabel</string> <string>selectPaymentMethod:</string>
<string>countriesArrayController</string> <string>showBillingInformation:</string>
<string>countryPopUpButton</string> <string>showPricing:</string>
<string>creditCardButton</string> <string>showRegistrationWindow:</string>
<string>creditCardExpirationLabel</string> <string>showThankYou:</string>
<string>creditCardExpirationMonthField</string> <string>updatedOrderLineItems:</string>
<string>creditCardExpirationYearField</string>
<string>creditCardNumberField</string>
<string>creditCardNumberLabel</string>
<string>creditCardSecurityCodeLabel</string>
<string>delegate</string>
<string>emailField</string>
<string>emailLabel</string>
<string>firstNameField</string>
<string>firstNameLabel</string>
<string>headerStepsField</string>
<string>headerTitleField</string>
<string>headerView</string>
<string>lastNameLabel</string>
<string>lockImageView</string>
<string>mainContentView</string>
<string>orderTotalField</string>
<string>paypalOrGoogleCheckoutButton</string>
<string>pricingView</string>
<string>primaryButton</string>
<string>productCollectionView</string>
<string>productFetchProgressSpinner</string>
<string>progressSpinner</string>
<string>secondaryButton</string>
<string>stateLabel</string>
<string>tertiaryButton</string>
<string>thankYouView</string>
<string>zipcodeLabel</string>
</object> </object>
<object class="NSMutableArray" key="dict.values"> <object class="NSMutableArray" key="dict.values">
<bool key="EncodedWithXMLCoder">YES</bool> <bool key="EncodedWithXMLCoder">YES</bool>
<string>NSTextField</string> <object class="IBActionInfo">
<string>NSTextField</string> <string key="name">close:</string>
<string>NSPopUpButton</string> <string key="candidateClassName">id</string>
<string>NSView</string> </object>
<string>NSView</string> <object class="IBActionInfo">
<string>NSTextField</string> <string key="name">openWebStore:</string>
<string>NSArrayController</string> <string key="candidateClassName">id</string>
<string>NSPopUpButton</string> </object>
<string>NSButton</string> <object class="IBActionInfo">
<string>NSTextField</string> <string key="name">purchase:</string>
<string>NSTextField</string> <string key="candidateClassName">id</string>
<string>NSTextField</string> </object>
<string>NSTextField</string> <object class="IBActionInfo">
<string>NSTextField</string> <string key="name">selectAddress:</string>
<string>NSTextField</string> <string key="candidateClassName">id</string>
<string>id</string> </object>
<string>NSTextField</string> <object class="IBActionInfo">
<string>NSTextField</string> <string key="name">selectCountry:</string>
<string>NSTextField</string> <string key="candidateClassName">id</string>
<string>NSTextField</string> </object>
<string>NSTextField</string> <object class="IBActionInfo">
<string>NSTextField</string> <string key="name">selectPaymentMethod:</string>
<string>PFBackgroundView</string> <string key="candidateClassName">id</string>
<string>NSTextField</string> </object>
<string>NSImageView</string> <object class="IBActionInfo">
<string>PFBackgroundView</string> <string key="name">showBillingInformation:</string>
<string>NSTextField</string> <string key="candidateClassName">id</string>
<string>NSButton</string> </object>
<string>NSView</string> <object class="IBActionInfo">
<string>NSButton</string> <string key="name">showPricing:</string>
<string>NSCollectionView</string> <string key="candidateClassName">id</string>
<string>NSProgressIndicator</string> </object>
<string>NSProgressIndicator</string> <object class="IBActionInfo">
<string>NSButton</string> <string key="name">showRegistrationWindow:</string>
<string>NSTextField</string> <string key="candidateClassName">id</string>
<string>NSButton</string> </object>
<string>NSView</string> <object class="IBActionInfo">
<string>NSTextField</string> <string key="name">showThankYou:</string>
<string key="candidateClassName">id</string>
</object>
<object class="IBActionInfo">
<string key="name">updatedOrderLineItems:</string>
<string key="candidateClassName">id</string>
</object>
</object> </object>
</object> </object>
<object class="IBClassDescriptionSource" key="sourceIdentifier"> <object class="IBClassDescriptionSource" key="sourceIdentifier">
Expand Down Expand Up @@ -4805,6 +4805,13 @@ bCBiZSBhcnJpdmluZyBzaG9ydGx5IGJ5IGVtYWlsLg</string>
<string key="NS.key.0">view</string> <string key="NS.key.0">view</string>
<string key="NS.object.0">NSView</string> <string key="NS.object.0">NSView</string>
</object> </object>
<object class="NSMutableDictionary" key="toOneOutletInfosByName">
<string key="NS.key.0">view</string>
<object class="IBToOneOutletInfo" key="NS.object.0">
<string key="name">view</string>
<string key="candidateClassName">NSView</string>
</object>
</object>
<object class="IBClassDescriptionSource" key="sourceIdentifier"> <object class="IBClassDescriptionSource" key="sourceIdentifier">
<string key="majorKey">IBFrameworkSource</string> <string key="majorKey">IBFrameworkSource</string>
<string key="minorKey">AppKit.framework/Headers/NSViewController.h</string> <string key="minorKey">AppKit.framework/Headers/NSViewController.h</string>
Expand Down Expand Up @@ -4839,6 +4846,13 @@ bCBiZSBhcnJpdmluZyBzaG9ydGx5IGJ5IGVtYWlsLg</string>
<string key="NS.key.0">showWindow:</string> <string key="NS.key.0">showWindow:</string>
<string key="NS.object.0">id</string> <string key="NS.object.0">id</string>
</object> </object>
<object class="NSMutableDictionary" key="actionInfosByName">
<string key="NS.key.0">showWindow:</string>
<object class="IBActionInfo" key="NS.object.0">
<string key="name">showWindow:</string>
<string key="candidateClassName">id</string>
</object>
</object>
<object class="IBClassDescriptionSource" key="sourceIdentifier"> <object class="IBClassDescriptionSource" key="sourceIdentifier">
<string key="majorKey">IBFrameworkSource</string> <string key="majorKey">IBFrameworkSource</string>
<string key="minorKey">AppKit.framework/Headers/NSWindowController.h</string> <string key="minorKey">AppKit.framework/Headers/NSWindowController.h</string>
Expand All @@ -4847,6 +4861,7 @@ bCBiZSBhcnJpdmluZyBzaG9ydGx5IGJ5IGVtYWlsLg</string>
</object> </object>
</object> </object>
<int key="IBDocument.localizationMode">0</int> <int key="IBDocument.localizationMode">0</int>
<string key="IBDocument.TargetRuntimeIdentifier">IBCocoaFramework</string>
<object class="NSMutableDictionary" key="IBDocument.PluginDeclaredDependencies"> <object class="NSMutableDictionary" key="IBDocument.PluginDeclaredDependencies">
<string key="NS.key.0">com.apple.InterfaceBuilder.CocoaPlugin.macosx</string> <string key="NS.key.0">com.apple.InterfaceBuilder.CocoaPlugin.macosx</string>
<integer value="1050" key="NS.object.0"/> <integer value="1050" key="NS.object.0"/>
Expand All @@ -4862,5 +4877,30 @@ bCBiZSBhcnJpdmluZyBzaG9ydGx5IGJ5IGVtYWlsLg</string>
<bool key="IBDocument.PluginDeclaredDependenciesTrackSystemTargetVersion">YES</bool> <bool key="IBDocument.PluginDeclaredDependenciesTrackSystemTargetVersion">YES</bool>
<string key="IBDocument.LastKnownRelativeProjectPath">../../PotionStorefront.xcodeproj</string> <string key="IBDocument.LastKnownRelativeProjectPath">../../PotionStorefront.xcodeproj</string>
<int key="IBDocument.defaultPropertyAccessControl">3</int> <int key="IBDocument.defaultPropertyAccessControl">3</int>
<object class="NSMutableDictionary" key="IBDocument.LastKnownImageSizes">
<bool key="EncodedWithXMLCoder">YES</bool>
<object class="NSArray" key="dict.sortedKeys">
<bool key="EncodedWithXMLCoder">YES</bool>
<string>NSMenuCheckmark</string>
<string>NSMenuMixedState</string>
<string>NSRadioButton</string>
<string>amex</string>
<string>discover</string>
<string>lock</string>
<string>master</string>
<string>visa</string>
</object>
<object class="NSMutableArray" key="dict.values">
<bool key="EncodedWithXMLCoder">YES</bool>
<string>{9, 8}</string>
<string>{7, 2}</string>
<string>{16, 15}</string>
<string>{44, 28}</string>
<string>{44, 28}</string>
<string>{32, 32}</string>
<string>{44, 28}</string>
<string>{44, 28}</string>
</object>
</object>
</data> </data>
</archive> </archive>

0 comments on commit 14398e7

Please sign in to comment.