Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

full refactoring: new project indeed

  • Loading branch information...
commit 989083e0959aecdca0bbfeebaf0737944ed09896 1 parent 64cb50a
@grancalavera authored
Showing with 7,615 additions and 34 deletions.
  1. +1 −0  .gitignore
  2. +252 −3 Cards.xcodeproj/project.pbxproj
  3. +7 −0 Cards.xcodeproj/project.xcworkspace/contents.xcworkspacedata
  4. +6,470 −0 Cards.xcodeproj/project.xcworkspace/xcuserdata/grancalavera.xcuserdatad/UserInterfaceState.xcuserstate
  5. +10 −0 Cards.xcodeproj/project.xcworkspace/xcuserdata/grancalavera.xcuserdatad/WorkspaceSettings.xcsettings
  6. +5 −0 Cards.xcodeproj/xcuserdata/grancalavera.xcuserdatad/xcdebugger/Breakpoints.xcbkptlist
  7. +76 −0 Cards.xcodeproj/xcuserdata/grancalavera.xcuserdatad/xcschemes/Cards.xcscheme
  8. +22 −0 Cards.xcodeproj/xcuserdata/grancalavera.xcuserdatad/xcschemes/xcschememanagement.plist
  9. +22 −0 Cards/CardViewController.h
  10. +62 −0 Cards/CardViewController.m
  11. +253 −0 Cards/CardViewController.xib
  12. +2 −1  Cards/CardsAppDelegate.h
  13. +3 −0  Cards/CardsAppDelegate.m
  14. +18 −0 Cards/ScrollViewController.h
  15. +69 −0 Cards/ScrollViewController.m
  16. +201 −0 Cards/ScrollViewController.xib
  17. +79 −30 Cards/en.lproj/MainWindow.xib
  18. BIN  Playing Cards/.DS_Store
  19. BIN  Playing Cards/c01.png
  20. BIN  Playing Cards/c02.png
  21. BIN  Playing Cards/c03.png
  22. BIN  Playing Cards/c04.png
  23. BIN  Playing Cards/c05.png
  24. BIN  Playing Cards/c06.png
  25. BIN  Playing Cards/c07.png
  26. BIN  Playing Cards/c08.png
  27. BIN  Playing Cards/c09.png
  28. BIN  Playing Cards/c10.png
  29. BIN  Playing Cards/c11.png
  30. BIN  Playing Cards/c12.png
  31. BIN  Playing Cards/c13.png
  32. +2 −0  Playing Cards/cards.plist
  33. BIN  Playing Cards/d01.png
  34. BIN  Playing Cards/d02.png
  35. BIN  Playing Cards/d03.png
  36. BIN  Playing Cards/d04.png
  37. BIN  Playing Cards/d05.png
  38. BIN  Playing Cards/d06.png
  39. BIN  Playing Cards/d07.png
  40. BIN  Playing Cards/d08.png
  41. BIN  Playing Cards/d09.png
  42. BIN  Playing Cards/d10.png
  43. BIN  Playing Cards/d11.png
  44. BIN  Playing Cards/d12.png
  45. BIN  Playing Cards/d13.png
  46. +61 −0 Playing Cards/generate.py
  47. BIN  Playing Cards/h01.png
  48. BIN  Playing Cards/h02.png
  49. BIN  Playing Cards/h03.png
  50. BIN  Playing Cards/h04.png
  51. BIN  Playing Cards/h05.png
  52. BIN  Playing Cards/h06.png
  53. BIN  Playing Cards/h07.png
  54. BIN  Playing Cards/h08.png
  55. BIN  Playing Cards/h09.png
  56. BIN  Playing Cards/h10.png
  57. BIN  Playing Cards/h11.png
  58. BIN  Playing Cards/h12.png
  59. BIN  Playing Cards/h13.png
  60. BIN  Playing Cards/s01.png
  61. BIN  Playing Cards/s02.png
  62. BIN  Playing Cards/s03.png
  63. BIN  Playing Cards/s04.png
  64. BIN  Playing Cards/s05.png
  65. BIN  Playing Cards/s06.png
  66. BIN  Playing Cards/s07.png
  67. BIN  Playing Cards/s08.png
  68. BIN  Playing Cards/s09.png
  69. BIN  Playing Cards/s10.png
  70. BIN  Playing Cards/s11.png
  71. BIN  Playing Cards/s12.png
  72. BIN  Playing Cards/s13.png
View
1  .gitignore
@@ -0,0 +1 @@
+.DS_Store
View
255 Cards.xcodeproj/project.pbxproj
@@ -14,6 +14,65 @@
91AAE4AE1362218100DAB4F4 /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 91AAE4AD1362218100DAB4F4 /* main.m */; };
91AAE4B11362218100DAB4F4 /* CardsAppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 91AAE4B01362218100DAB4F4 /* CardsAppDelegate.m */; };
91AAE4B41362218200DAB4F4 /* MainWindow.xib in Resources */ = {isa = PBXBuildFile; fileRef = 91AAE4B21362218200DAB4F4 /* MainWindow.xib */; };
+ 91AAE4BD136221F000DAB4F4 /* ScrollViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 91AAE4BB136221F000DAB4F4 /* ScrollViewController.m */; };
+ 91AAE4BE136221F000DAB4F4 /* ScrollViewController.xib in Resources */ = {isa = PBXBuildFile; fileRef = 91AAE4BC136221F000DAB4F4 /* ScrollViewController.xib */; };
+ 91AAE5261362352300DAB4F4 /* c01.png in Resources */ = {isa = PBXBuildFile; fileRef = 91AAE4EF1362352300DAB4F4 /* c01.png */; };
+ 91AAE5271362352300DAB4F4 /* c02.png in Resources */ = {isa = PBXBuildFile; fileRef = 91AAE4F01362352300DAB4F4 /* c02.png */; };
+ 91AAE5281362352300DAB4F4 /* c03.png in Resources */ = {isa = PBXBuildFile; fileRef = 91AAE4F11362352300DAB4F4 /* c03.png */; };
+ 91AAE5291362352300DAB4F4 /* c04.png in Resources */ = {isa = PBXBuildFile; fileRef = 91AAE4F21362352300DAB4F4 /* c04.png */; };
+ 91AAE52A1362352300DAB4F4 /* c05.png in Resources */ = {isa = PBXBuildFile; fileRef = 91AAE4F31362352300DAB4F4 /* c05.png */; };
+ 91AAE52B1362352300DAB4F4 /* c06.png in Resources */ = {isa = PBXBuildFile; fileRef = 91AAE4F41362352300DAB4F4 /* c06.png */; };
+ 91AAE52C1362352300DAB4F4 /* c07.png in Resources */ = {isa = PBXBuildFile; fileRef = 91AAE4F51362352300DAB4F4 /* c07.png */; };
+ 91AAE52D1362352300DAB4F4 /* c08.png in Resources */ = {isa = PBXBuildFile; fileRef = 91AAE4F61362352300DAB4F4 /* c08.png */; };
+ 91AAE52E1362352300DAB4F4 /* c09.png in Resources */ = {isa = PBXBuildFile; fileRef = 91AAE4F71362352300DAB4F4 /* c09.png */; };
+ 91AAE52F1362352300DAB4F4 /* c10.png in Resources */ = {isa = PBXBuildFile; fileRef = 91AAE4F81362352300DAB4F4 /* c10.png */; };
+ 91AAE5301362352300DAB4F4 /* c11.png in Resources */ = {isa = PBXBuildFile; fileRef = 91AAE4F91362352300DAB4F4 /* c11.png */; };
+ 91AAE5311362352300DAB4F4 /* c12.png in Resources */ = {isa = PBXBuildFile; fileRef = 91AAE4FA1362352300DAB4F4 /* c12.png */; };
+ 91AAE5321362352300DAB4F4 /* c13.png in Resources */ = {isa = PBXBuildFile; fileRef = 91AAE4FB1362352300DAB4F4 /* c13.png */; };
+ 91AAE5331362352300DAB4F4 /* card_list.plist in Resources */ = {isa = PBXBuildFile; fileRef = 91AAE4FC1362352300DAB4F4 /* card_list.plist */; };
+ 91AAE5341362352300DAB4F4 /* cards.plist in Resources */ = {isa = PBXBuildFile; fileRef = 91AAE4FD1362352300DAB4F4 /* cards.plist */; };
+ 91AAE5351362352300DAB4F4 /* d01.png in Resources */ = {isa = PBXBuildFile; fileRef = 91AAE4FE1362352300DAB4F4 /* d01.png */; };
+ 91AAE5361362352300DAB4F4 /* d02.png in Resources */ = {isa = PBXBuildFile; fileRef = 91AAE4FF1362352300DAB4F4 /* d02.png */; };
+ 91AAE5371362352300DAB4F4 /* d03.png in Resources */ = {isa = PBXBuildFile; fileRef = 91AAE5001362352300DAB4F4 /* d03.png */; };
+ 91AAE5381362352300DAB4F4 /* d04.png in Resources */ = {isa = PBXBuildFile; fileRef = 91AAE5011362352300DAB4F4 /* d04.png */; };
+ 91AAE5391362352300DAB4F4 /* d05.png in Resources */ = {isa = PBXBuildFile; fileRef = 91AAE5021362352300DAB4F4 /* d05.png */; };
+ 91AAE53A1362352300DAB4F4 /* d06.png in Resources */ = {isa = PBXBuildFile; fileRef = 91AAE5031362352300DAB4F4 /* d06.png */; };
+ 91AAE53B1362352300DAB4F4 /* d07.png in Resources */ = {isa = PBXBuildFile; fileRef = 91AAE5041362352300DAB4F4 /* d07.png */; };
+ 91AAE53C1362352300DAB4F4 /* d08.png in Resources */ = {isa = PBXBuildFile; fileRef = 91AAE5051362352300DAB4F4 /* d08.png */; };
+ 91AAE53D1362352300DAB4F4 /* d09.png in Resources */ = {isa = PBXBuildFile; fileRef = 91AAE5061362352300DAB4F4 /* d09.png */; };
+ 91AAE53E1362352300DAB4F4 /* d10.png in Resources */ = {isa = PBXBuildFile; fileRef = 91AAE5071362352300DAB4F4 /* d10.png */; };
+ 91AAE53F1362352300DAB4F4 /* d11.png in Resources */ = {isa = PBXBuildFile; fileRef = 91AAE5081362352300DAB4F4 /* d11.png */; };
+ 91AAE5401362352300DAB4F4 /* d12.png in Resources */ = {isa = PBXBuildFile; fileRef = 91AAE5091362352300DAB4F4 /* d12.png */; };
+ 91AAE5411362352300DAB4F4 /* d13.png in Resources */ = {isa = PBXBuildFile; fileRef = 91AAE50A1362352300DAB4F4 /* d13.png */; };
+ 91AAE5421362352300DAB4F4 /* generate.py in Resources */ = {isa = PBXBuildFile; fileRef = 91AAE50B1362352300DAB4F4 /* generate.py */; };
+ 91AAE5431362352300DAB4F4 /* h01.png in Resources */ = {isa = PBXBuildFile; fileRef = 91AAE50C1362352300DAB4F4 /* h01.png */; };
+ 91AAE5441362352300DAB4F4 /* h02.png in Resources */ = {isa = PBXBuildFile; fileRef = 91AAE50D1362352300DAB4F4 /* h02.png */; };
+ 91AAE5451362352300DAB4F4 /* h03.png in Resources */ = {isa = PBXBuildFile; fileRef = 91AAE50E1362352300DAB4F4 /* h03.png */; };
+ 91AAE5461362352300DAB4F4 /* h04.png in Resources */ = {isa = PBXBuildFile; fileRef = 91AAE50F1362352300DAB4F4 /* h04.png */; };
+ 91AAE5471362352300DAB4F4 /* h05.png in Resources */ = {isa = PBXBuildFile; fileRef = 91AAE5101362352300DAB4F4 /* h05.png */; };
+ 91AAE5481362352300DAB4F4 /* h06.png in Resources */ = {isa = PBXBuildFile; fileRef = 91AAE5111362352300DAB4F4 /* h06.png */; };
+ 91AAE5491362352300DAB4F4 /* h07.png in Resources */ = {isa = PBXBuildFile; fileRef = 91AAE5121362352300DAB4F4 /* h07.png */; };
+ 91AAE54A1362352300DAB4F4 /* h08.png in Resources */ = {isa = PBXBuildFile; fileRef = 91AAE5131362352300DAB4F4 /* h08.png */; };
+ 91AAE54B1362352400DAB4F4 /* h09.png in Resources */ = {isa = PBXBuildFile; fileRef = 91AAE5141362352300DAB4F4 /* h09.png */; };
+ 91AAE54C1362352400DAB4F4 /* h10.png in Resources */ = {isa = PBXBuildFile; fileRef = 91AAE5151362352300DAB4F4 /* h10.png */; };
+ 91AAE54D1362352400DAB4F4 /* h11.png in Resources */ = {isa = PBXBuildFile; fileRef = 91AAE5161362352300DAB4F4 /* h11.png */; };
+ 91AAE54E1362352400DAB4F4 /* h12.png in Resources */ = {isa = PBXBuildFile; fileRef = 91AAE5171362352300DAB4F4 /* h12.png */; };
+ 91AAE54F1362352400DAB4F4 /* h13.png in Resources */ = {isa = PBXBuildFile; fileRef = 91AAE5181362352300DAB4F4 /* h13.png */; };
+ 91AAE5501362352400DAB4F4 /* s01.png in Resources */ = {isa = PBXBuildFile; fileRef = 91AAE5191362352300DAB4F4 /* s01.png */; };
+ 91AAE5511362352400DAB4F4 /* s02.png in Resources */ = {isa = PBXBuildFile; fileRef = 91AAE51A1362352300DAB4F4 /* s02.png */; };
+ 91AAE5521362352400DAB4F4 /* s03.png in Resources */ = {isa = PBXBuildFile; fileRef = 91AAE51B1362352300DAB4F4 /* s03.png */; };
+ 91AAE5531362352400DAB4F4 /* s04.png in Resources */ = {isa = PBXBuildFile; fileRef = 91AAE51C1362352300DAB4F4 /* s04.png */; };
+ 91AAE5541362352400DAB4F4 /* s05.png in Resources */ = {isa = PBXBuildFile; fileRef = 91AAE51D1362352300DAB4F4 /* s05.png */; };
+ 91AAE5551362352400DAB4F4 /* s06.png in Resources */ = {isa = PBXBuildFile; fileRef = 91AAE51E1362352300DAB4F4 /* s06.png */; };
+ 91AAE5561362352400DAB4F4 /* s07.png in Resources */ = {isa = PBXBuildFile; fileRef = 91AAE51F1362352300DAB4F4 /* s07.png */; };
+ 91AAE5571362352400DAB4F4 /* s08.png in Resources */ = {isa = PBXBuildFile; fileRef = 91AAE5201362352300DAB4F4 /* s08.png */; };
+ 91AAE5581362352400DAB4F4 /* s09.png in Resources */ = {isa = PBXBuildFile; fileRef = 91AAE5211362352300DAB4F4 /* s09.png */; };
+ 91AAE5591362352400DAB4F4 /* s10.png in Resources */ = {isa = PBXBuildFile; fileRef = 91AAE5221362352300DAB4F4 /* s10.png */; };
+ 91AAE55A1362352400DAB4F4 /* s11.png in Resources */ = {isa = PBXBuildFile; fileRef = 91AAE5231362352300DAB4F4 /* s11.png */; };
+ 91AAE55B1362352400DAB4F4 /* s12.png in Resources */ = {isa = PBXBuildFile; fileRef = 91AAE5241362352300DAB4F4 /* s12.png */; };
+ 91AAE55C1362352400DAB4F4 /* s13.png in Resources */ = {isa = PBXBuildFile; fileRef = 91AAE5251362352300DAB4F4 /* s13.png */; };
+ 91AAE5681362C1F800DAB4F4 /* CardViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 91AAE5661362C1F700DAB4F4 /* CardViewController.m */; };
+ 91AAE5691362C1F800DAB4F4 /* CardViewController.xib in Resources */ = {isa = PBXBuildFile; fileRef = 91AAE5671362C1F700DAB4F4 /* CardViewController.xib */; };
/* End PBXBuildFile section */
/* Begin PBXFileReference section */
@@ -21,13 +80,74 @@
91AAE4A01362218100DAB4F4 /* UIKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = UIKit.framework; path = System/Library/Frameworks/UIKit.framework; sourceTree = SDKROOT; };
91AAE4A21362218100DAB4F4 /* Foundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Foundation.framework; path = System/Library/Frameworks/Foundation.framework; sourceTree = SDKROOT; };
91AAE4A41362218100DAB4F4 /* CoreGraphics.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreGraphics.framework; path = System/Library/Frameworks/CoreGraphics.framework; sourceTree = SDKROOT; };
- 91AAE4A81362218100DAB4F4 /* Cards-Info.plist */ = {isa = PBXFileReference; path = "Cards-Info.plist"; sourceTree = "<group>"; };
+ 91AAE4A81362218100DAB4F4 /* Cards-Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = "Cards-Info.plist"; sourceTree = "<group>"; };
91AAE4AA1362218100DAB4F4 /* en */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = en; path = en.lproj/InfoPlist.strings; sourceTree = "<group>"; };
- 91AAE4AC1362218100DAB4F4 /* Cards-Prefix.pch */ = {isa = PBXFileReference; path = "Cards-Prefix.pch"; sourceTree = "<group>"; };
+ 91AAE4AC1362218100DAB4F4 /* Cards-Prefix.pch */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "Cards-Prefix.pch"; sourceTree = "<group>"; };
91AAE4AD1362218100DAB4F4 /* main.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = "<group>"; };
- 91AAE4AF1362218100DAB4F4 /* CardsAppDelegate.h */ = {isa = PBXFileReference; path = CardsAppDelegate.h; sourceTree = "<group>"; };
+ 91AAE4AF1362218100DAB4F4 /* CardsAppDelegate.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = CardsAppDelegate.h; sourceTree = "<group>"; };
91AAE4B01362218100DAB4F4 /* CardsAppDelegate.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = CardsAppDelegate.m; sourceTree = "<group>"; };
91AAE4B31362218200DAB4F4 /* en */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = en; path = en.lproj/MainWindow.xib; sourceTree = "<group>"; };
+ 91AAE4BA136221F000DAB4F4 /* ScrollViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ScrollViewController.h; sourceTree = "<group>"; };
+ 91AAE4BB136221F000DAB4F4 /* ScrollViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = ScrollViewController.m; sourceTree = "<group>"; };
+ 91AAE4BC136221F000DAB4F4 /* ScrollViewController.xib */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.xib; path = ScrollViewController.xib; sourceTree = "<group>"; };
+ 91AAE4EF1362352300DAB4F4 /* c01.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = c01.png; sourceTree = "<group>"; };
+ 91AAE4F01362352300DAB4F4 /* c02.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = c02.png; sourceTree = "<group>"; };
+ 91AAE4F11362352300DAB4F4 /* c03.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = c03.png; sourceTree = "<group>"; };
+ 91AAE4F21362352300DAB4F4 /* c04.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = c04.png; sourceTree = "<group>"; };
+ 91AAE4F31362352300DAB4F4 /* c05.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = c05.png; sourceTree = "<group>"; };
+ 91AAE4F41362352300DAB4F4 /* c06.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = c06.png; sourceTree = "<group>"; };
+ 91AAE4F51362352300DAB4F4 /* c07.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = c07.png; sourceTree = "<group>"; };
+ 91AAE4F61362352300DAB4F4 /* c08.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = c08.png; sourceTree = "<group>"; };
+ 91AAE4F71362352300DAB4F4 /* c09.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = c09.png; sourceTree = "<group>"; };
+ 91AAE4F81362352300DAB4F4 /* c10.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = c10.png; sourceTree = "<group>"; };
+ 91AAE4F91362352300DAB4F4 /* c11.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = c11.png; sourceTree = "<group>"; };
+ 91AAE4FA1362352300DAB4F4 /* c12.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = c12.png; sourceTree = "<group>"; };
+ 91AAE4FB1362352300DAB4F4 /* c13.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = c13.png; sourceTree = "<group>"; };
+ 91AAE4FC1362352300DAB4F4 /* card_list.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; path = card_list.plist; sourceTree = "<group>"; };
+ 91AAE4FD1362352300DAB4F4 /* cards.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; path = cards.plist; sourceTree = "<group>"; };
+ 91AAE4FE1362352300DAB4F4 /* d01.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = d01.png; sourceTree = "<group>"; };
+ 91AAE4FF1362352300DAB4F4 /* d02.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = d02.png; sourceTree = "<group>"; };
+ 91AAE5001362352300DAB4F4 /* d03.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = d03.png; sourceTree = "<group>"; };
+ 91AAE5011362352300DAB4F4 /* d04.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = d04.png; sourceTree = "<group>"; };
+ 91AAE5021362352300DAB4F4 /* d05.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = d05.png; sourceTree = "<group>"; };
+ 91AAE5031362352300DAB4F4 /* d06.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = d06.png; sourceTree = "<group>"; };
+ 91AAE5041362352300DAB4F4 /* d07.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = d07.png; sourceTree = "<group>"; };
+ 91AAE5051362352300DAB4F4 /* d08.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = d08.png; sourceTree = "<group>"; };
+ 91AAE5061362352300DAB4F4 /* d09.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = d09.png; sourceTree = "<group>"; };
+ 91AAE5071362352300DAB4F4 /* d10.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = d10.png; sourceTree = "<group>"; };
+ 91AAE5081362352300DAB4F4 /* d11.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = d11.png; sourceTree = "<group>"; };
+ 91AAE5091362352300DAB4F4 /* d12.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = d12.png; sourceTree = "<group>"; };
+ 91AAE50A1362352300DAB4F4 /* d13.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = d13.png; sourceTree = "<group>"; };
+ 91AAE50B1362352300DAB4F4 /* generate.py */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.script.python; path = generate.py; sourceTree = "<group>"; };
+ 91AAE50C1362352300DAB4F4 /* h01.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = h01.png; sourceTree = "<group>"; };
+ 91AAE50D1362352300DAB4F4 /* h02.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = h02.png; sourceTree = "<group>"; };
+ 91AAE50E1362352300DAB4F4 /* h03.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = h03.png; sourceTree = "<group>"; };
+ 91AAE50F1362352300DAB4F4 /* h04.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = h04.png; sourceTree = "<group>"; };
+ 91AAE5101362352300DAB4F4 /* h05.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = h05.png; sourceTree = "<group>"; };
+ 91AAE5111362352300DAB4F4 /* h06.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = h06.png; sourceTree = "<group>"; };
+ 91AAE5121362352300DAB4F4 /* h07.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = h07.png; sourceTree = "<group>"; };
+ 91AAE5131362352300DAB4F4 /* h08.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = h08.png; sourceTree = "<group>"; };
+ 91AAE5141362352300DAB4F4 /* h09.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = h09.png; sourceTree = "<group>"; };
+ 91AAE5151362352300DAB4F4 /* h10.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = h10.png; sourceTree = "<group>"; };
+ 91AAE5161362352300DAB4F4 /* h11.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = h11.png; sourceTree = "<group>"; };
+ 91AAE5171362352300DAB4F4 /* h12.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = h12.png; sourceTree = "<group>"; };
+ 91AAE5181362352300DAB4F4 /* h13.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = h13.png; sourceTree = "<group>"; };
+ 91AAE5191362352300DAB4F4 /* s01.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = s01.png; sourceTree = "<group>"; };
+ 91AAE51A1362352300DAB4F4 /* s02.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = s02.png; sourceTree = "<group>"; };
+ 91AAE51B1362352300DAB4F4 /* s03.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = s03.png; sourceTree = "<group>"; };
+ 91AAE51C1362352300DAB4F4 /* s04.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = s04.png; sourceTree = "<group>"; };
+ 91AAE51D1362352300DAB4F4 /* s05.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = s05.png; sourceTree = "<group>"; };
+ 91AAE51E1362352300DAB4F4 /* s06.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = s06.png; sourceTree = "<group>"; };
+ 91AAE51F1362352300DAB4F4 /* s07.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = s07.png; sourceTree = "<group>"; };
+ 91AAE5201362352300DAB4F4 /* s08.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = s08.png; sourceTree = "<group>"; };
+ 91AAE5211362352300DAB4F4 /* s09.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = s09.png; sourceTree = "<group>"; };
+ 91AAE5221362352300DAB4F4 /* s10.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = s10.png; sourceTree = "<group>"; };
+ 91AAE5231362352300DAB4F4 /* s11.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = s11.png; sourceTree = "<group>"; };
+ 91AAE5241362352300DAB4F4 /* s12.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = s12.png; sourceTree = "<group>"; };
+ 91AAE5251362352300DAB4F4 /* s13.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = s13.png; sourceTree = "<group>"; };
+ 91AAE5651362C1F700DAB4F4 /* CardViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = CardViewController.h; sourceTree = "<group>"; };
+ 91AAE5661362C1F700DAB4F4 /* CardViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = CardViewController.m; sourceTree = "<group>"; };
+ 91AAE5671362C1F700DAB4F4 /* CardViewController.xib */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.xib; path = CardViewController.xib; sourceTree = "<group>"; };
/* End PBXFileReference section */
/* Begin PBXFrameworksBuildPhase section */
@@ -47,6 +167,7 @@
91AAE4911362218100DAB4F4 = {
isa = PBXGroup;
children = (
+ 91AAE4EE1362352300DAB4F4 /* Playing Cards */,
91AAE4A61362218100DAB4F4 /* Cards */,
91AAE49F1362218100DAB4F4 /* Frameworks */,
91AAE49D1362218100DAB4F4 /* Products */,
@@ -78,6 +199,12 @@
91AAE4B01362218100DAB4F4 /* CardsAppDelegate.m */,
91AAE4B21362218200DAB4F4 /* MainWindow.xib */,
91AAE4A71362218100DAB4F4 /* Supporting Files */,
+ 91AAE4BA136221F000DAB4F4 /* ScrollViewController.h */,
+ 91AAE4BB136221F000DAB4F4 /* ScrollViewController.m */,
+ 91AAE4BC136221F000DAB4F4 /* ScrollViewController.xib */,
+ 91AAE5651362C1F700DAB4F4 /* CardViewController.h */,
+ 91AAE5661362C1F700DAB4F4 /* CardViewController.m */,
+ 91AAE5671362C1F700DAB4F4 /* CardViewController.xib */,
);
path = Cards;
sourceTree = "<group>";
@@ -93,6 +220,68 @@
name = "Supporting Files";
sourceTree = "<group>";
};
+ 91AAE4EE1362352300DAB4F4 /* Playing Cards */ = {
+ isa = PBXGroup;
+ children = (
+ 91AAE4EF1362352300DAB4F4 /* c01.png */,
+ 91AAE4F01362352300DAB4F4 /* c02.png */,
+ 91AAE4F11362352300DAB4F4 /* c03.png */,
+ 91AAE4F21362352300DAB4F4 /* c04.png */,
+ 91AAE4F31362352300DAB4F4 /* c05.png */,
+ 91AAE4F41362352300DAB4F4 /* c06.png */,
+ 91AAE4F51362352300DAB4F4 /* c07.png */,
+ 91AAE4F61362352300DAB4F4 /* c08.png */,
+ 91AAE4F71362352300DAB4F4 /* c09.png */,
+ 91AAE4F81362352300DAB4F4 /* c10.png */,
+ 91AAE4F91362352300DAB4F4 /* c11.png */,
+ 91AAE4FA1362352300DAB4F4 /* c12.png */,
+ 91AAE4FB1362352300DAB4F4 /* c13.png */,
+ 91AAE4FC1362352300DAB4F4 /* card_list.plist */,
+ 91AAE4FD1362352300DAB4F4 /* cards.plist */,
+ 91AAE4FE1362352300DAB4F4 /* d01.png */,
+ 91AAE4FF1362352300DAB4F4 /* d02.png */,
+ 91AAE5001362352300DAB4F4 /* d03.png */,
+ 91AAE5011362352300DAB4F4 /* d04.png */,
+ 91AAE5021362352300DAB4F4 /* d05.png */,
+ 91AAE5031362352300DAB4F4 /* d06.png */,
+ 91AAE5041362352300DAB4F4 /* d07.png */,
+ 91AAE5051362352300DAB4F4 /* d08.png */,
+ 91AAE5061362352300DAB4F4 /* d09.png */,
+ 91AAE5071362352300DAB4F4 /* d10.png */,
+ 91AAE5081362352300DAB4F4 /* d11.png */,
+ 91AAE5091362352300DAB4F4 /* d12.png */,
+ 91AAE50A1362352300DAB4F4 /* d13.png */,
+ 91AAE50B1362352300DAB4F4 /* generate.py */,
+ 91AAE50C1362352300DAB4F4 /* h01.png */,
+ 91AAE50D1362352300DAB4F4 /* h02.png */,
+ 91AAE50E1362352300DAB4F4 /* h03.png */,
+ 91AAE50F1362352300DAB4F4 /* h04.png */,
+ 91AAE5101362352300DAB4F4 /* h05.png */,
+ 91AAE5111362352300DAB4F4 /* h06.png */,
+ 91AAE5121362352300DAB4F4 /* h07.png */,
+ 91AAE5131362352300DAB4F4 /* h08.png */,
+ 91AAE5141362352300DAB4F4 /* h09.png */,
+ 91AAE5151362352300DAB4F4 /* h10.png */,
+ 91AAE5161362352300DAB4F4 /* h11.png */,
+ 91AAE5171362352300DAB4F4 /* h12.png */,
+ 91AAE5181362352300DAB4F4 /* h13.png */,
+ 91AAE5191362352300DAB4F4 /* s01.png */,
+ 91AAE51A1362352300DAB4F4 /* s02.png */,
+ 91AAE51B1362352300DAB4F4 /* s03.png */,
+ 91AAE51C1362352300DAB4F4 /* s04.png */,
+ 91AAE51D1362352300DAB4F4 /* s05.png */,
+ 91AAE51E1362352300DAB4F4 /* s06.png */,
+ 91AAE51F1362352300DAB4F4 /* s07.png */,
+ 91AAE5201362352300DAB4F4 /* s08.png */,
+ 91AAE5211362352300DAB4F4 /* s09.png */,
+ 91AAE5221362352300DAB4F4 /* s10.png */,
+ 91AAE5231362352300DAB4F4 /* s11.png */,
+ 91AAE5241362352300DAB4F4 /* s12.png */,
+ 91AAE5251362352300DAB4F4 /* s13.png */,
+ );
+ path = "Playing Cards";
+ sourceTree = "<group>";
+ };
/* End PBXGroup section */
/* Begin PBXNativeTarget section */
@@ -142,6 +331,63 @@
files = (
91AAE4AB1362218100DAB4F4 /* InfoPlist.strings in Resources */,
91AAE4B41362218200DAB4F4 /* MainWindow.xib in Resources */,
+ 91AAE4BE136221F000DAB4F4 /* ScrollViewController.xib in Resources */,
+ 91AAE5261362352300DAB4F4 /* c01.png in Resources */,
+ 91AAE5271362352300DAB4F4 /* c02.png in Resources */,
+ 91AAE5281362352300DAB4F4 /* c03.png in Resources */,
+ 91AAE5291362352300DAB4F4 /* c04.png in Resources */,
+ 91AAE52A1362352300DAB4F4 /* c05.png in Resources */,
+ 91AAE52B1362352300DAB4F4 /* c06.png in Resources */,
+ 91AAE52C1362352300DAB4F4 /* c07.png in Resources */,
+ 91AAE52D1362352300DAB4F4 /* c08.png in Resources */,
+ 91AAE52E1362352300DAB4F4 /* c09.png in Resources */,
+ 91AAE52F1362352300DAB4F4 /* c10.png in Resources */,
+ 91AAE5301362352300DAB4F4 /* c11.png in Resources */,
+ 91AAE5311362352300DAB4F4 /* c12.png in Resources */,
+ 91AAE5321362352300DAB4F4 /* c13.png in Resources */,
+ 91AAE5331362352300DAB4F4 /* card_list.plist in Resources */,
+ 91AAE5341362352300DAB4F4 /* cards.plist in Resources */,
+ 91AAE5351362352300DAB4F4 /* d01.png in Resources */,
+ 91AAE5361362352300DAB4F4 /* d02.png in Resources */,
+ 91AAE5371362352300DAB4F4 /* d03.png in Resources */,
+ 91AAE5381362352300DAB4F4 /* d04.png in Resources */,
+ 91AAE5391362352300DAB4F4 /* d05.png in Resources */,
+ 91AAE53A1362352300DAB4F4 /* d06.png in Resources */,
+ 91AAE53B1362352300DAB4F4 /* d07.png in Resources */,
+ 91AAE53C1362352300DAB4F4 /* d08.png in Resources */,
+ 91AAE53D1362352300DAB4F4 /* d09.png in Resources */,
+ 91AAE53E1362352300DAB4F4 /* d10.png in Resources */,
+ 91AAE53F1362352300DAB4F4 /* d11.png in Resources */,
+ 91AAE5401362352300DAB4F4 /* d12.png in Resources */,
+ 91AAE5411362352300DAB4F4 /* d13.png in Resources */,
+ 91AAE5421362352300DAB4F4 /* generate.py in Resources */,
+ 91AAE5431362352300DAB4F4 /* h01.png in Resources */,
+ 91AAE5441362352300DAB4F4 /* h02.png in Resources */,
+ 91AAE5451362352300DAB4F4 /* h03.png in Resources */,
+ 91AAE5461362352300DAB4F4 /* h04.png in Resources */,
+ 91AAE5471362352300DAB4F4 /* h05.png in Resources */,
+ 91AAE5481362352300DAB4F4 /* h06.png in Resources */,
+ 91AAE5491362352300DAB4F4 /* h07.png in Resources */,
+ 91AAE54A1362352300DAB4F4 /* h08.png in Resources */,
+ 91AAE54B1362352400DAB4F4 /* h09.png in Resources */,
+ 91AAE54C1362352400DAB4F4 /* h10.png in Resources */,
+ 91AAE54D1362352400DAB4F4 /* h11.png in Resources */,
+ 91AAE54E1362352400DAB4F4 /* h12.png in Resources */,
+ 91AAE54F1362352400DAB4F4 /* h13.png in Resources */,
+ 91AAE5501362352400DAB4F4 /* s01.png in Resources */,
+ 91AAE5511362352400DAB4F4 /* s02.png in Resources */,
+ 91AAE5521362352400DAB4F4 /* s03.png in Resources */,
+ 91AAE5531362352400DAB4F4 /* s04.png in Resources */,
+ 91AAE5541362352400DAB4F4 /* s05.png in Resources */,
+ 91AAE5551362352400DAB4F4 /* s06.png in Resources */,
+ 91AAE5561362352400DAB4F4 /* s07.png in Resources */,
+ 91AAE5571362352400DAB4F4 /* s08.png in Resources */,
+ 91AAE5581362352400DAB4F4 /* s09.png in Resources */,
+ 91AAE5591362352400DAB4F4 /* s10.png in Resources */,
+ 91AAE55A1362352400DAB4F4 /* s11.png in Resources */,
+ 91AAE55B1362352400DAB4F4 /* s12.png in Resources */,
+ 91AAE55C1362352400DAB4F4 /* s13.png in Resources */,
+ 91AAE5691362C1F800DAB4F4 /* CardViewController.xib in Resources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
@@ -154,6 +400,8 @@
files = (
91AAE4AE1362218100DAB4F4 /* main.m in Sources */,
91AAE4B11362218100DAB4F4 /* CardsAppDelegate.m in Sources */,
+ 91AAE4BD136221F000DAB4F4 /* ScrollViewController.m in Sources */,
+ 91AAE5681362C1F800DAB4F4 /* CardViewController.m in Sources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
@@ -258,6 +506,7 @@
91AAE4B91362218200DAB4F4 /* Release */,
);
defaultConfigurationIsVisible = 0;
+ defaultConfigurationName = Release;
};
/* End XCConfigurationList section */
};
View
7 Cards.xcodeproj/project.xcworkspace/contents.xcworkspacedata
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<Workspace
+ version = "1.0">
+ <FileRef
+ location = "self:Cards.xcodeproj">
+ </FileRef>
+</Workspace>
View
6,470 Cards.xcodeproj/project.xcworkspace/xcuserdata/grancalavera.xcuserdatad/UserInterfaceState.xcuserstate
6,470 additions, 0 deletions not shown
View
10 Cards.xcodeproj/project.xcworkspace/xcuserdata/grancalavera.xcuserdatad/WorkspaceSettings.xcsettings
@@ -0,0 +1,10 @@
+<?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>IDEWorkspaceUserSettings_HasAskedToTakeAutomaticSnapshotBeforeSignificantChanges</key>
+ <true/>
+ <key>IDEWorkspaceUserSettings_SnapshotAutomaticallyBeforeSignificantChanges</key>
+ <true/>
+</dict>
+</plist>
View
5 Cards.xcodeproj/xcuserdata/grancalavera.xcuserdatad/xcdebugger/Breakpoints.xcbkptlist
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<Bucket
+ type = "1"
+ version = "1.0">
+</Bucket>
View
76 Cards.xcodeproj/xcuserdata/grancalavera.xcuserdatad/xcschemes/Cards.xcscheme
@@ -0,0 +1,76 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<Scheme
+ version = "1.3">
+ <BuildAction
+ parallelizeBuildables = "YES"
+ buildImplicitDependencies = "YES">
+ <BuildActionEntries>
+ <BuildActionEntry
+ buildForTesting = "YES"
+ buildForRunning = "YES"
+ buildForProfiling = "YES"
+ buildForArchiving = "YES"
+ buildForAnalyzing = "YES">
+ <BuildableReference
+ BuildableIdentifier = "primary"
+ BlueprintIdentifier = "91AAE49B1362218100DAB4F4"
+ BuildableName = "Cards.app"
+ BlueprintName = "Cards"
+ ReferencedContainer = "container:Cards.xcodeproj">
+ </BuildableReference>
+ </BuildActionEntry>
+ </BuildActionEntries>
+ </BuildAction>
+ <TestAction
+ selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.GDB"
+ selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.GDB"
+ shouldUseLaunchSchemeArgsEnv = "YES"
+ buildConfiguration = "Debug">
+ <Testables>
+ </Testables>
+ </TestAction>
+ <LaunchAction
+ selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.GDB"
+ selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.GDB"
+ displayScaleIsEnabled = "NO"
+ displayScale = "1.00"
+ launchStyle = "0"
+ useCustomWorkingDirectory = "NO"
+ buildConfiguration = "Debug">
+ <BuildableProductRunnable>
+ <BuildableReference
+ BuildableIdentifier = "primary"
+ BlueprintIdentifier = "91AAE49B1362218100DAB4F4"
+ BuildableName = "Cards.app"
+ BlueprintName = "Cards"
+ ReferencedContainer = "container:Cards.xcodeproj">
+ </BuildableReference>
+ </BuildableProductRunnable>
+ <AdditionalOptions>
+ </AdditionalOptions>
+ </LaunchAction>
+ <ProfileAction
+ displayScaleIsEnabled = "NO"
+ displayScale = "1.00"
+ shouldUseLaunchSchemeArgsEnv = "YES"
+ savedToolIdentifier = ""
+ useCustomWorkingDirectory = "NO"
+ buildConfiguration = "Release">
+ <BuildableProductRunnable>
+ <BuildableReference
+ BuildableIdentifier = "primary"
+ BlueprintIdentifier = "91AAE49B1362218100DAB4F4"
+ BuildableName = "Cards.app"
+ BlueprintName = "Cards"
+ ReferencedContainer = "container:Cards.xcodeproj">
+ </BuildableReference>
+ </BuildableProductRunnable>
+ </ProfileAction>
+ <AnalyzeAction
+ buildConfiguration = "Debug">
+ </AnalyzeAction>
+ <ArchiveAction
+ buildConfiguration = "Release"
+ revealArchiveInOrganizer = "YES">
+ </ArchiveAction>
+</Scheme>
View
22 Cards.xcodeproj/xcuserdata/grancalavera.xcuserdatad/xcschemes/xcschememanagement.plist
@@ -0,0 +1,22 @@
+<?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>Cards.xcscheme</key>
+ <dict>
+ <key>orderHint</key>
+ <integer>0</integer>
+ </dict>
+ </dict>
+ <key>SuppressBuildableAutocreation</key>
+ <dict>
+ <key>91AAE49B1362218100DAB4F4</key>
+ <dict>
+ <key>primary</key>
+ <true/>
+ </dict>
+ </dict>
+</dict>
+</plist>
View
22 Cards/CardViewController.h
@@ -0,0 +1,22 @@
+//
+// CardViewController.h
+// Cards
+//
+// Created by Leon Coto on 23/04/2011.
+// Copyright 2011 __MyCompanyName__. All rights reserved.
+//
+
+#import <UIKit/UIKit.h>
+
+
+@interface CardViewController : UIViewController
+{
+ UIImageView *cardImage;
+ UILabel *cardName;
+}
+
+@property (nonatomic, retain) IBOutlet UIImageView *cardImage;
+@property (nonatomic, retain) IBOutlet UILabel *cardName;
+- (void) setCardWithObject:(NSObject *) object;
+
+@end
View
62 Cards/CardViewController.m
@@ -0,0 +1,62 @@
+//
+// CardViewController.m
+// Cards
+//
+// Created by Leon Coto on 23/04/2011.
+// Copyright 2011 __MyCompanyName__. All rights reserved.
+//
+
+#import "CardViewController.h"
+
+static NSString *cardNameKey = @"cardName";
+static NSString *cardImageKey = @"cardFile";
+
+@implementation CardViewController
+@synthesize cardImage;
+@synthesize cardName;
+
+- (void) setCardWithObject:(NSObject *)object
+{
+ self.cardImage.image = [UIImage imageNamed:[object valueForKey:cardImageKey]];
+ self.cardName.text = [object valueForKey:cardNameKey];
+}
+
+- (void)dealloc
+{
+ [cardImage release];
+ [cardName release];
+ [super dealloc];
+}
+
+- (void)didReceiveMemoryWarning
+{
+ // Releases the view if it doesn't have a superview.
+ [super didReceiveMemoryWarning];
+
+ // Release any cached data, images, etc that aren't in use.
+}
+
+#pragma mark - View lifecycle
+
+- (void)viewDidLoad
+{
+ [super viewDidLoad];
+ // Do any additional setup after loading the view from its nib.
+}
+
+- (void)viewDidUnload
+{
+ [self setCardImage:nil];
+ [self setCardName:nil];
+ [super viewDidUnload];
+ // Release any retained subviews of the main view.
+ // e.g. self.myOutlet = nil;
+}
+
+- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation
+{
+ // Return YES for supported orientations
+ return (interfaceOrientation == UIInterfaceOrientationPortrait);
+}
+
+@end
View
253 Cards/CardViewController.xib
@@ -0,0 +1,253 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<archive type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="7.10">
+ <data>
+ <int key="IBDocument.SystemTarget">1056</int>
+ <string key="IBDocument.SystemVersion">10J567</string>
+ <string key="IBDocument.InterfaceBuilderVersion">1305</string>
+ <string key="IBDocument.AppKitVersion">1038.35</string>
+ <string key="IBDocument.HIToolboxVersion">462.00</string>
+ <object class="NSMutableDictionary" key="IBDocument.PluginVersions">
+ <string key="NS.key.0">com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
+ <string key="NS.object.0">300</string>
+ </object>
+ <object class="NSArray" key="IBDocument.IntegratedClassDependencies">
+ <bool key="EncodedWithXMLCoder">YES</bool>
+ <string>IBUIImageView</string>
+ <string>IBUIView</string>
+ <string>IBUILabel</string>
+ <string>IBProxyObject</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">
+ <bool key="EncodedWithXMLCoder">YES</bool>
+ <object class="NSArray" key="dict.sortedKeys" id="0">
+ <bool key="EncodedWithXMLCoder">YES</bool>
+ </object>
+ <reference key="dict.values" ref="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="975951072">
+ <string key="IBProxiedObjectIdentifier">IBFirstResponder</string>
+ <string key="targetRuntimeIdentifier">IBCocoaTouchFramework</string>
+ </object>
+ <object class="IBUIView" id="191373211">
+ <reference key="NSNextResponder"/>
+ <int key="NSvFlags">274</int>
+ <object class="NSMutableArray" key="NSSubviews">
+ <bool key="EncodedWithXMLCoder">YES</bool>
+ <object class="IBUIImageView" id="990195037">
+ <reference key="NSNextResponder" ref="191373211"/>
+ <int key="NSvFlags">274</int>
+ <string key="NSFrame">{{5, 26}, {310, 429}}</string>
+ <reference key="NSSuperview" ref="191373211"/>
+ <reference key="NSWindow"/>
+ <reference key="NSNextKeyView"/>
+ <bool key="IBUIUserInteractionEnabled">NO</bool>
+ <string key="targetRuntimeIdentifier">IBCocoaTouchFramework</string>
+ </object>
+ <object class="IBUILabel" id="792291937">
+ <reference key="NSNextResponder" ref="191373211"/>
+ <int key="NSvFlags">292</int>
+ <string key="NSFrameSize">{320, 21}</string>
+ <reference key="NSSuperview" ref="191373211"/>
+ <reference key="NSWindow"/>
+ <bool key="IBUIOpaque">NO</bool>
+ <bool key="IBUIClipsSubviews">YES</bool>
+ <int key="IBUIContentMode">7</int>
+ <bool key="IBUIUserInteractionEnabled">NO</bool>
+ <string key="targetRuntimeIdentifier">IBCocoaTouchFramework</string>
+ <string key="IBUIText">Label</string>
+ <object class="NSColor" key="IBUITextColor">
+ <int key="NSColorSpace">1</int>
+ <bytes key="NSRGB">MCAwIDAAA</bytes>
+ </object>
+ <nil key="IBUIHighlightedColor"/>
+ <int key="IBUIBaselineAdjustment">1</int>
+ <float key="IBUIMinimumFontSize">10</float>
+ <int key="IBUITextAlignment">1</int>
+ </object>
+ </object>
+ <string key="NSFrame">{{0, 20}, {320, 460}}</string>
+ <reference key="NSSuperview"/>
+ <reference key="NSWindow"/>
+ <reference key="NSNextKeyView" ref="990195037"/>
+ <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"/>
+ <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="191373211"/>
+ </object>
+ <int key="connectionID">3</int>
+ </object>
+ <object class="IBConnectionRecord">
+ <object class="IBCocoaTouchOutletConnection" key="connection">
+ <string key="label">cardImage</string>
+ <reference key="source" ref="372490531"/>
+ <reference key="destination" ref="990195037"/>
+ </object>
+ <int key="connectionID">6</int>
+ </object>
+ <object class="IBConnectionRecord">
+ <object class="IBCocoaTouchOutletConnection" key="connection">
+ <string key="label">cardName</string>
+ <reference key="source" ref="372490531"/>
+ <reference key="destination" ref="792291937"/>
+ </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="191373211"/>
+ <object class="NSMutableArray" key="children">
+ <bool key="EncodedWithXMLCoder">YES</bool>
+ <reference ref="990195037"/>
+ <reference ref="792291937"/>
+ </object>
+ <reference key="parent" ref="0"/>
+ </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="975951072"/>
+ <reference key="parent" ref="0"/>
+ </object>
+ <object class="IBObjectRecord">
+ <int key="objectID">5</int>
+ <reference key="object" ref="990195037"/>
+ <reference key="parent" ref="191373211"/>
+ </object>
+ <object class="IBObjectRecord">
+ <int key="objectID">7</int>
+ <reference key="object" ref="792291937"/>
+ <reference key="parent" ref="191373211"/>
+ </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>1.IBEditorWindowLastContentRect</string>
+ <string>1.IBPluginDependency</string>
+ <string>5.IBPluginDependency</string>
+ <string>7.IBPluginDependency</string>
+ </object>
+ <object class="NSMutableArray" key="dict.values">
+ <bool key="EncodedWithXMLCoder">YES</bool>
+ <string>CardViewController</string>
+ <string>UIResponder</string>
+ <string>{{556, 412}, {320, 480}}</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">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">CardViewController</string>
+ <string key="superclassName">UIViewController</string>
+ <object class="NSMutableDictionary" key="outlets">
+ <bool key="EncodedWithXMLCoder">YES</bool>
+ <object class="NSArray" key="dict.sortedKeys">
+ <bool key="EncodedWithXMLCoder">YES</bool>
+ <string>cardImage</string>
+ <string>cardName</string>
+ </object>
+ <object class="NSMutableArray" key="dict.values">
+ <bool key="EncodedWithXMLCoder">YES</bool>
+ <string>UIImageView</string>
+ <string>UIImageView</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>cardImage</string>
+ <string>cardName</string>
+ </object>
+ <object class="NSMutableArray" key="dict.values">
+ <bool key="EncodedWithXMLCoder">YES</bool>
+ <object class="IBToOneOutletInfo">
+ <string key="name">cardImage</string>
+ <string key="candidateClassName">UIImageView</string>
+ </object>
+ <object class="IBToOneOutletInfo">
+ <string key="name">cardName</string>
+ <string key="candidateClassName">UIImageView</string>
+ </object>
+ </object>
+ </object>
+ <object class="IBClassDescriptionSource" key="sourceIdentifier">
+ <string key="majorKey">IBProjectSource</string>
+ <string key="minorKey">./Classes/CardViewController.h</string>
+ </object>
+ </object>
+ </object>
+ </object>
+ <int key="IBDocument.localizationMode">0</int>
+ <string key="IBDocument.TargetRuntimeIdentifier">IBCocoaTouchFramework</string>
+ <object class="NSMutableDictionary" key="IBDocument.PluginDeclaredDevelopmentDependencies">
+ <string key="NS.key.0">com.apple.InterfaceBuilder.CocoaTouchPlugin.InterfaceBuilder3</string>
+ <integer value="3000" key="NS.object.0"/>
+ </object>
+ <bool key="IBDocument.PluginDeclaredDependenciesTrackSystemTargetVersion">YES</bool>
+ <int key="IBDocument.defaultPropertyAccessControl">3</int>
+ <string key="IBCocoaTouchPluginVersion">300</string>
+ </data>
+</archive>
View
3  Cards/CardsAppDelegate.h
@@ -7,11 +7,12 @@
//
#import <UIKit/UIKit.h>
-
+@class ScrollViewController;
@interface CardsAppDelegate : NSObject <UIApplicationDelegate> {
}
@property (nonatomic, retain) IBOutlet UIWindow *window;
+@property (nonatomic, retain) IBOutlet ScrollViewController *viewController;
@end
View
3  Cards/CardsAppDelegate.m
@@ -7,15 +7,18 @@
//
#import "CardsAppDelegate.h"
+#import "ScrollViewController.h"
@implementation CardsAppDelegate
@synthesize window=_window;
+@synthesize viewController=_viewController;
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
// Override point for customization after application launch.
+ self.window.rootViewController = self.viewController;
[self.window makeKeyAndVisible];
return YES;
}
View
18 Cards/ScrollViewController.h
@@ -0,0 +1,18 @@
+//
+// ScrollViewController.h
+// Cards
+//
+// Created by Leon Coto on 22/04/2011.
+// Copyright 2011 __MyCompanyName__. All rights reserved.
+//
+
+#import <UIKit/UIKit.h>
+
+
+@interface ScrollViewController : UIViewController <UIScrollViewDelegate>
+{
+ UIScrollView *scrollView;
+}
+
+@property (nonatomic, retain) IBOutlet UIScrollView *scrollView;
+@end
View
69 Cards/ScrollViewController.m
@@ -0,0 +1,69 @@
+//
+// ScrollViewController.m
+// Cards
+//
+// Created by Leon Coto on 22/04/2011.
+// Copyright 2011 __MyCompanyName__. All rights reserved.
+//
+
+#import "ScrollViewController.h"
+#import "CardViewController.h"
+
+@implementation ScrollViewController
+@synthesize scrollView;
+
+- (void)dealloc
+{
+ [scrollView release];
+ [super dealloc];
+}
+
+- (void)didReceiveMemoryWarning
+{
+ // Releases the view if it doesn't have a superview.
+ [super didReceiveMemoryWarning];
+ // Release any cached data, images, etc that aren't in use.
+}
+
+#pragma mark - View lifecycle
+
+- (void)viewDidLoad
+{
+ [super viewDidLoad];
+
+ NSString *cardsPath = [[NSBundle mainBundle] pathForResource:@"cards" ofType:@"plist"];
+ NSArray *cards = [NSArray arrayWithContentsOfFile:cardsPath];
+
+ int numberOfCards = [cards count];
+
+ scrollView.pagingEnabled = YES;
+ scrollView.showsHorizontalScrollIndicator = NO;
+ scrollView.showsVerticalScrollIndicator = NO;
+ scrollView.scrollsToTop = NO;
+ scrollView.contentSize = CGSizeMake(scrollView.frame.size.width * numberOfCards, scrollView.frame.size.height);
+
+ for (int i=0; i < numberOfCards; i++)
+ {
+ CardViewController *aCardController = [CardViewController alloc];
+ CGRect frame = scrollView.frame;
+ frame.origin.x = frame.size.width * i;
+ frame.origin.y = 0;
+ [scrollView addSubview:aCardController.view];
+ [aCardController setCardWithObject:[cards objectAtIndex:i]];
+ [aCardController release];
+ }
+}
+
+- (void)viewDidUnload
+{
+ [self setScrollView:nil];
+ [super viewDidUnload];
+}
+
+- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation
+{
+ // Return YES for supported orientations
+ return (interfaceOrientation == UIInterfaceOrientationPortrait);
+}
+
+@end
View
201 Cards/ScrollViewController.xib
@@ -0,0 +1,201 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<archive type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="7.10">
+ <data>
+ <int key="IBDocument.SystemTarget">1056</int>
+ <string key="IBDocument.SystemVersion">10J567</string>
+ <string key="IBDocument.InterfaceBuilderVersion">1305</string>
+ <string key="IBDocument.AppKitVersion">1038.35</string>
+ <string key="IBDocument.HIToolboxVersion">462.00</string>
+ <object class="NSMutableDictionary" key="IBDocument.PluginVersions">
+ <string key="NS.key.0">com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
+ <string key="NS.object.0">300</string>
+ </object>
+ <object class="NSArray" key="IBDocument.IntegratedClassDependencies">
+ <bool key="EncodedWithXMLCoder">YES</bool>
+ <string>IBProxyObject</string>
+ <string>IBUIView</string>
+ <string>IBUIScrollView</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">
+ <bool key="EncodedWithXMLCoder">YES</bool>
+ <object class="NSArray" key="dict.sortedKeys" id="0">
+ <bool key="EncodedWithXMLCoder">YES</bool>
+ </object>
+ <reference key="dict.values" ref="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="975951072">
+ <string key="IBProxiedObjectIdentifier">IBFirstResponder</string>
+ <string key="targetRuntimeIdentifier">IBCocoaTouchFramework</string>
+ </object>
+ <object class="IBUIView" id="191373211">
+ <reference key="NSNextResponder"/>
+ <int key="NSvFlags">274</int>
+ <object class="NSMutableArray" key="NSSubviews">
+ <bool key="EncodedWithXMLCoder">YES</bool>
+ <object class="IBUIScrollView" id="476961842">
+ <reference key="NSNextResponder" ref="191373211"/>
+ <int key="NSvFlags">274</int>
+ <string key="NSFrameSize">{320, 460}</string>
+ <reference key="NSSuperview" ref="191373211"/>
+ <reference key="NSWindow"/>
+ <bool key="IBUIClipsSubviews">YES</bool>
+ <bool key="IBUIMultipleTouchEnabled">YES</bool>
+ <string key="targetRuntimeIdentifier">IBCocoaTouchFramework</string>
+ </object>
+ </object>
+ <string key="NSFrame">{{0, 20}, {320, 460}}</string>
+ <reference key="NSSuperview"/>
+ <reference key="NSWindow"/>
+ <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"/>
+ <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="191373211"/>
+ </object>
+ <int key="connectionID">3</int>
+ </object>
+ <object class="IBConnectionRecord">
+ <object class="IBCocoaTouchOutletConnection" key="connection">
+ <string key="label">delegate</string>
+ <reference key="source" ref="476961842"/>
+ <reference key="destination" ref="372490531"/>
+ </object>
+ <int key="connectionID">6</int>
+ </object>
+ <object class="IBConnectionRecord">
+ <object class="IBCocoaTouchOutletConnection" key="connection">
+ <string key="label">scrollView</string>
+ <reference key="source" ref="372490531"/>
+ <reference key="destination" ref="476961842"/>
+ </object>
+ <int key="connectionID">7</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="191373211"/>
+ <object class="NSMutableArray" key="children">
+ <bool key="EncodedWithXMLCoder">YES</bool>
+ <reference ref="476961842"/>
+ </object>
+ <reference key="parent" ref="0"/>
+ </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="975951072"/>
+ <reference key="parent" ref="0"/>
+ </object>
+ <object class="IBObjectRecord">
+ <int key="objectID">5</int>
+ <reference key="object" ref="476961842"/>
+ <reference key="parent" ref="191373211"/>
+ </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>1.IBEditorWindowLastContentRect</string>
+ <string>1.IBPluginDependency</string>
+ <string>5.IBPluginDependency</string>
+ </object>
+ <object class="NSMutableArray" key="dict.values">
+ <bool key="EncodedWithXMLCoder">YES</bool>
+ <string>ScrollViewController</string>
+ <string>UIResponder</string>
+ <string>{{556, 412}, {320, 480}}</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">7</int>
+ </object>
+ <object class="IBClassDescriber" key="IBDocument.Classes">
+ <object class="NSMutableArray" key="referencedPartialClassDescriptions">
+ <bool key="EncodedWithXMLCoder">YES</bool>
+ <object class="IBPartialClassDescription">
+ <string key="className">ScrollViewController</string>
+ <string key="superclassName">UIViewController</string>
+ <object class="NSMutableDictionary" key="outlets">
+ <string key="NS.key.0">scrollView</string>
+ <string key="NS.object.0">UIScrollView</string>
+ </object>
+ <object class="NSMutableDictionary" key="toOneOutletInfosByName">
+ <string key="NS.key.0">scrollView</string>
+ <object class="IBToOneOutletInfo" key="NS.object.0">
+ <string key="name">scrollView</string>
+ <string key="candidateClassName">UIScrollView</string>
+ </object>
+ </object>
+ <object class="IBClassDescriptionSource" key="sourceIdentifier">
+ <string key="majorKey">IBProjectSource</string>
+ <string key="minorKey">./Classes/ScrollViewController.h</string>
+ </object>
+ </object>
+ </object>
+ </object>
+ <int key="IBDocument.localizationMode">0</int>
+ <string key="IBDocument.TargetRuntimeIdentifier">IBCocoaTouchFramework</string>
+ <object class="NSMutableDictionary" key="IBDocument.PluginDeclaredDevelopmentDependencies">
+ <string key="NS.key.0">com.apple.InterfaceBuilder.CocoaTouchPlugin.InterfaceBuilder3</string>
+ <integer value="3000" key="NS.object.0"/>
+ </object>
+ <bool key="IBDocument.PluginDeclaredDependenciesTrackSystemTargetVersion">YES</bool>
+ <int key="IBDocument.defaultPropertyAccessControl">3</int>
+ <string key="IBCocoaTouchPluginVersion">300</string>
+ </data>
+</archive>
View
109 Cards/en.lproj/MainWindow.xib
@@ -1,18 +1,21 @@
<?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>
+ <int key="IBDocument.SystemTarget">1056</int>
+ <string key="IBDocument.SystemVersion">10J567</string>
+ <string key="IBDocument.InterfaceBuilderVersion">1305</string>
+ <string key="IBDocument.AppKitVersion">1038.35</string>
+ <string key="IBDocument.HIToolboxVersion">462.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>
+ <string key="NS.object.0">300</string>
</object>
- <object class="NSMutableArray" key="IBDocument.EditedObjectIDs">
+ <object class="NSArray" key="IBDocument.IntegratedClassDependencies">
<bool key="EncodedWithXMLCoder">YES</bool>
- <integer value="2"/>
+ <string>IBUIWindow</string>
+ <string>IBUICustomObject</string>
+ <string>IBUIViewController</string>
+ <string>IBProxyObject</string>
</object>
<object class="NSArray" key="IBDocument.PluginDependencies">
<bool key="EncodedWithXMLCoder">YES</bool>
@@ -23,9 +26,7 @@
<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>
+ <reference key="dict.values" ref="0"/>
</object>
<object class="NSMutableArray" key="IBDocument.RootObjects" id="1000">
<bool key="EncodedWithXMLCoder">YES</bool>
@@ -40,6 +41,16 @@
<object class="IBUICustomObject" id="664661524">
<string key="targetRuntimeIdentifier">IBCocoaTouchFramework</string>
</object>
+ <object class="IBUIViewController" id="242109785">
+ <string key="IBUINibName">ScrollViewController</string>
+ <object class="IBUISimulatedStatusBarMetrics" key="IBUISimulatedStatusBarMetrics"/>
+ <object class="IBUISimulatedOrientationMetrics" key="IBUISimulatedOrientationMetrics">
+ <int key="IBUIInterfaceOrientation">1</int>
+ <int key="interfaceOrientation">1</int>
+ </object>
+ <string key="targetRuntimeIdentifier">IBCocoaTouchFramework</string>
+ <bool key="IBUIHorizontal">NO</bool>
+ </object>
<object class="IBUIWindow" id="380026005">
<reference key="NSNextResponder"/>
<int key="NSvFlags">1316</int>
@@ -76,6 +87,14 @@
</object>
<int key="connectionID">5</int>
</object>
+ <object class="IBConnectionRecord">
+ <object class="IBCocoaTouchOutletConnection" key="connection">
+ <string key="label">viewController</string>
+ <reference key="source" ref="664661524"/>
+ <reference key="destination" ref="242109785"/>
+ </object>
+ <int key="connectionID">12</int>
+ </object>
</object>
<object class="IBMutableOrderedSet" key="objectRecords">
<object class="NSArray" key="orderedObjects">
@@ -110,6 +129,11 @@
<reference key="object" ref="427554174"/>
<reference key="parent" ref="0"/>
</object>
+ <object class="IBObjectRecord">
+ <int key="objectID">11</int>
+ <reference key="object" ref="242109785"/>
+ <reference key="parent" ref="0"/>
+ </object>
</object>
</object>
<object class="NSMutableDictionary" key="flattenedProperties">
@@ -118,6 +142,8 @@
<bool key="EncodedWithXMLCoder">YES</bool>
<string>-1.CustomClassName</string>
<string>-2.CustomClassName</string>
+ <string>11.CustomClassName</string>
+ <string>11.IBPluginDependency</string>
<string>2.IBAttributePlaceholdersKey</string>
<string>2.IBEditorWindowLastContentRect</string>
<string>2.IBPluginDependency</string>
@@ -128,12 +154,12 @@
<bool key="EncodedWithXMLCoder">YES</bool>
<string>UIApplication</string>
<string>UIResponder</string>
+ <string>ScrollViewController</string>
+ <string>com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
<object class="NSMutableDictionary">
<bool key="EncodedWithXMLCoder">YES</bool>
<reference key="dict.sortedKeys" ref="0"/>
- <object class="NSMutableArray" key="dict.values">
- <bool key="EncodedWithXMLCoder">YES</bool>
- </object>
+ <reference key="dict.values" ref="0"/>
</object>
<string>{{198, 376}, {320, 480}}</string>
<string>com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
@@ -144,20 +170,16 @@
<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>
+ <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"/>
- <object class="NSMutableArray" key="dict.values">
- <bool key="EncodedWithXMLCoder">YES</bool>
- </object>
+ <reference key="dict.values" ref="0"/>
</object>
<nil key="sourceID"/>
- <int key="maxID">9</int>
+ <int key="maxID">12</int>
</object>
<object class="IBClassDescriber" key="IBDocument.Classes">
<object class="NSMutableArray" key="referencedPartialClassDescriptions">
@@ -166,20 +188,48 @@
<string key="className">CardsAppDelegate</string>
<string key="superclassName">NSObject</string>
<object class="NSMutableDictionary" key="outlets">
- <string key="NS.key.0">window</string>
- <string key="NS.object.0">UIWindow</string>
+ <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>ScrollViewController</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">ScrollViewController</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">CardsAppDelegate.h</string>
+ <string key="minorKey">./Classes/CardsAppDelegate.h</string>
</object>
</object>
<object class="IBPartialClassDescription">
- <string key="className">CardsAppDelegate</string>
- <string key="superclassName">NSObject</string>
+ <string key="className">ScrollViewController</string>
+ <string key="superclassName">UIViewController</string>
<object class="IBClassDescriptionSource" key="sourceIdentifier">
- <string key="majorKey">IBUserSource</string>
- <string key="minorKey"/>
+ <string key="majorKey">IBProjectSource</string>
+ <string key="minorKey">./Classes/ScrollViewController.h</string>
</object>
</object>
</object>
@@ -191,8 +241,7 @@
<integer value="3100" key="NS.object.0"/>
</object>
<bool key="IBDocument.PluginDeclaredDependenciesTrackSystemTargetVersion">YES</bool>
- <string key="IBDocument.LastKnownRelativeProjectPath">Cards.xcodeproj</string>
<int key="IBDocument.defaultPropertyAccessControl">3</int>
- <string key="IBCocoaTouchPluginVersion">81</string>
+ <string key="IBCocoaTouchPluginVersion">300</string>
</data>
</archive>
View
BIN  Playing Cards/.DS_Store
Binary file not shown
View
BIN  Playing Cards/c01.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN  Playing Cards/c02.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN  Playing Cards/c03.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN  Playing Cards/c04.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN  Playing Cards/c05.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN  Playing Cards/c06.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN  Playing Cards/c07.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN  Playing Cards/c08.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN  Playing Cards/c09.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN  Playing Cards/c10.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN  Playing Cards/c11.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN  Playing Cards/c12.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN  Playing Cards/c13.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
2  Playing Cards/cards.plist
@@ -0,0 +1,2 @@
+<?xml version='1.0' encoding='UTF-8'?>
+<plist version="1.0"><array><dict><key>cardFile</key><string>c01.png</string><key>cardName</key><string>Ace of Clubs</string></dict><dict><key>cardFile</key><string>c02.png</string><key>cardName</key><string>Two of Clubs</string></dict><dict><key>cardFile</key><string>c03.png</string><key>cardName</key><string>Three of Clubs</string></dict><dict><key>cardFile</key><string>c04.png</string><key>cardName</key><string>Four of Clubs</string></dict><dict><key>cardFile</key><string>c05.png</string><key>cardName</key><string>Five of Clubs</string></dict><dict><key>cardFile</key><string>c06.png</string><key>cardName</key><string>Six of Clubs</string></dict><dict><key>cardFile</key><string>c07.png</string><key>cardName</key><string>Seven of Clubs</string></dict><dict><key>cardFile</key><string>c08.png</string><key>cardName</key><string>Eight of Clubs</string></dict><dict><key>cardFile</key><string>c09.png</string><key>cardName</key><string>Nine of Clubs</string></dict><dict><key>cardFile</key><string>c10.png</string><key>cardName</key><string>Ten of Clubs</string></dict><dict><key>cardFile</key><string>c11.png</string><key>cardName</key><string>Jack of Clubs</string></dict><dict><key>cardFile</key><string>c12.png</string><key>cardName</key><string>Queen of Clubs</string></dict><dict><key>cardFile</key><string>c13.png</string><key>cardName</key><string>King of Clubs</string></dict><dict><key>cardFile</key><string>d01.png</string><key>cardName</key><string>Ace of Diamonds</string></dict><dict><key>cardFile</key><string>d02.png</string><key>cardName</key><string>Two of Diamonds</string></dict><dict><key>cardFile</key><string>d03.png</string><key>cardName</key><string>Three of Diamonds</string></dict><dict><key>cardFile</key><string>d04.png</string><key>cardName</key><string>Four of Diamonds</string></dict><dict><key>cardFile</key><string>d05.png</string><key>cardName</key><string>Five of Diamonds</string></dict><dict><key>cardFile</key><string>d06.png</string><key>cardName</key><string>Six of Diamonds</string></dict><dict><key>cardFile</key><string>d07.png</string><key>cardName</key><string>Seven of Diamonds</string></dict><dict><key>cardFile</key><string>d08.png</string><key>cardName</key><string>Eight of Diamonds</string></dict><dict><key>cardFile</key><string>d09.png</string><key>cardName</key><string>Nine of Diamonds</string></dict><dict><key>cardFile</key><string>d10.png</string><key>cardName</key><string>Ten of Diamonds</string></dict><dict><key>cardFile</key><string>d11.png</string><key>cardName</key><string>Jack of Diamonds</string></dict><dict><key>cardFile</key><string>d12.png</string><key>cardName</key><string>Queen of Diamonds</string></dict><dict><key>cardFile</key><string>d13.png</string><key>cardName</key><string>King of Diamonds</string></dict><dict><key>cardFile</key><string>h01.png</string><key>cardName</key><string>Ace of Hearts</string></dict><dict><key>cardFile</key><string>h02.png</string><key>cardName</key><string>Two of Hearts</string></dict><dict><key>cardFile</key><string>h03.png</string><key>cardName</key><string>Three of Hearts</string></dict><dict><key>cardFile</key><string>h04.png</string><key>cardName</key><string>Four of Hearts</string></dict><dict><key>cardFile</key><string>h05.png</string><key>cardName</key><string>Five of Hearts</string></dict><dict><key>cardFile</key><string>h06.png</string><key>cardName</key><string>Six of Hearts</string></dict><dict><key>cardFile</key><string>h07.png</string><key>cardName</key><string>Seven of Hearts</string></dict><dict><key>cardFile</key><string>h08.png</string><key>cardName</key><string>Eight of Hearts</string></dict><dict><key>cardFile</key><string>h09.png</string><key>cardName</key><string>Nine of Hearts</string></dict><dict><key>cardFile</key><string>h10.png</string><key>cardName</key><string>Ten of Hearts</string></dict><dict><key>cardFile</key><string>h11.png</string><key>cardName</key><string>Jack of Hearts</string></dict><dict><key>cardFile</key><string>h12.png</string><key>cardName</key><string>Queen of Hearts</string></dict><dict><key>cardFile</key><string>h13.png</string><key>cardName</key><string>King of Hearts</string></dict><dict><key>cardFile</key><string>s01.png</string><key>cardName</key><string>Ace of Spades</string></dict><dict><key>cardFile</key><string>s02.png</string><key>cardName</key><string>Two of Spades</string></dict><dict><key>cardFile</key><string>s03.png</string><key>cardName</key><string>Three of Spades</string></dict><dict><key>cardFile</key><string>s04.png</string><key>cardName</key><string>Four of Spades</string></dict><dict><key>cardFile</key><string>s05.png</string><key>cardName</key><string>Five of Spades</string></dict><dict><key>cardFile</key><string>s06.png</string><key>cardName</key><string>Six of Spades</string></dict><dict><key>cardFile</key><string>s07.png</string><key>cardName</key><string>Seven of Spades</string></dict><dict><key>cardFile</key><string>s08.png</string><key>cardName</key><string>Eight of Spades</string></dict><dict><key>cardFile</key><string>s09.png</string><key>cardName</key><string>Nine of Spades</string></dict><dict><key>cardFile</key><string>s10.png</string><key>cardName</key><string>Ten of Spades</string></dict><dict><key>cardFile</key><string>s11.png</string><key>cardName</key><string>Jack of Spades</string></dict><dict><key>cardFile</key><string>s12.png</string><key>cardName</key><string>Queen of Spades</string></dict><dict><key>cardFile</key><string>s13.png</string><key>cardName</key><string>King of Spades</string></dict></array></plist>
View
BIN  Playing Cards/d01.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN  Playing Cards/d02.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN  Playing Cards/d03.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN  Playing Cards/d04.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN  Playing Cards/d05.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN  Playing Cards/d06.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN  Playing Cards/d07.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN  Playing Cards/d08.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN  Playing Cards/d09.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN  Playing Cards/d10.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN  Playing Cards/d11.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN  Playing Cards/d12.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN  Playing Cards/d13.png
Diff not rendered
View
61 Playing Cards/generate.py
@@ -0,0 +1,61 @@
+#!/usr/bin/env python
+# encoding: utf-8
+"""
+generate.py
+
+Created by Leon Coto on 2011-04-16.
+Generates an XML plist with the playing-card info
+"""
+
+import sys
+import os
+import xml.etree.ElementTree as ET
+
+
+figures = ['Clubs', 'Diamonds', 'Hearts', 'Spades']
+names = ['Ace', 'Two', 'Three', 'Four', 'Five', 'Six', 'Seven', 'Eight', 'Nine',
+'Ten', 'Jack', 'Queen', 'King']
+
+def main():
+
+ plist = ET.Element('plist')
+ plist.set('version', '1.0')
+ card_dict = ET.SubElement(plist, 'array')
+
+ def add_card(card_id, card_name, card_file):
+ dict_el = ET.SubElement(card_dict, 'dict')
+
+ card_file_key = ET.SubElement(dict_el, 'key')
+ card_file_key.text = 'cardFile'
+ card_file_string = ET.SubElement(dict_el, 'string')
+ card_file_string.text = card_file
+
+ card_name_key = ET.SubElement(dict_el, 'key')
+ card_name_key.text = 'cardName'
+ card_name_string = ET.SubElement(dict_el, 'string')
+ card_name_string.text = card_name
+
+ # I don't have these cards yet :(
+ # add_card('jk1', 'Joker', 'jk1.png')
+ # add_card('jk2', 'Joker', 'jk2.png')
+ # add_card('back', 'Back', 'back.png')
+
+ for figure in figures:
+ for card_number in range(0, 13):
+
+ prefix = figure[0].lower()
+ name = names[card_number]
+
+ card_id = '%s%d'%(prefix, card_number)
+ card_name = '%s of %s'%(name, figure)
+ card_file = '%s%02d.png'%(prefix, card_number + 1)
+
+ add_card(card_id, card_name, card_file)
+
+
+ tree = ET.ElementTree(plist)
+ tree.write('cards.plist', 'UTF-8')
+
+if __name__ == '__main__':
+ main()
+
View
BIN  Playing Cards/h01.png
Diff not rendered
View
BIN  Playing Cards/h02.png
Diff not rendered
View
BIN  Playing Cards/h03.png
Diff not rendered
View
BIN  Playing Cards/h04.png
Diff not rendered
View
BIN  Playing Cards/h05.png
Diff not rendered
View
BIN  Playing Cards/h06.png
Diff not rendered
View
BIN  Playing Cards/h07.png
Diff not rendered
View
BIN  Playing Cards/h08.png
Diff not rendered
View
BIN  Playing Cards/h09.png
Diff not rendered
View
BIN  Playing Cards/h10.png
Diff not rendered
View
BIN  Playing Cards/h11.png
Diff not rendered
View
BIN  Playing Cards/h12.png
Diff not rendered
View
BIN  Playing Cards/h13.png
Diff not rendered
View
BIN  Playing Cards/s01.png
Diff not rendered
View
BIN  Playing Cards/s02.png
Diff not rendered
View
BIN  Playing Cards/s03.png
Diff not rendered
View
BIN  Playing Cards/s04.png
Diff not rendered
View
BIN  Playing Cards/s05.png
Diff not rendered
View
BIN  Playing Cards/s06.png
Diff not rendered
View
BIN  Playing Cards/s07.png
Diff not rendered
View
BIN  Playing Cards/s08.png
Diff not rendered
View
BIN  Playing Cards/s09.png
Diff not rendered
View
BIN  Playing Cards/s10.png
Diff not rendered
View
BIN  Playing Cards/s11.png
Diff not rendered
View
BIN  Playing Cards/s12.png
Diff not rendered
View
BIN  Playing Cards/s13.png
Diff not rendered
Please sign in to comment.
Something went wrong with that request. Please try again.