From c34a884b1791acd23727176a13790e4f165c3594 Mon Sep 17 00:00:00 2001 From: Jonathan Willing Date: Thu, 12 Nov 2015 22:59:43 -0600 Subject: [PATCH] remove all submodules except for JNWScrollView --- .gitmodules | 10 - .../project.pbxproj | 50 +- .../JNWCollectionViewDemo/DemoTableCellView.m | 11 +- .../DemoWindowController.m | 13 +- .../DemoWindowController.xib | 336 +++---------- demo/JNWCollectionViewDemo/GridCell.m | 2 +- .../GridDemoViewController.xib | 23 +- .../JNWCollectionViewDemo-Info.plist | 2 +- demo/JNWCollectionViewDemo/Label.h | 13 + demo/JNWCollectionViewDemo/Label.m | 34 ++ demo/JNWCollectionViewDemo/ListCell.m | 8 +- .../NSTableViewDemoViewController.xib | 450 ++++-------------- demo/external/JNWLabel | 1 - external/Expecta | 1 - external/Specta | 1 - 15 files changed, 234 insertions(+), 721 deletions(-) create mode 100644 demo/JNWCollectionViewDemo/Label.h create mode 100644 demo/JNWCollectionViewDemo/Label.m delete mode 160000 demo/external/JNWLabel delete mode 160000 external/Expecta delete mode 160000 external/Specta diff --git a/.gitmodules b/.gitmodules index 1433d2b..ada12ad 100644 --- a/.gitmodules +++ b/.gitmodules @@ -1,13 +1,3 @@ -[submodule "demo/external/JNWLabel"] - path = demo/external/JNWLabel - url = https://github.com/jwilling/JNWLabel.git -[submodule "external/Expecta"] - path = external/Expecta - url = https://github.com/petejkim/expecta.git -[submodule "external/Specta"] - path = external/Specta - url = https://github.com/petejkim/specta.git - [submodule "external/JNWScrollView"] path = external/JNWScrollView url = https://github.com/jwilling/JNWScrollView.git diff --git a/demo/JNWCollectionViewDemo.xcodeproj/project.pbxproj b/demo/JNWCollectionViewDemo.xcodeproj/project.pbxproj index c90967d..dea1f70 100644 --- a/demo/JNWCollectionViewDemo.xcodeproj/project.pbxproj +++ b/demo/JNWCollectionViewDemo.xcodeproj/project.pbxproj @@ -7,7 +7,7 @@ objects = { /* Begin PBXBuildFile section */ - AB15147F171511DD00871248 /* JNWCollectionView.framework in Copy Framework */ = {isa = PBXBuildFile; fileRef = AB2E9603170CB107004678DC /* JNWCollectionView.framework */; }; + AB15147F171511DD00871248 /* JNWCollectionView.framework in Copy Framework */ = {isa = PBXBuildFile; fileRef = AB2E9603170CB107004678DC /* JNWCollectionView.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, ); }; }; AB29A69016FEFE1B00C9A941 /* QuartzCore.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = AB29A68F16FEFE1B00C9A941 /* QuartzCore.framework */; }; AB2E9606170CB116004678DC /* JNWCollectionView.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = AB2E9603170CB107004678DC /* JNWCollectionView.framework */; }; AB2E960B170CB196004678DC /* MainMenu.xib in Resources */ = {isa = PBXBuildFile; fileRef = AB2E9609170CB196004678DC /* MainMenu.xib */; }; @@ -24,13 +24,12 @@ ABA276AB171D146D005C8E56 /* NSTableViewDemoViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = ABA276A9171D146D005C8E56 /* NSTableViewDemoViewController.m */; }; ABA276AC171D146D005C8E56 /* NSTableViewDemoViewController.xib in Resources */ = {isa = PBXBuildFile; fileRef = ABA276AA171D146D005C8E56 /* NSTableViewDemoViewController.xib */; }; ABA276AF171D14E8005C8E56 /* DemoTableCellView.m in Sources */ = {isa = PBXBuildFile; fileRef = ABA276AE171D14E8005C8E56 /* DemoTableCellView.m */; }; - ABAF155B1718C39C00658A1D /* JNWLabel.m in Sources */ = {isa = PBXBuildFile; fileRef = ABAF15581718C39C00658A1D /* JNWLabel.m */; }; - ABAF155C1718C39C00658A1D /* JNWLabel+Accessibility.m in Sources */ = {isa = PBXBuildFile; fileRef = ABAF155A1718C39C00658A1D /* JNWLabel+Accessibility.m */; }; ABAF15691718E67C00658A1D /* DemoWindowController.m in Sources */ = {isa = PBXBuildFile; fileRef = ABAF15671718E67C00658A1D /* DemoWindowController.m */; }; ABAF156A1718E67C00658A1D /* DemoWindowController.xib in Resources */ = {isa = PBXBuildFile; fileRef = ABAF15681718E67C00658A1D /* DemoWindowController.xib */; }; ABAF156D1718F6D000658A1D /* ListDemoViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = ABAF156C1718F6D000658A1D /* ListDemoViewController.m */; }; ABB0F2F716FD7D19002004F5 /* Cocoa.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = ABB0F2F616FD7D19002004F5 /* Cocoa.framework */; }; ABB1B207171E095B009B9270 /* NSImage+DemoAdditions.m in Sources */ = {isa = PBXBuildFile; fileRef = ABB1B206171E095B009B9270 /* NSImage+DemoAdditions.m */; }; + ABF854121BF5A1FC001087FE /* Label.m in Sources */ = {isa = PBXBuildFile; fileRef = ABF854111BF5A1FC001087FE /* Label.m */; }; /* End PBXBuildFile section */ /* Begin PBXContainerItemProxy section */ @@ -41,13 +40,6 @@ remoteGlobalIDString = ABB023F1170791D300537A92; remoteInfo = JNWCollectionView; }; - AB2E9604170CB107004678DC /* PBXContainerItemProxy */ = { - isa = PBXContainerItemProxy; - containerPortal = AB2E95FD170CB107004678DC /* JNWCollectionView.xcodeproj */; - proxyType = 2; - remoteGlobalIDString = ABB02409170791D300537A92; - remoteInfo = JNWCollectionViewTests; - }; AB2E9607170CB11D004678DC /* PBXContainerItemProxy */ = { isa = PBXContainerItemProxy; containerPortal = AB2E95FD170CB107004678DC /* JNWCollectionView.xcodeproj */; @@ -98,10 +90,6 @@ ABA276AA171D146D005C8E56 /* NSTableViewDemoViewController.xib */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.xib; name = NSTableViewDemoViewController.xib; path = JNWCollectionViewDemo/NSTableViewDemoViewController.xib; sourceTree = SOURCE_ROOT; }; ABA276AD171D14E8005C8E56 /* DemoTableCellView.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = DemoTableCellView.h; path = JNWCollectionViewDemo/DemoTableCellView.h; sourceTree = SOURCE_ROOT; }; ABA276AE171D14E8005C8E56 /* DemoTableCellView.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = DemoTableCellView.m; path = JNWCollectionViewDemo/DemoTableCellView.m; sourceTree = SOURCE_ROOT; }; - ABAF15571718C39C00658A1D /* JNWLabel.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = JNWLabel.h; path = external/JNWLabel/JNWLabel.h; sourceTree = SOURCE_ROOT; }; - ABAF15581718C39C00658A1D /* JNWLabel.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = JNWLabel.m; path = external/JNWLabel/JNWLabel.m; sourceTree = SOURCE_ROOT; }; - ABAF15591718C39C00658A1D /* JNWLabel+Accessibility.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = "JNWLabel+Accessibility.h"; path = "external/JNWLabel/JNWLabel+Accessibility.h"; sourceTree = SOURCE_ROOT; }; - ABAF155A1718C39C00658A1D /* JNWLabel+Accessibility.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = "JNWLabel+Accessibility.m"; path = "external/JNWLabel/JNWLabel+Accessibility.m"; sourceTree = SOURCE_ROOT; }; ABAF15661718E67C00658A1D /* DemoWindowController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = DemoWindowController.h; path = JNWCollectionViewDemo/DemoWindowController.h; sourceTree = SOURCE_ROOT; }; ABAF15671718E67C00658A1D /* DemoWindowController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = DemoWindowController.m; path = JNWCollectionViewDemo/DemoWindowController.m; sourceTree = SOURCE_ROOT; }; ABAF15681718E67C00658A1D /* DemoWindowController.xib */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.xib; name = DemoWindowController.xib; path = JNWCollectionViewDemo/DemoWindowController.xib; sourceTree = SOURCE_ROOT; }; @@ -114,6 +102,8 @@ ABB0F2FB16FD7D19002004F5 /* Foundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Foundation.framework; path = System/Library/Frameworks/Foundation.framework; sourceTree = SDKROOT; }; ABB1B205171E095B009B9270 /* NSImage+DemoAdditions.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = "NSImage+DemoAdditions.h"; path = "JNWCollectionViewDemo/NSImage+DemoAdditions.h"; sourceTree = SOURCE_ROOT; }; ABB1B206171E095B009B9270 /* NSImage+DemoAdditions.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = "NSImage+DemoAdditions.m"; path = "JNWCollectionViewDemo/NSImage+DemoAdditions.m"; sourceTree = SOURCE_ROOT; }; + ABF854101BF5A1FC001087FE /* Label.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = Label.h; path = JNWCollectionViewDemo/Label.h; sourceTree = SOURCE_ROOT; }; + ABF854111BF5A1FC001087FE /* Label.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = Label.m; path = JNWCollectionViewDemo/Label.m; sourceTree = SOURCE_ROOT; }; /* End PBXFileReference section */ /* Begin PBXFrameworksBuildPhase section */ @@ -134,7 +124,6 @@ isa = PBXGroup; children = ( AB2E9603170CB107004678DC /* JNWCollectionView.framework */, - AB2E9605170CB107004678DC /* JNWCollectionViewTests.octest */, ); name = Products; sourceTree = ""; @@ -163,17 +152,6 @@ name = "NSTableView (Comparison) Demo"; sourceTree = ""; }; - ABAF15551718C39300658A1D /* JNWLabel */ = { - isa = PBXGroup; - children = ( - ABAF15571718C39C00658A1D /* JNWLabel.h */, - ABAF15581718C39C00658A1D /* JNWLabel.m */, - ABAF15591718C39C00658A1D /* JNWLabel+Accessibility.h */, - ABAF155A1718C39C00658A1D /* JNWLabel+Accessibility.m */, - ); - name = JNWLabel; - sourceTree = ""; - }; ABB0F2EA16FD7D19002004F5 = { isa = PBXGroup; children = ( @@ -215,7 +193,6 @@ ABB0F2FC16FD7D19002004F5 /* JNWCollectionViewDemo */ = { isa = PBXGroup; children = ( - ABAF15551718C39300658A1D /* JNWLabel */, AB3C722F170CABFF004A91DB /* AppDelegate.h */, AB3C7230170CABFF004A91DB /* AppDelegate.m */, AB2E9609170CB196004678DC /* MainMenu.xib */, @@ -230,6 +207,8 @@ ABB1B206171E095B009B9270 /* NSImage+DemoAdditions.m */, AB666C711749258D00545290 /* DemoImageCache.h */, AB666C721749258D00545290 /* DemoImageCache.m */, + ABF854101BF5A1FC001087FE /* Label.h */, + ABF854111BF5A1FC001087FE /* Label.m */, ); name = JNWCollectionViewDemo; path = JNWTableViewDemo; @@ -288,7 +267,7 @@ ABB0F2EB16FD7D19002004F5 /* Project object */ = { isa = PBXProject; attributes = { - LastUpgradeCheck = 0500; + LastUpgradeCheck = 0710; ORGANIZATIONNAME = AppJon; }; buildConfigurationList = ABB0F2EE16FD7D19002004F5 /* Build configuration list for PBXProject "JNWCollectionViewDemo" */; @@ -322,13 +301,6 @@ remoteRef = AB2E9602170CB107004678DC /* PBXContainerItemProxy */; sourceTree = BUILT_PRODUCTS_DIR; }; - AB2E9605170CB107004678DC /* JNWCollectionViewTests.octest */ = { - isa = PBXReferenceProxy; - fileType = wrapper.cfbundle; - path = JNWCollectionViewTests.octest; - remoteRef = AB2E9604170CB107004678DC /* PBXContainerItemProxy */; - sourceTree = BUILT_PRODUCTS_DIR; - }; /* End PBXReferenceProxy section */ /* Begin PBXResourcesBuildPhase section */ @@ -356,13 +328,12 @@ AB3C7238170CABFF004A91DB /* ListCell.m in Sources */, AB3C7239170CABFF004A91DB /* ListHeader.m in Sources */, AB3C7244170CAC32004A91DB /* main.m in Sources */, - ABAF155B1718C39C00658A1D /* JNWLabel.m in Sources */, - ABAF155C1718C39C00658A1D /* JNWLabel+Accessibility.m in Sources */, ABAF15691718E67C00658A1D /* DemoWindowController.m in Sources */, ABAF156D1718F6D000658A1D /* ListDemoViewController.m in Sources */, ABA2769D171CFC80005C8E56 /* GridDemoViewController.m in Sources */, ABA276A3171D0130005C8E56 /* GridCell.m in Sources */, ABA276AB171D146D005C8E56 /* NSTableViewDemoViewController.m in Sources */, + ABF854121BF5A1FC001087FE /* Label.m in Sources */, ABA276AF171D14E8005C8E56 /* DemoTableCellView.m in Sources */, ABB1B207171E095B009B9270 /* NSImage+DemoAdditions.m in Sources */, AB666C731749258D00545290 /* DemoImageCache.m in Sources */, @@ -420,6 +391,7 @@ CLANG_WARN_INT_CONVERSION = YES; CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; COPY_PHASE_STRIP = NO; + ENABLE_TESTABILITY = YES; GCC_C_LANGUAGE_STANDARD = gnu99; GCC_DYNAMIC_NO_PIC = NO; GCC_ENABLE_OBJC_EXCEPTIONS = YES; @@ -433,7 +405,6 @@ 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; }; @@ -459,7 +430,6 @@ 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; @@ -477,6 +447,7 @@ ); INFOPLIST_FILE = "$(SRCROOT)/JNWCollectionViewDemo/JNWCollectionViewDemo-Info.plist"; LD_RUNPATH_SEARCH_PATHS = "@loader_path/../Frameworks"; + PRODUCT_BUNDLE_IDENTIFIER = "com.AppJon.${PRODUCT_NAME:rfc1034identifier}"; PRODUCT_NAME = JNWCollectionViewDemo; WRAPPER_EXTENSION = app; }; @@ -495,6 +466,7 @@ ); INFOPLIST_FILE = "$(SRCROOT)/JNWCollectionViewDemo/JNWCollectionViewDemo-Info.plist"; LD_RUNPATH_SEARCH_PATHS = "@loader_path/../Frameworks"; + PRODUCT_BUNDLE_IDENTIFIER = "com.AppJon.${PRODUCT_NAME:rfc1034identifier}"; PRODUCT_NAME = JNWCollectionViewDemo; WRAPPER_EXTENSION = app; }; diff --git a/demo/JNWCollectionViewDemo/DemoTableCellView.m b/demo/JNWCollectionViewDemo/DemoTableCellView.m index 57b560a..476152e 100644 --- a/demo/JNWCollectionViewDemo/DemoTableCellView.m +++ b/demo/JNWCollectionViewDemo/DemoTableCellView.m @@ -9,10 +9,10 @@ #import "DemoTableCellView.h" #import "NSImage+DemoAdditions.h" #import "DemoImageCache.h" -#import "JNWLabel.h" +#import "Label.h" @interface DemoTableCellView() -@property (nonatomic, strong) JNWLabel *label; +@property (nonatomic, strong) Label *label; @end @implementation DemoTableCellView @@ -20,10 +20,11 @@ @implementation DemoTableCellView - (void)commonInit { self.wantsLayer = YES; self.layer.backgroundColor = [NSColor redColor].CGColor; - self.label = [[JNWLabel alloc] initWithFrame:self.bounds]; + self.layerContentsRedrawPolicy = NSViewLayerContentsRedrawOnSetNeedsDisplay; + + self.label = [[Label alloc] initWithFrame:self.bounds]; self.label.autoresizingMask = NSViewWidthSizable | NSViewHeightSizable; [self addSubview:self.label]; - self.layerContentsRedrawPolicy = NSViewLayerContentsRedrawOnSetNeedsDisplay; } - (id)initWithCoder:(NSCoder *)aDecoder { @@ -43,7 +44,7 @@ - (id)initWithFrame:(NSRect)frame { - (void)setLabelText:(NSString *)labelText { _labelText = labelText; - self.label.text = labelText; + self.label.stringValue = labelText; } - (BOOL)wantsUpdateLayer { diff --git a/demo/JNWCollectionViewDemo/DemoWindowController.m b/demo/JNWCollectionViewDemo/DemoWindowController.m index 0c9403d..b2e1a98 100644 --- a/demo/JNWCollectionViewDemo/DemoWindowController.m +++ b/demo/JNWCollectionViewDemo/DemoWindowController.m @@ -9,12 +9,11 @@ #import "DemoWindowController.h" #import "ListDemoViewController.h" #import "GridDemoViewController.h" - #import "NSTableViewDemoViewController.h" typedef enum { - ListLayout = 0, - GridLayout = 1, + GridLayout = 0, + ListLayout = 1, NSTableViewLayout = 2 } LayoutType; @@ -27,7 +26,7 @@ @implementation DemoWindowController - (void)windowDidLoad { [super windowDidLoad]; - self.currentViewController = [[ListDemoViewController alloc] init]; + self.currentViewController = [[GridDemoViewController alloc] init]; } - (id)init { @@ -41,10 +40,10 @@ - (void)selectLayout:(id)sender { return; self.layoutType = layout; - if (layout == ListLayout) { - self.currentViewController = [[ListDemoViewController alloc] init]; - } else if (layout == GridLayout) { + if (layout == GridLayout) { self.currentViewController = [[GridDemoViewController alloc] init]; + } else if (layout == ListLayout) { + self.currentViewController = [[ListDemoViewController alloc] init]; } else if (layout == NSTableViewLayout) { self.currentViewController = [[NSTableViewDemoViewController alloc] init]; } diff --git a/demo/JNWCollectionViewDemo/DemoWindowController.xib b/demo/JNWCollectionViewDemo/DemoWindowController.xib index d90a3b0..29b14f6 100644 --- a/demo/JNWCollectionViewDemo/DemoWindowController.xib +++ b/demo/JNWCollectionViewDemo/DemoWindowController.xib @@ -1,273 +1,63 @@ - - - - 1080 - 12D78 - 3084 - 1187.37 - 626.00 - - com.apple.InterfaceBuilder.CocoaPlugin - 3084 - - - NSBox - NSCustomObject - NSSegmentedCell - NSSegmentedControl - NSView - NSWindowTemplate - - - com.apple.InterfaceBuilder.CocoaPlugin - - - PluginDependencyRecalculationVersion - - - - - DemoWindowController - - - FirstResponder - - - NSApplication - - - 15 - 2 - {{196, 240}, {572, 386}} - 544735232 - JNWCollectionView Demo - NSWindow - - - {500, 300} - - - 256 - - - - 293 - {{141, 18}, {290, 24}} - - - _NS:9 - 1 - YES - - 67108864 - 0 - - LucidaGrande - 13 - 1044 - - _NS:9 - - - - List Layout - YES - 0 - - - Grid Layout - 0 - - - NSTableView - 0 - - - 1 - - NO - - - - 18 - - - - 274 - - {{1, 1}, {570, 335}} - - - _NS:11 - - - {{0, 49}, {572, 337}} - - - _NS:9 - {0, 0} - - 67108864 - 0 - Box - - LucidaGrande - 11 - 3100 - - - 6 - System - textBackgroundColor - - 3 - MQA - - - - 3 - MCAwLjgwMDAwMDAxMTkAA - - - - 1 - 4 - 0 - NO - - - {572, 386} - - - - {{0, 0}, {1440, 878}} - {500, 322} - {10000000000000, 10000000000000} - YES - - - - - - - window - - - - 3 - - - - selectLayout: - - - - 25 - - - - containerBox - - - - 27 - - - - delegate - - - - 4 - - - - - - 0 - - - - - - -2 - - - File's Owner - - - -1 - - - First Responder - - - -3 - - - Application - - - 1 - - - - - - - - 2 - - - - - - - - - 14 - - - - - - - - 15 - - - - - 26 - - - - - - - - com.apple.InterfaceBuilder.CocoaPlugin - com.apple.InterfaceBuilder.CocoaPlugin - com.apple.InterfaceBuilder.CocoaPlugin - com.apple.InterfaceBuilder.CocoaPlugin - {{357, 418}, {480, 270}} - - com.apple.InterfaceBuilder.CocoaPlugin - - com.apple.InterfaceBuilder.CocoaPlugin - com.apple.InterfaceBuilder.CocoaPlugin - com.apple.InterfaceBuilder.CocoaPlugin - - - - - - 27 - - - 0 - IBCocoaFramework - YES - 3 - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/demo/JNWCollectionViewDemo/GridCell.m b/demo/JNWCollectionViewDemo/GridCell.m index 41cbf05..e00a139 100644 --- a/demo/JNWCollectionViewDemo/GridCell.m +++ b/demo/JNWCollectionViewDemo/GridCell.m @@ -7,9 +7,9 @@ // #import "GridCell.h" -#import "JNWLabel.h" #import "NSImage+DemoAdditions.h" #import "DemoImageCache.h" +#import "Label.h" @implementation GridCell diff --git a/demo/JNWCollectionViewDemo/GridDemoViewController.xib b/demo/JNWCollectionViewDemo/GridDemoViewController.xib index 01fea74..8fda2e2 100644 --- a/demo/JNWCollectionViewDemo/GridDemoViewController.xib +++ b/demo/JNWCollectionViewDemo/GridDemoViewController.xib @@ -1,8 +1,8 @@ - + - - + + @@ -13,7 +13,7 @@ - + @@ -28,27 +28,34 @@ + + - + + + - - + + + + + - \ No newline at end of file + diff --git a/demo/JNWCollectionViewDemo/JNWCollectionViewDemo-Info.plist b/demo/JNWCollectionViewDemo/JNWCollectionViewDemo-Info.plist index 8e4239f..0da1b34 100644 --- a/demo/JNWCollectionViewDemo/JNWCollectionViewDemo-Info.plist +++ b/demo/JNWCollectionViewDemo/JNWCollectionViewDemo-Info.plist @@ -9,7 +9,7 @@ CFBundleIconFile CFBundleIdentifier - com.AppJon.${PRODUCT_NAME:rfc1034identifier} + $(PRODUCT_BUNDLE_IDENTIFIER) CFBundleInfoDictionaryVersion 6.0 CFBundleName diff --git a/demo/JNWCollectionViewDemo/Label.h b/demo/JNWCollectionViewDemo/Label.h new file mode 100644 index 0000000..8d9cfbc --- /dev/null +++ b/demo/JNWCollectionViewDemo/Label.h @@ -0,0 +1,13 @@ +// +// Label.h +// JNWCollectionViewDemo +// +// Created by Jonathan Willing on 11/12/15. +// Copyright © 2015 AppJon. All rights reserved. +// + +#import + +@interface Label : NSTextField + +@end diff --git a/demo/JNWCollectionViewDemo/Label.m b/demo/JNWCollectionViewDemo/Label.m new file mode 100644 index 0000000..a6342c9 --- /dev/null +++ b/demo/JNWCollectionViewDemo/Label.m @@ -0,0 +1,34 @@ +// +// Label.m +// JNWCollectionViewDemo +// +// Created by Jonathan Willing on 11/12/15. +// Copyright © 2015 AppJon. All rights reserved. +// + +#import "Label.h" + +@implementation Label + +- (instancetype)initWithFrame:(NSRect)frameRect { + self = [super initWithFrame:frameRect]; + [self commonInit]; + + return self; +} + +- (instancetype)initWithCoder:(NSCoder *)coder { + self = [super initWithCoder:coder]; + [self commonInit]; + + return self; +} + +- (void)commonInit { + self.bordered = NO; + self.editable = NO; + self.selectable = NO; + self.drawsBackground = NO; +} + +@end diff --git a/demo/JNWCollectionViewDemo/ListCell.m b/demo/JNWCollectionViewDemo/ListCell.m index e0c610d..8eb9685 100644 --- a/demo/JNWCollectionViewDemo/ListCell.m +++ b/demo/JNWCollectionViewDemo/ListCell.m @@ -8,11 +8,11 @@ #import "ListCell.h" #import "NSImage+DemoAdditions.h" -#import "JNWLabel.h" #import "DemoImageCache.h" +#import "Label.h" @interface ListCell() -@property (nonatomic, strong) JNWLabel *label; +@property (nonatomic, strong) Label *label; @end @implementation ListCell @@ -21,7 +21,7 @@ - (instancetype)initWithFrame:(NSRect)frameRect { self = [super initWithFrame:frameRect]; if (self == nil) return nil; - self.label = [[JNWLabel alloc] initWithFrame:CGRectZero]; + self.label = [[Label alloc] initWithFrame:CGRectZero]; [self.contentView addSubview:self.label]; return self; @@ -38,7 +38,7 @@ - (void)layout { - (void)setCellLabelText:(NSString *)cellLabelText { _cellLabelText = cellLabelText; - self.label.text = cellLabelText; + self.label.stringValue = cellLabelText; } - (void)setSelected:(BOOL)selected { diff --git a/demo/JNWCollectionViewDemo/NSTableViewDemoViewController.xib b/demo/JNWCollectionViewDemo/NSTableViewDemoViewController.xib index 9d88bde..6e66c64 100644 --- a/demo/JNWCollectionViewDemo/NSTableViewDemoViewController.xib +++ b/demo/JNWCollectionViewDemo/NSTableViewDemoViewController.xib @@ -1,370 +1,80 @@ - - - - 1070 - 13A558 - 4488.1 - 1249.11 - 691.00 - - com.apple.InterfaceBuilder.CocoaPlugin - 4488.1 - - - NSCustomObject - NSCustomView - NSScrollView - NSScroller - NSTableCellView - NSTableColumn - NSTableView - NSTextFieldCell - - - com.apple.InterfaceBuilder.CocoaPlugin - - - PluginDependencyRecalculationVersion - - - - - NSTableViewDemoViewController - - - FirstResponder - - - NSApplication - - - - 268 - - - - 274 - - - - 2322 - - - - 256 - - {471, 292} - - - _NS:13 - YES - NO - YES - - - -2147483392 - {{224, 0}, {16, 17}} - - _NS:19 - - - - 463 - 40 - 2000 - - 75497536 - 2048 - - - .LucidaGrandeUI - 11 - 3100 - - - 3 - MC4zMzMzMzI5ODU2AA - - - 6 - System - headerTextColor - - 3 - MAA - - - - - 337641536 - 2048 - Text Cell - - .LucidaGrandeUI - 13 - 1044 - - - - 6 - System - controlBackgroundColor - - 3 - MC42NjY2NjY2NjY3AA - - - - 6 - System - controlTextColor - - - - 1 - YES - YES - - - - 8 - 0.0 - - 3 - MQA - - - 6 - System - gridColor - - 3 - MC41AA - - - 44 - 373293056 - - - 4 - 15 - 0 - YES - 0 - 1 - - - {{1, 1}, {471, 292}} - - - _NS:11 - - - 4 - - - - -2147483392 - {{224, 17}, {15, 102}} - - - _NS:58 - NO - - _doScroller: - 0.99722991689750695 - - - - -2147483392 - {{1, 345}, {475, 16}} - - _NS:60 - NO - 1 - - _doScroller: - 0.58787128712871284 - - - {473, 294} - - - _NS:9 - 133682 - - - - QSAAAEEgAABCMAAAQjAAAA - 0.25 - 4 - 1 - - - {473, 294} - - NSView - - - - NO - - - - view - - - - 2 - - - - delegate - - - - 25 - - - - dataSource - - - - 24 - - - - - - 0 - - - - - - -2 - - - File's Owner - - - -1 - - - First Responder - - - -3 - - - Application - - - 1 - - - - - - - - 3 - - - - - - - - - - 4 - - - - - 5 - - - - - 6 - - - - - - - - 7 - - - - - 274 - - {{4, 0}, {463, 120}} - - - - - - - - 8 - - - - - 9 - - - - - - - com.apple.InterfaceBuilder.CocoaPlugin - com.apple.InterfaceBuilder.CocoaPlugin - com.apple.InterfaceBuilder.CocoaPlugin - com.apple.InterfaceBuilder.CocoaPlugin - BTRScrollView - com.apple.InterfaceBuilder.CocoaPlugin - com.apple.InterfaceBuilder.CocoaPlugin - com.apple.InterfaceBuilder.CocoaPlugin - com.apple.InterfaceBuilder.CocoaPlugin - com.apple.InterfaceBuilder.CocoaPlugin - - - - - DemoTableCellView - com.apple.InterfaceBuilder.CocoaPlugin - Cell - com.apple.InterfaceBuilder.CocoaPlugin - - - - - - - - 0 - IBCocoaFramework - YES - - com.apple.InterfaceBuilder.CocoaPlugin.macosx - - - - com.apple.InterfaceBuilder.CocoaPlugin.macosx - - - - com.apple.InterfaceBuilder.CocoaPlugin.InterfaceBuilder3 - - - YES - 3 - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/demo/external/JNWLabel b/demo/external/JNWLabel deleted file mode 160000 index 5406249..0000000 --- a/demo/external/JNWLabel +++ /dev/null @@ -1 +0,0 @@ -Subproject commit 54062494a1fed4c7033fdfd91d285134ab6b4747 diff --git a/external/Expecta b/external/Expecta deleted file mode 160000 index abc3d83..0000000 --- a/external/Expecta +++ /dev/null @@ -1 +0,0 @@ -Subproject commit abc3d83283fdc3942413e2f3603be6dbb2fe44b8 diff --git a/external/Specta b/external/Specta deleted file mode 160000 index ba69738..0000000 --- a/external/Specta +++ /dev/null @@ -1 +0,0 @@ -Subproject commit ba69738f1fabd07d3842c338334871ec0af0225b