Permalink
Browse files

Merge branch 'master' of github.com:Cocoanetics/Examples

  • Loading branch information...
2 parents 687c43f + 8e510a3 commit 1218ab75432bcad7fe87aa703c8d3a0764c89ac0 @odrobnik odrobnik committed Nov 5, 2012
View
@@ -0,0 +1,7 @@
+.DS_Store
+build
+*.mode1v3
+*.pbxuser
+project.xcworkspace
+xcuserdata
+.svn
View
@@ -8,6 +8,8 @@ Contents:
- [Cubed CoreAnimation Conundrum](http://bitly.com/NqcE6n)
- [Containing ViewControllers](http://j.mp/HFu8K5)
- [Let's Bounce](http://j.mp/JyAfw1)
+- [OS X Tutorial for iOS Developers](http://bit.ly/NBVOSY)
+
Follow [@cocoanetics](http://twitter.com/cocoanetics) on Twitter.
@@ -0,0 +1,343 @@
+// !$*UTF8*$!
+{
+ archiveVersion = 1;
+ classes = {
+ };
+ objectVersion = 46;
+ objects = {
+
+/* Begin PBXBuildFile section */
+ A725C70E160B50B100340E2A /* DocumentItemView.m in Sources */ = {isa = PBXBuildFile; fileRef = A725C70D160B50B100340E2A /* DocumentItemView.m */; };
+ A725C712160B53E100340E2A /* DTCollectionItemView.m in Sources */ = {isa = PBXBuildFile; fileRef = A725C711160B53E100340E2A /* DTCollectionItemView.m */; };
+ A786B5081609B7F300B4498E /* Cocoa.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = A786B5071609B7F300B4498E /* Cocoa.framework */; };
+ A786B5121609B7F300B4498E /* InfoPlist.strings in Resources */ = {isa = PBXBuildFile; fileRef = A786B5101609B7F300B4498E /* InfoPlist.strings */; };
+ A786B5141609B7F300B4498E /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = A786B5131609B7F300B4498E /* main.m */; };
+ A786B5181609B7F300B4498E /* Credits.rtf in Resources */ = {isa = PBXBuildFile; fileRef = A786B5161609B7F300B4498E /* Credits.rtf */; };
+ A786B51B1609B7F300B4498E /* Document.m in Sources */ = {isa = PBXBuildFile; fileRef = A786B51A1609B7F300B4498E /* Document.m */; };
+ A786B51E1609B7F300B4498E /* Document.xib in Resources */ = {isa = PBXBuildFile; fileRef = A786B51C1609B7F300B4498E /* Document.xib */; };
+ A786B5211609B7F300B4498E /* MainMenu.xib in Resources */ = {isa = PBXBuildFile; fileRef = A786B51F1609B7F300B4498E /* MainMenu.xib */; };
+ A786B5381609C8AC00B4498E /* DocumentItem.m in Sources */ = {isa = PBXBuildFile; fileRef = A786B5371609C8AC00B4498E /* DocumentItem.m */; };
+/* End PBXBuildFile section */
+
+/* Begin PBXFileReference section */
+ A725C70C160B50B100340E2A /* DocumentItemView.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = DocumentItemView.h; sourceTree = "<group>"; };
+ A725C70D160B50B100340E2A /* DocumentItemView.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = DocumentItemView.m; sourceTree = "<group>"; };
+ A725C710160B53E100340E2A /* DTCollectionItemView.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = DTCollectionItemView.h; sourceTree = "<group>"; };
+ A725C711160B53E100340E2A /* DTCollectionItemView.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = DTCollectionItemView.m; sourceTree = "<group>"; };
+ A786B5031609B7F300B4498E /* Shoebox.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = Shoebox.app; sourceTree = BUILT_PRODUCTS_DIR; };
+ A786B5071609B7F300B4498E /* Cocoa.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Cocoa.framework; path = System/Library/Frameworks/Cocoa.framework; sourceTree = SDKROOT; };
+ A786B50A1609B7F300B4498E /* AppKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = AppKit.framework; path = System/Library/Frameworks/AppKit.framework; sourceTree = SDKROOT; };
+ A786B50B1609B7F300B4498E /* CoreData.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreData.framework; path = System/Library/Frameworks/CoreData.framework; sourceTree = SDKROOT; };
+ A786B50C1609B7F300B4498E /* Foundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Foundation.framework; path = System/Library/Frameworks/Foundation.framework; sourceTree = SDKROOT; };
+ A786B50F1609B7F300B4498E /* Shoebox-Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = "Shoebox-Info.plist"; sourceTree = "<group>"; };
+ A786B5111609B7F300B4498E /* en */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = en; path = en.lproj/InfoPlist.strings; sourceTree = "<group>"; };
+ A786B5131609B7F300B4498E /* main.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = "<group>"; };
+ A786B5151609B7F300B4498E /* Shoebox-Prefix.pch */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "Shoebox-Prefix.pch"; sourceTree = "<group>"; };
+ A786B5171609B7F300B4498E /* en */ = {isa = PBXFileReference; lastKnownFileType = text.rtf; name = en; path = en.lproj/Credits.rtf; sourceTree = "<group>"; };
+ A786B5191609B7F300B4498E /* Document.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = Document.h; sourceTree = "<group>"; };
+ A786B51A1609B7F300B4498E /* Document.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = Document.m; sourceTree = "<group>"; };
+ A786B51D1609B7F300B4498E /* en */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = en; path = en.lproj/Document.xib; sourceTree = "<group>"; };
+ A786B5201609B7F300B4498E /* en */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = en; path = en.lproj/MainMenu.xib; sourceTree = "<group>"; };
+ A786B5361609C8AC00B4498E /* DocumentItem.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = DocumentItem.h; sourceTree = "<group>"; };
+ A786B5371609C8AC00B4498E /* DocumentItem.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = DocumentItem.m; sourceTree = "<group>"; };
+/* End PBXFileReference section */
+
+/* Begin PBXFrameworksBuildPhase section */
+ A786B5001609B7F300B4498E /* Frameworks */ = {
+ isa = PBXFrameworksBuildPhase;
+ buildActionMask = 2147483647;
+ files = (
+ A786B5081609B7F300B4498E /* Cocoa.framework in Frameworks */,
+ );
+ runOnlyForDeploymentPostprocessing = 0;
+ };
+/* End PBXFrameworksBuildPhase section */
+
+/* Begin PBXGroup section */
+ A74A5E3E160B6F55001A901F /* Model */ = {
+ isa = PBXGroup;
+ children = (
+ A786B5191609B7F300B4498E /* Document.h */,
+ A786B51A1609B7F300B4498E /* Document.m */,
+ A786B5361609C8AC00B4498E /* DocumentItem.h */,
+ A786B5371609C8AC00B4498E /* DocumentItem.m */,
+ );
+ name = Model;
+ sourceTree = "<group>";
+ };
+ A786B4F81609B7F300B4498E = {
+ isa = PBXGroup;
+ children = (
+ A786B50D1609B7F300B4498E /* Shoebox */,
+ A786B5061609B7F300B4498E /* Frameworks */,
+ A786B5041609B7F300B4498E /* Products */,
+ );
+ sourceTree = "<group>";
+ };
+ A786B5041609B7F300B4498E /* Products */ = {
+ isa = PBXGroup;
+ children = (
+ A786B5031609B7F300B4498E /* Shoebox.app */,
+ );
+ name = Products;
+ sourceTree = "<group>";
+ };
+ A786B5061609B7F300B4498E /* Frameworks */ = {
+ isa = PBXGroup;
+ children = (
+ A786B5071609B7F300B4498E /* Cocoa.framework */,
+ A786B5091609B7F300B4498E /* Other Frameworks */,
+ );
+ name = Frameworks;
+ sourceTree = "<group>";
+ };
+ A786B5091609B7F300B4498E /* Other Frameworks */ = {
+ isa = PBXGroup;
+ children = (
+ A786B50A1609B7F300B4498E /* AppKit.framework */,
+ A786B50B1609B7F300B4498E /* CoreData.framework */,
+ A786B50C1609B7F300B4498E /* Foundation.framework */,
+ );
+ name = "Other Frameworks";
+ sourceTree = "<group>";
+ };
+ A786B50D1609B7F300B4498E /* Shoebox */ = {
+ isa = PBXGroup;
+ children = (
+ A74A5E3E160B6F55001A901F /* Model */,
+ A725C70C160B50B100340E2A /* DocumentItemView.h */,
+ A725C70D160B50B100340E2A /* DocumentItemView.m */,
+ A725C710160B53E100340E2A /* DTCollectionItemView.h */,
+ A725C711160B53E100340E2A /* DTCollectionItemView.m */,
+ A786B50E1609B7F300B4498E /* Supporting Files */,
+ );
+ path = Shoebox;
+ sourceTree = "<group>";
+ };
+ A786B50E1609B7F300B4498E /* Supporting Files */ = {
+ isa = PBXGroup;
+ children = (
+ A786B50F1609B7F300B4498E /* Shoebox-Info.plist */,
+ A786B5101609B7F300B4498E /* InfoPlist.strings */,
+ A786B5131609B7F300B4498E /* main.m */,
+ A786B5151609B7F300B4498E /* Shoebox-Prefix.pch */,
+ A786B5161609B7F300B4498E /* Credits.rtf */,
+ A786B51C1609B7F300B4498E /* Document.xib */,
+ A786B51F1609B7F300B4498E /* MainMenu.xib */,
+ );
+ name = "Supporting Files";
+ sourceTree = "<group>";
+ };
+/* End PBXGroup section */
+
+/* Begin PBXNativeTarget section */
+ A786B5021609B7F300B4498E /* Shoebox */ = {
+ isa = PBXNativeTarget;
+ buildConfigurationList = A786B5241609B7F300B4498E /* Build configuration list for PBXNativeTarget "Shoebox" */;
+ buildPhases = (
+ A786B4FF1609B7F300B4498E /* Sources */,
+ A786B5001609B7F300B4498E /* Frameworks */,
+ A786B5011609B7F300B4498E /* Resources */,
+ );
+ buildRules = (
+ );
+ dependencies = (
+ );
+ name = Shoebox;
+ productName = Shoebox;
+ productReference = A786B5031609B7F300B4498E /* Shoebox.app */;
+ productType = "com.apple.product-type.application";
+ };
+/* End PBXNativeTarget section */
+
+/* Begin PBXProject section */
+ A786B4FA1609B7F300B4498E /* Project object */ = {
+ isa = PBXProject;
+ attributes = {
+ LastUpgradeCheck = 0450;
+ ORGANIZATIONNAME = Cocoanetics;
+ };
+ buildConfigurationList = A786B4FD1609B7F300B4498E /* Build configuration list for PBXProject "Shoebox" */;
+ compatibilityVersion = "Xcode 3.2";
+ developmentRegion = English;
+ hasScannedForEncodings = 0;
+ knownRegions = (
+ en,
+ );
+ mainGroup = A786B4F81609B7F300B4498E;
+ productRefGroup = A786B5041609B7F300B4498E /* Products */;
+ projectDirPath = "";
+ projectRoot = "";
+ targets = (
+ A786B5021609B7F300B4498E /* Shoebox */,
+ );
+ };
+/* End PBXProject section */
+
+/* Begin PBXResourcesBuildPhase section */
+ A786B5011609B7F300B4498E /* Resources */ = {
+ isa = PBXResourcesBuildPhase;
+ buildActionMask = 2147483647;
+ files = (
+ A786B5121609B7F300B4498E /* InfoPlist.strings in Resources */,
+ A786B5181609B7F300B4498E /* Credits.rtf in Resources */,
+ A786B51E1609B7F300B4498E /* Document.xib in Resources */,
+ A786B5211609B7F300B4498E /* MainMenu.xib in Resources */,
+ );
+ runOnlyForDeploymentPostprocessing = 0;
+ };
+/* End PBXResourcesBuildPhase section */
+
+/* Begin PBXSourcesBuildPhase section */
+ A786B4FF1609B7F300B4498E /* Sources */ = {
+ isa = PBXSourcesBuildPhase;
+ buildActionMask = 2147483647;
+ files = (
+ A786B5141609B7F300B4498E /* main.m in Sources */,
+ A786B51B1609B7F300B4498E /* Document.m in Sources */,
+ A786B5381609C8AC00B4498E /* DocumentItem.m in Sources */,
+ A725C70E160B50B100340E2A /* DocumentItemView.m in Sources */,
+ A725C712160B53E100340E2A /* DTCollectionItemView.m in Sources */,
+ );
+ runOnlyForDeploymentPostprocessing = 0;
+ };
+/* End PBXSourcesBuildPhase section */
+
+/* Begin PBXVariantGroup section */
+ A786B5101609B7F300B4498E /* InfoPlist.strings */ = {
+ isa = PBXVariantGroup;
+ children = (
+ A786B5111609B7F300B4498E /* en */,
+ );
+ name = InfoPlist.strings;
+ sourceTree = "<group>";
+ };
+ A786B5161609B7F300B4498E /* Credits.rtf */ = {
+ isa = PBXVariantGroup;
+ children = (
+ A786B5171609B7F300B4498E /* en */,
+ );
+ name = Credits.rtf;
+ sourceTree = "<group>";
+ };
+ A786B51C1609B7F300B4498E /* Document.xib */ = {
+ isa = PBXVariantGroup;
+ children = (
+ A786B51D1609B7F300B4498E /* en */,
+ );
+ name = Document.xib;
+ sourceTree = "<group>";
+ };
+ A786B51F1609B7F300B4498E /* MainMenu.xib */ = {
+ isa = PBXVariantGroup;
+ children = (
+ A786B5201609B7F300B4498E /* en */,
+ );
+ name = MainMenu.xib;
+ sourceTree = "<group>";
+ };
+/* End PBXVariantGroup section */
+
+/* Begin XCBuildConfiguration section */
+ A786B5221609B7F300B4498E /* Debug */ = {
+ isa = XCBuildConfiguration;
+ buildSettings = {
+ ALWAYS_SEARCH_USER_PATHS = NO;
+ ARCHS = "$(ARCHS_STANDARD_64_BIT)";
+ CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
+ CLANG_CXX_LIBRARY = "libc++";
+ CLANG_ENABLE_OBJC_ARC = YES;
+ CLANG_WARN_EMPTY_BODY = YES;
+ CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
+ COPY_PHASE_STRIP = NO;
+ GCC_C_LANGUAGE_STANDARD = gnu99;
+ GCC_DYNAMIC_NO_PIC = NO;
+ GCC_ENABLE_OBJC_EXCEPTIONS = YES;
+ GCC_OPTIMIZATION_LEVEL = 0;
+ GCC_PREPROCESSOR_DEFINITIONS = (
+ "DEBUG=1",
+ "$(inherited)",
+ );
+ GCC_SYMBOLS_PRIVATE_EXTERN = NO;
+ GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
+ GCC_WARN_ABOUT_RETURN_TYPE = YES;
+ GCC_WARN_UNINITIALIZED_AUTOS = YES;
+ GCC_WARN_UNUSED_VARIABLE = YES;
+ MACOSX_DEPLOYMENT_TARGET = 10.8;
+ ONLY_ACTIVE_ARCH = YES;
+ SDKROOT = macosx;
+ };
+ name = Debug;
+ };
+ A786B5231609B7F300B4498E /* Release */ = {
+ isa = XCBuildConfiguration;
+ buildSettings = {
+ ALWAYS_SEARCH_USER_PATHS = NO;
+ ARCHS = "$(ARCHS_STANDARD_64_BIT)";
+ CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
+ CLANG_CXX_LIBRARY = "libc++";
+ CLANG_ENABLE_OBJC_ARC = YES;
+ CLANG_WARN_EMPTY_BODY = YES;
+ CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
+ COPY_PHASE_STRIP = YES;
+ DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
+ GCC_C_LANGUAGE_STANDARD = gnu99;
+ GCC_ENABLE_OBJC_EXCEPTIONS = YES;
+ GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
+ GCC_WARN_ABOUT_RETURN_TYPE = YES;
+ GCC_WARN_UNINITIALIZED_AUTOS = YES;
+ GCC_WARN_UNUSED_VARIABLE = YES;
+ MACOSX_DEPLOYMENT_TARGET = 10.8;
+ SDKROOT = macosx;
+ };
+ name = Release;
+ };
+ A786B5251609B7F300B4498E /* Debug */ = {
+ isa = XCBuildConfiguration;
+ buildSettings = {
+ COMBINE_HIDPI_IMAGES = YES;
+ GCC_PRECOMPILE_PREFIX_HEADER = YES;
+ GCC_PREFIX_HEADER = "Shoebox/Shoebox-Prefix.pch";
+ INFOPLIST_FILE = "Shoebox/Shoebox-Info.plist";
+ PRODUCT_NAME = "$(TARGET_NAME)";
+ WRAPPER_EXTENSION = app;
+ };
+ name = Debug;
+ };
+ A786B5261609B7F300B4498E /* Release */ = {
+ isa = XCBuildConfiguration;
+ buildSettings = {
+ COMBINE_HIDPI_IMAGES = YES;
+ GCC_PRECOMPILE_PREFIX_HEADER = YES;
+ GCC_PREFIX_HEADER = "Shoebox/Shoebox-Prefix.pch";
+ INFOPLIST_FILE = "Shoebox/Shoebox-Info.plist";
+ PRODUCT_NAME = "$(TARGET_NAME)";
+ WRAPPER_EXTENSION = app;
+ };
+ name = Release;
+ };
+/* End XCBuildConfiguration section */
+
+/* Begin XCConfigurationList section */
+ A786B4FD1609B7F300B4498E /* Build configuration list for PBXProject "Shoebox" */ = {
+ isa = XCConfigurationList;
+ buildConfigurations = (
+ A786B5221609B7F300B4498E /* Debug */,
+ A786B5231609B7F300B4498E /* Release */,
+ );
+ defaultConfigurationIsVisible = 0;
+ defaultConfigurationName = Release;
+ };
+ A786B5241609B7F300B4498E /* Build configuration list for PBXNativeTarget "Shoebox" */ = {
+ isa = XCConfigurationList;
+ buildConfigurations = (
+ A786B5251609B7F300B4498E /* Debug */,
+ A786B5261609B7F300B4498E /* Release */,
+ );
+ defaultConfigurationIsVisible = 0;
+ defaultConfigurationName = Release;
+ };
+/* End XCConfigurationList section */
+ };
+ rootObject = A786B4FA1609B7F300B4498E /* Project object */;
+}
@@ -0,0 +1,13 @@
+//
+// DTCollectionItemView.h
+// Shoebox
+//
+// Created by Oliver Drobnik on 9/20/12.
+// Copyright (c) 2012 Cocoanetics. All rights reserved.
+//
+
+#import <Cocoa/Cocoa.h>
+
+@interface DTCollectionItemView : NSCollectionViewItem
+
+@end
@@ -0,0 +1,22 @@
+//
+// DTCollectionItemView.m
+// Shoebox
+//
+// Created by Oliver Drobnik on 9/20/12.
+// Copyright (c) 2012 Cocoanetics. All rights reserved.
+//
+
+#import "DTCollectionItemView.h"
+#import "DocumentItemView.h"
+
+@implementation DTCollectionItemView
+
+- (void)setSelected:(BOOL)selected
+{
+ [super setSelected:selected];
+
+ // forward selection to the prototype view
+ [(DocumentItemView *)self.view setSelected:selected];
+}
+
+@end
Oops, something went wrong.

0 comments on commit 1218ab7

Please sign in to comment.