Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Initial commit.

  • Loading branch information...
commit 118980a370a132e474533cfb234f5c1cedbdc446 0 parents
Josh Abernathy authored
28 Demo-Info.plist
... ... @@ -0,0 +1,28 @@
  1 +<?xml version="1.0" encoding="UTF-8"?>
  2 +<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
  3 +<plist version="1.0">
  4 +<dict>
  5 + <key>CFBundleDevelopmentRegion</key>
  6 + <string>English</string>
  7 + <key>CFBundleExecutable</key>
  8 + <string>${EXECUTABLE_NAME}</string>
  9 + <key>CFBundleIdentifier</key>
  10 + <string>com.yourcompany.${PRODUCT_NAME:rfc1034identifier}</string>
  11 + <key>CFBundleInfoDictionaryVersion</key>
  12 + <string>6.0</string>
  13 + <key>CFBundlePackageType</key>
  14 + <string>APPL</string>
  15 + <key>CFBundleShortVersionString</key>
  16 + <string>1.0</string>
  17 + <key>CFBundleSignature</key>
  18 + <string>????</string>
  19 + <key>CFBundleVersion</key>
  20 + <string>1</string>
  21 + <key>LSMinimumSystemVersion</key>
  22 + <string>${MACOSX_DEPLOYMENT_TARGET}</string>
  23 + <key>NSMainNibFile</key>
  24 + <string>MainMenu</string>
  25 + <key>NSPrincipalClass</key>
  26 + <string>NSApplication</string>
  27 +</dict>
  28 +</plist>
21 DemoSectionView.h
... ... @@ -0,0 +1,21 @@
  1 +//
  2 +// DemoSectionView.h
  3 +// JAListView
  4 +//
  5 +// Created by Josh Abernathy on 11/26/10.
  6 +// Copyright 2010 Maybe Apps. All rights reserved.
  7 +//
  8 +
  9 +#import <Cocoa/Cocoa.h>
  10 +#import "JAListViewItem.h"
  11 +
  12 +
  13 +@interface DemoSectionView : JAListViewItem {}
  14 +
  15 ++ (DemoSectionView *)demoSectionView;
  16 +
  17 +@property (assign) IBOutlet NSTextField *textField;
  18 +@property (assign) IBOutlet NSTextField *shadowTextField;
  19 +@property (nonatomic, copy) NSString *text;
  20 +
  21 +@end
57 DemoSectionView.m
... ... @@ -0,0 +1,57 @@
  1 +//
  2 +// DemoSectionView.m
  3 +// JAListView
  4 +//
  5 +// Created by Josh Abernathy on 11/26/10.
  6 +// Copyright 2010 Maybe Apps. All rights reserved.
  7 +//
  8 +
  9 +#import "DemoSectionView.h"
  10 +
  11 +
  12 +@implementation DemoSectionView
  13 +
  14 ++ (DemoSectionView *)demoSectionView {
  15 + static NSNib *nib = nil;
  16 + if(nib == nil) {
  17 + nib = [[NSNib alloc] initWithNibNamed:NSStringFromClass(self) bundle:nil];
  18 + }
  19 +
  20 + NSArray *objects = nil;
  21 + [nib instantiateNibWithOwner:nil topLevelObjects:&objects];
  22 + for(id object in objects) {
  23 + if([object isKindOfClass:self]) {
  24 + return object;
  25 + }
  26 + }
  27 +
  28 + NSAssert1(NO, @"No view of class %@ found.", NSStringFromClass(self));
  29 + return nil;
  30 +}
  31 +
  32 +
  33 +#pragma mark NSView
  34 +
  35 +- (void)drawRect:(NSRect)dirtyRect {
  36 + [super drawRect:dirtyRect];
  37 +
  38 + [[NSColor lightGrayColor] set];
  39 + NSRectFill(dirtyRect);
  40 +}
  41 +
  42 +
  43 +#pragma mark API
  44 +
  45 +@synthesize textField;
  46 +@synthesize shadowTextField;
  47 +
  48 +- (void)setText:(NSString *)text {
  49 + [self.textField setStringValue:[[text copy] autorelease]];
  50 + [self.shadowTextField setStringValue:[[text copy] autorelease]];
  51 +}
  52 +
  53 +- (NSString *)text {
  54 + return [self.textField stringValue];
  55 +}
  56 +
  57 +@end
699 DemoSectionView.xib
... ... @@ -0,0 +1,699 @@
  1 +<?xml version="1.0" encoding="UTF-8"?>
  2 +<archive type="com.apple.InterfaceBuilder3.Cocoa.XIB" version="7.10">
  3 + <data>
  4 + <int key="IBDocument.SystemTarget">1060</int>
  5 + <string key="IBDocument.SystemVersion">10H574</string>
  6 + <string key="IBDocument.InterfaceBuilderVersion">823</string>
  7 + <string key="IBDocument.AppKitVersion">1038.35</string>
  8 + <string key="IBDocument.HIToolboxVersion">461.00</string>
  9 + <object class="NSMutableDictionary" key="IBDocument.PluginVersions">
  10 + <string key="NS.key.0">com.apple.InterfaceBuilder.CocoaPlugin</string>
  11 + <string key="NS.object.0">823</string>
  12 + </object>
  13 + <object class="NSMutableArray" key="IBDocument.EditedObjectIDs">
  14 + <bool key="EncodedWithXMLCoder">YES</bool>
  15 + <integer value="1"/>
  16 + </object>
  17 + <object class="NSArray" key="IBDocument.PluginDependencies">
  18 + <bool key="EncodedWithXMLCoder">YES</bool>
  19 + <string>com.apple.InterfaceBuilder.CocoaPlugin</string>
  20 + </object>
  21 + <object class="NSMutableDictionary" key="IBDocument.Metadata">
  22 + <bool key="EncodedWithXMLCoder">YES</bool>
  23 + <object class="NSArray" key="dict.sortedKeys" id="0">
  24 + <bool key="EncodedWithXMLCoder">YES</bool>
  25 + </object>
  26 + <object class="NSMutableArray" key="dict.values">
  27 + <bool key="EncodedWithXMLCoder">YES</bool>
  28 + </object>
  29 + </object>
  30 + <object class="NSMutableArray" key="IBDocument.RootObjects" id="1000">
  31 + <bool key="EncodedWithXMLCoder">YES</bool>
  32 + <object class="NSCustomObject" id="1001">
  33 + <string key="NSClassName">NSObject</string>
  34 + </object>
  35 + <object class="NSCustomObject" id="1003">
  36 + <string key="NSClassName">FirstResponder</string>
  37 + </object>
  38 + <object class="NSCustomObject" id="1004">
  39 + <string key="NSClassName">NSApplication</string>
  40 + </object>
  41 + <object class="NSCustomView" id="1005">
  42 + <reference key="NSNextResponder"/>
  43 + <int key="NSvFlags">268</int>
  44 + <object class="NSMutableArray" key="NSSubviews">
  45 + <bool key="EncodedWithXMLCoder">YES</bool>
  46 + <object class="NSTextField" id="284902833">
  47 + <reference key="NSNextResponder" ref="1005"/>
  48 + <int key="NSvFlags">298</int>
  49 + <string key="NSFrame">{{-3, 16}, {486, 17}}</string>
  50 + <reference key="NSSuperview" ref="1005"/>
  51 + <bool key="NSEnabled">YES</bool>
  52 + <object class="NSTextFieldCell" key="NSCell" id="11719384">
  53 + <int key="NSCellFlags">68288064</int>
  54 + <int key="NSCellFlags2">138413056</int>
  55 + <string key="NSContents">Section!</string>
  56 + <object class="NSFont" key="NSSupport" id="193088098">
  57 + <string key="NSName">Helvetica-Bold</string>
  58 + <double key="NSSize">13</double>
  59 + <int key="NSfFlags">16</int>
  60 + </object>
  61 + <reference key="NSControlView" ref="284902833"/>
  62 + <object class="NSColor" key="NSBackgroundColor" id="992659223">
  63 + <int key="NSColorSpace">6</int>
  64 + <string key="NSCatalogName">System</string>
  65 + <string key="NSColorName">controlColor</string>
  66 + <object class="NSColor" key="NSColor">
  67 + <int key="NSColorSpace">3</int>
  68 + <bytes key="NSWhite">MC42NjY2NjY2NjY3AA</bytes>
  69 + </object>
  70 + </object>
  71 + <object class="NSColor" key="NSTextColor">
  72 + <int key="NSColorSpace">6</int>
  73 + <string key="NSCatalogName">System</string>
  74 + <string key="NSColorName">controlTextColor</string>
  75 + <object class="NSColor" key="NSColor">
  76 + <int key="NSColorSpace">3</int>
  77 + <bytes key="NSWhite">MAA</bytes>
  78 + </object>
  79 + </object>
  80 + </object>
  81 + </object>
  82 + <object class="NSTextField" id="276464756">
  83 + <reference key="NSNextResponder" ref="1005"/>
  84 + <int key="NSvFlags">298</int>
  85 + <string key="NSFrame">{{-3, 15}, {486, 17}}</string>
  86 + <reference key="NSSuperview" ref="1005"/>
  87 + <bool key="NSEnabled">YES</bool>
  88 + <object class="NSTextFieldCell" key="NSCell" id="544158687">
  89 + <int key="NSCellFlags">68288064</int>
  90 + <int key="NSCellFlags2">138413056</int>
  91 + <string key="NSContents">Section!</string>
  92 + <reference key="NSSupport" ref="193088098"/>
  93 + <reference key="NSControlView" ref="276464756"/>
  94 + <reference key="NSBackgroundColor" ref="992659223"/>
  95 + <object class="NSColor" key="NSTextColor">
  96 + <int key="NSColorSpace">4</int>
  97 + <bytes key="NSWhite">MSAwLjcAA</bytes>
  98 + </object>
  99 + </object>
  100 + </object>
  101 + </object>
  102 + <string key="NSFrameSize">{480, 50}</string>
  103 + <reference key="NSSuperview"/>
  104 + <string key="NSClassName">DemoSectionView</string>
  105 + </object>
  106 + </object>
  107 + <object class="IBObjectContainer" key="IBDocument.Objects">
  108 + <object class="NSMutableArray" key="connectionRecords">
  109 + <bool key="EncodedWithXMLCoder">YES</bool>
  110 + <object class="IBConnectionRecord">
  111 + <object class="IBOutletConnection" key="connection">
  112 + <string key="label">textField</string>
  113 + <reference key="source" ref="1005"/>
  114 + <reference key="destination" ref="284902833"/>
  115 + </object>
  116 + <int key="connectionID">6</int>
  117 + </object>
  118 + <object class="IBConnectionRecord">
  119 + <object class="IBOutletConnection" key="connection">
  120 + <string key="label">shadowTextField</string>
  121 + <reference key="source" ref="1005"/>
  122 + <reference key="destination" ref="276464756"/>
  123 + </object>
  124 + <int key="connectionID">7</int>
  125 + </object>
  126 + </object>
  127 + <object class="IBMutableOrderedSet" key="objectRecords">
  128 + <object class="NSArray" key="orderedObjects">
  129 + <bool key="EncodedWithXMLCoder">YES</bool>
  130 + <object class="IBObjectRecord">
  131 + <int key="objectID">0</int>
  132 + <reference key="object" ref="0"/>
  133 + <reference key="children" ref="1000"/>
  134 + <nil key="parent"/>
  135 + </object>
  136 + <object class="IBObjectRecord">
  137 + <int key="objectID">-2</int>
  138 + <reference key="object" ref="1001"/>
  139 + <reference key="parent" ref="0"/>
  140 + <string key="objectName">File's Owner</string>
  141 + </object>
  142 + <object class="IBObjectRecord">
  143 + <int key="objectID">-1</int>
  144 + <reference key="object" ref="1003"/>
  145 + <reference key="parent" ref="0"/>
  146 + <string key="objectName">First Responder</string>
  147 + </object>
  148 + <object class="IBObjectRecord">
  149 + <int key="objectID">-3</int>
  150 + <reference key="object" ref="1004"/>
  151 + <reference key="parent" ref="0"/>
  152 + <string key="objectName">Application</string>
  153 + </object>
  154 + <object class="IBObjectRecord">
  155 + <int key="objectID">1</int>
  156 + <reference key="object" ref="1005"/>
  157 + <object class="NSMutableArray" key="children">
  158 + <bool key="EncodedWithXMLCoder">YES</bool>
  159 + <reference ref="284902833"/>
  160 + <reference ref="276464756"/>
  161 + </object>
  162 + <reference key="parent" ref="0"/>
  163 + </object>
  164 + <object class="IBObjectRecord">
  165 + <int key="objectID">2</int>
  166 + <reference key="object" ref="284902833"/>
  167 + <object class="NSMutableArray" key="children">
  168 + <bool key="EncodedWithXMLCoder">YES</bool>
  169 + <reference ref="11719384"/>
  170 + </object>
  171 + <reference key="parent" ref="1005"/>
  172 + </object>
  173 + <object class="IBObjectRecord">
  174 + <int key="objectID">3</int>
  175 + <reference key="object" ref="11719384"/>
  176 + <reference key="parent" ref="284902833"/>
  177 + </object>
  178 + <object class="IBObjectRecord">
  179 + <int key="objectID">4</int>
  180 + <reference key="object" ref="276464756"/>
  181 + <object class="NSMutableArray" key="children">
  182 + <bool key="EncodedWithXMLCoder">YES</bool>
  183 + <reference ref="544158687"/>
  184 + </object>
  185 + <reference key="parent" ref="1005"/>
  186 + </object>
  187 + <object class="IBObjectRecord">
  188 + <int key="objectID">5</int>
  189 + <reference key="object" ref="544158687"/>
  190 + <reference key="parent" ref="276464756"/>
  191 + </object>
  192 + </object>
  193 + </object>
  194 + <object class="NSMutableDictionary" key="flattenedProperties">
  195 + <bool key="EncodedWithXMLCoder">YES</bool>
  196 + <object class="NSArray" key="dict.sortedKeys">
  197 + <bool key="EncodedWithXMLCoder">YES</bool>
  198 + <string>1.IBEditorWindowLastContentRect</string>
  199 + <string>1.IBPluginDependency</string>
  200 + <string>1.WindowOrigin</string>
  201 + <string>1.editorWindowContentRectSynchronizationRect</string>
  202 + <string>2.IBPluginDependency</string>
  203 + <string>2.IBViewBoundsToFrameTransform</string>
  204 + <string>3.IBPluginDependency</string>
  205 + <string>4.IBPluginDependency</string>
  206 + <string>4.IBViewBoundsToFrameTransform</string>
  207 + <string>5.IBPluginDependency</string>
  208 + </object>
  209 + <object class="NSMutableArray" key="dict.values">
  210 + <bool key="EncodedWithXMLCoder">YES</bool>
  211 + <string>{{322, 806}, {480, 50}}</string>
  212 + <string>com.apple.InterfaceBuilder.CocoaPlugin</string>
  213 + <string>{628, 654}</string>
  214 + <string>{{217, 442}, {480, 272}}</string>
  215 + <string>com.apple.InterfaceBuilder.CocoaPlugin</string>
  216 + <object class="NSAffineTransform">
  217 + <bytes key="NSTransformStruct">P4AAAL+AAADAQAAAwfgAAA</bytes>
  218 + </object>
  219 + <string>com.apple.InterfaceBuilder.CocoaPlugin</string>
  220 + <string>com.apple.InterfaceBuilder.CocoaPlugin</string>
  221 + <object class="NSAffineTransform">
  222 + <bytes key="NSTransformStruct">P4AAAL+AAABDJAAAwVAAAA</bytes>
  223 + </object>
  224 + <string>com.apple.InterfaceBuilder.CocoaPlugin</string>
  225 + </object>
  226 + </object>
  227 + <object class="NSMutableDictionary" key="unlocalizedProperties">
  228 + <bool key="EncodedWithXMLCoder">YES</bool>
  229 + <reference key="dict.sortedKeys" ref="0"/>
  230 + <object class="NSMutableArray" key="dict.values">
  231 + <bool key="EncodedWithXMLCoder">YES</bool>
  232 + </object>
  233 + </object>
  234 + <nil key="activeLocalization"/>
  235 + <object class="NSMutableDictionary" key="localizations">
  236 + <bool key="EncodedWithXMLCoder">YES</bool>
  237 + <reference key="dict.sortedKeys" ref="0"/>
  238 + <object class="NSMutableArray" key="dict.values">
  239 + <bool key="EncodedWithXMLCoder">YES</bool>
  240 + </object>
  241 + </object>
  242 + <nil key="sourceID"/>
  243 + <int key="maxID">7</int>
  244 + </object>
  245 + <object class="IBClassDescriber" key="IBDocument.Classes">
  246 + <object class="NSMutableArray" key="referencedPartialClassDescriptions">
  247 + <bool key="EncodedWithXMLCoder">YES</bool>
  248 + <object class="IBPartialClassDescription">
  249 + <string key="className">DemoSectionView</string>
  250 + <string key="superclassName">JAListViewItemView</string>
  251 + <object class="NSMutableDictionary" key="outlets">
  252 + <bool key="EncodedWithXMLCoder">YES</bool>
  253 + <object class="NSArray" key="dict.sortedKeys">
  254 + <bool key="EncodedWithXMLCoder">YES</bool>
  255 + <string>shadowTextField</string>
  256 + <string>textField</string>
  257 + </object>
  258 + <object class="NSMutableArray" key="dict.values">
  259 + <bool key="EncodedWithXMLCoder">YES</bool>
  260 + <string>NSTextField</string>
  261 + <string>NSTextField</string>
  262 + </object>
  263 + </object>
  264 + <object class="NSMutableDictionary" key="toOneOutletInfosByName">
  265 + <bool key="EncodedWithXMLCoder">YES</bool>
  266 + <object class="NSArray" key="dict.sortedKeys">
  267 + <bool key="EncodedWithXMLCoder">YES</bool>
  268 + <string>shadowTextField</string>
  269 + <string>textField</string>
  270 + </object>
  271 + <object class="NSMutableArray" key="dict.values">
  272 + <bool key="EncodedWithXMLCoder">YES</bool>
  273 + <object class="IBToOneOutletInfo">
  274 + <string key="name">shadowTextField</string>
  275 + <string key="candidateClassName">NSTextField</string>
  276 + </object>
  277 + <object class="IBToOneOutletInfo">
  278 + <string key="name">textField</string>
  279 + <string key="candidateClassName">NSTextField</string>
  280 + </object>
  281 + </object>
  282 + </object>
  283 + <object class="IBClassDescriptionSource" key="sourceIdentifier">
  284 + <string key="majorKey">IBProjectSource</string>
  285 + <string key="minorKey">DemoSectionView.h</string>
  286 + </object>
  287 + </object>
  288 + <object class="IBPartialClassDescription">
  289 + <string key="className">JAListViewItemView</string>
  290 + <string key="superclassName">NSView</string>
  291 + <object class="IBClassDescriptionSource" key="sourceIdentifier">
  292 + <string key="majorKey">IBProjectSource</string>
  293 + <string key="minorKey">JAListViewItemView.h</string>
  294 + </object>
  295 + </object>
  296 + </object>
  297 + <object class="NSMutableArray" key="referencedPartialClassDescriptionsV3.2+">
  298 + <bool key="EncodedWithXMLCoder">YES</bool>
  299 + <object class="IBPartialClassDescription">
  300 + <string key="className">NSActionCell</string>
  301 + <string key="superclassName">NSCell</string>
  302 + <object class="IBClassDescriptionSource" key="sourceIdentifier">
  303 + <string key="majorKey">IBFrameworkSource</string>
  304 + <string key="minorKey">AppKit.framework/Headers/NSActionCell.h</string>
  305 + </object>
  306 + </object>
  307 + <object class="IBPartialClassDescription">
  308 + <string key="className">NSApplication</string>
  309 + <string key="superclassName">NSResponder</string>
  310 + <object class="IBClassDescriptionSource" key="sourceIdentifier" id="155253526">
  311 + <string key="majorKey">IBFrameworkSource</string>
  312 + <string key="minorKey">AppKit.framework/Headers/NSApplication.h</string>
  313 + </object>
  314 + </object>
  315 + <object class="IBPartialClassDescription">
  316 + <string key="className">NSApplication</string>
  317 + <object class="IBClassDescriptionSource" key="sourceIdentifier" id="576454771">
  318 + <string key="majorKey">IBFrameworkSource</string>
  319 + <string key="minorKey">AppKit.framework/Headers/NSApplicationScripting.h</string>
  320 + </object>
  321 + </object>
  322 + <object class="IBPartialClassDescription">
  323 + <string key="className">NSApplication</string>
  324 + <object class="IBClassDescriptionSource" key="sourceIdentifier" id="114833010">
  325 + <string key="majorKey">IBFrameworkSource</string>
  326 + <string key="minorKey">AppKit.framework/Headers/NSColorPanel.h</string>
  327 + </object>
  328 + </object>
  329 + <object class="IBPartialClassDescription">
  330 + <string key="className">NSApplication</string>
  331 + <object class="IBClassDescriptionSource" key="sourceIdentifier">
  332 + <string key="majorKey">IBFrameworkSource</string>
  333 + <string key="minorKey">AppKit.framework/Headers/NSHelpManager.h</string>
  334 + </object>
  335 + </object>
  336 + <object class="IBPartialClassDescription">
  337 + <string key="className">NSApplication</string>
  338 + <object class="IBClassDescriptionSource" key="sourceIdentifier">
  339 + <string key="majorKey">IBFrameworkSource</string>
  340 + <string key="minorKey">AppKit.framework/Headers/NSPageLayout.h</string>
  341 + </object>
  342 + </object>
  343 + <object class="IBPartialClassDescription">
  344 + <string key="className">NSApplication</string>
  345 + <object class="IBClassDescriptionSource" key="sourceIdentifier">
  346 + <string key="majorKey">IBFrameworkSource</string>
  347 + <string key="minorKey">AppKit.framework/Headers/NSUserInterfaceItemSearching.h</string>
  348 + </object>
  349 + </object>
  350 + <object class="IBPartialClassDescription">
  351 + <string key="className">NSCell</string>
  352 + <string key="superclassName">NSObject</string>
  353 + <object class="IBClassDescriptionSource" key="sourceIdentifier">
  354 + <string key="majorKey">IBFrameworkSource</string>
  355 + <string key="minorKey">AppKit.framework/Headers/NSCell.h</string>
  356 + </object>
  357 + </object>
  358 + <object class="IBPartialClassDescription">
  359 + <string key="className">NSControl</string>
  360 + <string key="superclassName">NSView</string>
  361 + <object class="IBClassDescriptionSource" key="sourceIdentifier" id="749115126">
  362 + <string key="majorKey">IBFrameworkSource</string>
  363 + <string key="minorKey">AppKit.framework/Headers/NSControl.h</string>
  364 + </object>
  365 + </object>
  366 + <object class="IBPartialClassDescription">
  367 + <string key="className">NSFormatter</string>
  368 + <string key="superclassName">NSObject</string>
  369 + <object class="IBClassDescriptionSource" key="sourceIdentifier">
  370 + <string key="majorKey">IBFrameworkSource</string>
  371 + <string key="minorKey">Foundation.framework/Headers/NSFormatter.h</string>
  372 + </object>
  373 + </object>
  374 + <object class="IBPartialClassDescription">
  375 + <string key="className">NSMenu</string>
  376 + <string key="superclassName">NSObject</string>
  377 + <object class="IBClassDescriptionSource" key="sourceIdentifier" id="44373090">
  378 + <string key="majorKey">IBFrameworkSource</string>
  379 + <string key="minorKey">AppKit.framework/Headers/NSMenu.h</string>
  380 + </object>
  381 + </object>
  382 + <object class="IBPartialClassDescription">
  383 + <string key="className">NSObject</string>
  384 + <object class="IBClassDescriptionSource" key="sourceIdentifier">
  385 + <string key="majorKey">IBFrameworkSource</string>
  386 + <string key="minorKey">AppKit.framework/Headers/NSAccessibility.h</string>
  387 + </object>
  388 + </object>
  389 + <object class="IBPartialClassDescription">
  390 + <string key="className">NSObject</string>
  391 + <reference key="sourceIdentifier" ref="155253526"/>
  392 + </object>
  393 + <object class="IBPartialClassDescription">
  394 + <string key="className">NSObject</string>
  395 + <reference key="sourceIdentifier" ref="576454771"/>
  396 + </object>
  397 + <object class="IBPartialClassDescription">
  398 + <string key="className">NSObject</string>
  399 + <reference key="sourceIdentifier" ref="114833010"/>
  400 + </object>
  401 + <object class="IBPartialClassDescription">
  402 + <string key="className">NSObject</string>
  403 + <reference key="sourceIdentifier" ref="749115126"/>
  404 + </object>
  405 + <object class="IBPartialClassDescription">
  406 + <string key="className">NSObject</string>
  407 + <object class="IBClassDescriptionSource" key="sourceIdentifier">
  408 + <string key="majorKey">IBFrameworkSource</string>
  409 + <string key="minorKey">AppKit.framework/Headers/NSDictionaryController.h</string>
  410 + </object>
  411 + </object>
  412 + <object class="IBPartialClassDescription">
  413 + <string key="className">NSObject</string>
  414 + <object class="IBClassDescriptionSource" key="sourceIdentifier">
  415 + <string key="majorKey">IBFrameworkSource</string>
  416 + <string key="minorKey">AppKit.framework/Headers/NSDragging.h</string>
  417 + </object>
  418 + </object>
  419 + <object class="IBPartialClassDescription">
  420 + <string key="className">NSObject</string>
  421 + <object class="IBClassDescriptionSource" key="sourceIdentifier">
  422 + <string key="majorKey">IBFrameworkSource</string>
  423 + <string key="minorKey">AppKit.framework/Headers/NSFontManager.h</string>
  424 + </object>
  425 + </object>
  426 + <object class="IBPartialClassDescription">
  427 + <string key="className">NSObject</string>
  428 + <object class="IBClassDescriptionSource" key="sourceIdentifier">
  429 + <string key="majorKey">IBFrameworkSource</string>
  430 + <string key="minorKey">AppKit.framework/Headers/NSFontPanel.h</string>
  431 + </object>
  432 + </object>
  433 + <object class="IBPartialClassDescription">
  434 + <string key="className">NSObject</string>
  435 + <object class="IBClassDescriptionSource" key="sourceIdentifier">
  436 + <string key="majorKey">IBFrameworkSource</string>
  437 + <string key="minorKey">AppKit.framework/Headers/NSKeyValueBinding.h</string>
  438 + </object>
  439 + </object>
  440 + <object class="IBPartialClassDescription">
  441 + <string key="className">NSObject</string>
  442 + <reference key="sourceIdentifier" ref="44373090"/>
  443 + </object>
  444 + <object class="IBPartialClassDescription">
  445 + <string key="className">NSObject</string>
  446 + <object class="IBClassDescriptionSource" key="sourceIdentifier">
  447 + <string key="majorKey">IBFrameworkSource</string>
  448 + <string key="minorKey">AppKit.framework/Headers/NSNibLoading.h</string>
  449 + </object>
  450 + </object>
  451 + <object class="IBPartialClassDescription">
  452 + <string key="className">NSObject</string>
  453 + <object class="IBClassDescriptionSource" key="sourceIdentifier">
  454 + <string key="majorKey">IBFrameworkSource</string>
  455 + <string key="minorKey">AppKit.framework/Headers/NSOutlineView.h</string>
  456 + </object>
  457 + </object>
  458 + <object class="IBPartialClassDescription">
  459 + <string key="className">NSObject</string>
  460 + <object class="IBClassDescriptionSource" key="sourceIdentifier">
  461 + <string key="majorKey">IBFrameworkSource</string>
  462 + <string key="minorKey">AppKit.framework/Headers/NSPasteboard.h</string>
  463 + </object>
  464 + </object>
  465 + <object class="IBPartialClassDescription">
  466 + <string key="className">NSObject</string>
  467 + <object class="IBClassDescriptionSource" key="sourceIdentifier">
  468 + <string key="majorKey">IBFrameworkSource</string>
  469 + <string key="minorKey">AppKit.framework/Headers/NSSavePanel.h</string>
  470 + </object>
  471 + </object>
  472 + <object class="IBPartialClassDescription">
  473 + <string key="className">NSObject</string>
  474 + <object class="IBClassDescriptionSource" key="sourceIdentifier">
  475 + <string key="majorKey">IBFrameworkSource</string>
  476 + <string key="minorKey">AppKit.framework/Headers/NSTableView.h</string>
  477 + </object>
  478 + </object>
  479 + <object class="IBPartialClassDescription">
  480 + <string key="className">NSObject</string>
  481 + <object class="IBClassDescriptionSource" key="sourceIdentifier">
  482 + <string key="majorKey">IBFrameworkSource</string>
  483 + <string key="minorKey">AppKit.framework/Headers/NSToolbarItem.h</string>
  484 + </object>
  485 + </object>
  486 + <object class="IBPartialClassDescription">
  487 + <string key="className">NSObject</string>
  488 + <object class="IBClassDescriptionSource" key="sourceIdentifier" id="208069961">
  489 + <string key="majorKey">IBFrameworkSource</string>
  490 + <string key="minorKey">AppKit.framework/Headers/NSView.h</string>
  491 + </object>
  492 + </object>
  493 + <object class="IBPartialClassDescription">
  494 + <string key="className">NSObject</string>
  495 + <object class="IBClassDescriptionSource" key="sourceIdentifier">
  496 + <string key="majorKey">IBFrameworkSource</string>
  497 + <string key="minorKey">Foundation.framework/Headers/NSArchiver.h</string>
  498 + </object>
  499 + </object>
  500 + <object class="IBPartialClassDescription">
  501 + <string key="className">NSObject</string>
  502 + <object class="IBClassDescriptionSource" key="sourceIdentifier">
  503 + <string key="majorKey">IBFrameworkSource</string>
  504 + <string key="minorKey">Foundation.framework/Headers/NSClassDescription.h</string>
  505 + </object>
  506 + </object>
  507 + <object class="IBPartialClassDescription">
  508 + <string key="className">NSObject</string>
  509 + <object class="IBClassDescriptionSource" key="sourceIdentifier">
  510 + <string key="majorKey">IBFrameworkSource</string>
  511 + <string key="minorKey">Foundation.framework/Headers/NSError.h</string>
  512 + </object>
  513 + </object>
  514 + <object class="IBPartialClassDescription">
  515 + <string key="className">NSObject</string>
  516 + <object class="IBClassDescriptionSource" key="sourceIdentifier">
  517 + <string key="majorKey">IBFrameworkSource</string>
  518 + <string key="minorKey">Foundation.framework/Headers/NSFileManager.h</string>
  519 + </object>
  520 + </object>
  521 + <object class="IBPartialClassDescription">
  522 + <string key="className">NSObject</string>
  523 + <object class="IBClassDescriptionSource" key="sourceIdentifier">
  524 + <string key="majorKey">IBFrameworkSource</string>
  525 + <string key="minorKey">Foundation.framework/Headers/NSKeyValueCoding.h</string>
  526 + </object>
  527 + </object>
  528 + <object class="IBPartialClassDescription">
  529 + <string key="className">NSObject</string>
  530 + <object class="IBClassDescriptionSource" key="sourceIdentifier">
  531 + <string key="majorKey">IBFrameworkSource</string>
  532 + <string key="minorKey">Foundation.framework/Headers/NSKeyValueObserving.h</string>
  533 + </object>
  534 + </object>
  535 + <object class="IBPartialClassDescription">
  536 + <string key="className">NSObject</string>
  537 + <object class="IBClassDescriptionSource" key="sourceIdentifier">
  538 + <string key="majorKey">IBFrameworkSource</string>
  539 + <string key="minorKey">Foundation.framework/Headers/NSKeyedArchiver.h</string>
  540 + </object>
  541 + </object>
  542 + <object class="IBPartialClassDescription">
  543 + <string key="className">NSObject</string>
  544 + <object class="IBClassDescriptionSource" key="sourceIdentifier">
  545 + <string key="majorKey">IBFrameworkSource</string>
  546 + <string key="minorKey">Foundation.framework/Headers/NSObject.h</string>
  547 + </object>
  548 + </object>
  549 + <object class="IBPartialClassDescription">
  550 + <string key="className">NSObject</string>
  551 + <object class="IBClassDescriptionSource" key="sourceIdentifier">
  552 + <string key="majorKey">IBFrameworkSource</string>
  553 + <string key="minorKey">Foundation.framework/Headers/NSObjectScripting.h</string>
  554 + </object>
  555 + </object>
  556 + <object class="IBPartialClassDescription">
  557 + <string key="className">NSObject</string>
  558 + <object class="IBClassDescriptionSource" key="sourceIdentifier">
  559 + <string key="majorKey">IBFrameworkSource</string>
  560 + <string key="minorKey">Foundation.framework/Headers/NSPortCoder.h</string>
  561 + </object>
  562 + </object>
  563 + <object class="IBPartialClassDescription">
  564 + <string key="className">NSObject</string>
  565 + <object class="IBClassDescriptionSource" key="sourceIdentifier">
  566 + <string key="majorKey">IBFrameworkSource</string>
  567 + <string key="minorKey">Foundation.framework/Headers/NSRunLoop.h</string>
  568 + </object>
  569 + </object>
  570 + <object class="IBPartialClassDescription">
  571 + <string key="className">NSObject</string>
  572 + <object class="IBClassDescriptionSource" key="sourceIdentifier">
  573 + <string key="majorKey">IBFrameworkSource</string>
  574 + <string key="minorKey">Foundation.framework/Headers/NSScriptClassDescription.h</string>
  575 + </object>
  576 + </object>
  577 + <object class="IBPartialClassDescription">
  578 + <string key="className">NSObject</string>
  579 + <object class="IBClassDescriptionSource" key="sourceIdentifier">
  580 + <string key="majorKey">IBFrameworkSource</string>
  581 + <string key="minorKey">Foundation.framework/Headers/NSScriptKeyValueCoding.h</string>
  582 + </object>
  583 + </object>
  584 + <object class="IBPartialClassDescription">
  585 + <string key="className">NSObject</string>
  586 + <object class="IBClassDescriptionSource" key="sourceIdentifier">
  587 + <string key="majorKey">IBFrameworkSource</string>
  588 + <string key="minorKey">Foundation.framework/Headers/NSScriptObjectSpecifiers.h</string>
  589 + </object>
  590 + </object>
  591 + <object class="IBPartialClassDescription">
  592 + <string key="className">NSObject</string>
  593 + <object class="IBClassDescriptionSource" key="sourceIdentifier">
  594 + <string key="majorKey">IBFrameworkSource</string>
  595 + <string key="minorKey">Foundation.framework/Headers/NSScriptWhoseTests.h</string>
  596 + </object>
  597 + </object>
  598 + <object class="IBPartialClassDescription">
  599 + <string key="className">NSObject</string>
  600 + <object class="IBClassDescriptionSource" key="sourceIdentifier">
  601 + <string key="majorKey">IBFrameworkSource</string>
  602 + <string key="minorKey">Foundation.framework/Headers/NSThread.h</string>
  603 + </object>
  604 + </object>
  605 + <object class="IBPartialClassDescription">
  606 + <string key="className">NSObject</string>
  607 + <object class="IBClassDescriptionSource" key="sourceIdentifier">
  608 + <string key="majorKey">IBFrameworkSource</string>
  609 + <string key="minorKey">Foundation.framework/Headers/NSURL.h</string>
  610 + </object>
  611 + </object>
  612 + <object class="IBPartialClassDescription">
  613 + <string key="className">NSObject</string>
  614 + <object class="IBClassDescriptionSource" key="sourceIdentifier">
  615 + <string key="majorKey">IBFrameworkSource</string>
  616 + <string key="minorKey">Foundation.framework/Headers/NSURLConnection.h</string>
  617 + </object>
  618 + </object>
  619 + <object class="IBPartialClassDescription">
  620 + <string key="className">NSObject</string>
  621 + <object class="IBClassDescriptionSource" key="sourceIdentifier">
  622 + <string key="majorKey">IBFrameworkSource</string>
  623 + <string key="minorKey">Foundation.framework/Headers/NSURLDownload.h</string>
  624 + </object>
  625 + </object>
  626 + <object class="IBPartialClassDescription">
  627 + <string key="className">NSResponder</string>
  628 + <object class="IBClassDescriptionSource" key="sourceIdentifier">
  629 + <string key="majorKey">IBFrameworkSource</string>
  630 + <string key="minorKey">AppKit.framework/Headers/NSInterfaceStyle.h</string>
  631 + </object>
  632 + </object>
  633 + <object class="IBPartialClassDescription">
  634 + <string key="className">NSResponder</string>
  635 + <string key="superclassName">NSObject</string>
  636 + <object class="IBClassDescriptionSource" key="sourceIdentifier">
  637 + <string key="majorKey">IBFrameworkSource</string>
  638 + <string key="minorKey">AppKit.framework/Headers/NSResponder.h</string>
  639 + </object>
  640 + </object>
  641 + <object class="IBPartialClassDescription">
  642 + <string key="className">NSTextField</string>
  643 + <string key="superclassName">NSControl</string>
  644 + <object class="IBClassDescriptionSource" key="sourceIdentifier">
  645 + <string key="majorKey">IBFrameworkSource</string>
  646 + <string key="minorKey">AppKit.framework/Headers/NSTextField.h</string>
  647 + </object>
  648 + </object>
  649 + <object class="IBPartialClassDescription">
  650 + <string key="className">NSTextFieldCell</string>
  651 + <string key="superclassName">NSActionCell</string>
  652 + <object class="IBClassDescriptionSource" key="sourceIdentifier">
  653 + <string key="majorKey">IBFrameworkSource</string>
  654 + <string key="minorKey">AppKit.framework/Headers/NSTextFieldCell.h</string>
  655 + </object>
  656 + </object>
  657 + <object class="IBPartialClassDescription">
  658 + <string key="className">NSView</string>
  659 + <object class="IBClassDescriptionSource" key="sourceIdentifier">
  660 + <string key="majorKey">IBFrameworkSource</string>
  661 + <string key="minorKey">AppKit.framework/Headers/NSClipView.h</string>
  662 + </object>
  663 + </object>
  664 + <object class="IBPartialClassDescription">
  665 + <string key="className">NSView</string>
  666 + <object class="IBClassDescriptionSource" key="sourceIdentifier">
  667 + <string key="majorKey">IBFrameworkSource</string>
  668 + <string key="minorKey">AppKit.framework/Headers/NSMenuItem.h</string>
  669 + </object>
  670 + </object>
  671 + <object class="IBPartialClassDescription">
  672 + <string key="className">NSView</string>
  673 + <object class="IBClassDescriptionSource" key="sourceIdentifier">
  674 + <string key="majorKey">IBFrameworkSource</string>
  675 + <string key="minorKey">AppKit.framework/Headers/NSRulerView.h</string>
  676 + </object>
  677 + </object>
  678 + <object class="IBPartialClassDescription">
  679 + <string key="className">NSView</string>
  680 + <string key="superclassName">NSResponder</string>
  681 + <reference key="sourceIdentifier" ref="208069961"/>
  682 + </object>
  683 + </object>
  684 + </object>
  685 + <int key="IBDocument.localizationMode">0</int>
  686 + <string key="IBDocument.TargetRuntimeIdentifier">IBCocoaFramework</string>
  687 + <object class="NSMutableDictionary" key="IBDocument.PluginDeclaredDependencyDefaults">
  688 + <string key="NS.key.0">com.apple.InterfaceBuilder.CocoaPlugin.macosx</string>
  689 + <integer value="1060" key="NS.object.0"/>
  690 + </object>
  691 + <object class="NSMutableDictionary" key="IBDocument.PluginDeclaredDevelopmentDependencies">
  692 + <string key="NS.key.0">com.apple.InterfaceBuilder.CocoaPlugin.InterfaceBuilder3</string>
  693 + <integer value="3000" key="NS.object.0"/>
  694 + </object>
  695 + <bool key="IBDocument.PluginDeclaredDependenciesTrackSystemTargetVersion">YES</bool>
  696 + <string key="IBDocument.LastKnownRelativeProjectPath">JAListView.xcodeproj</string>
  697 + <int key="IBDocument.defaultPropertyAccessControl">3</int>
  698 + </data>
  699 +</archive>
26 DemoView.h
... ... @@ -0,0 +1,26 @@
  1 +//
  2 +// DemoView.h
  3 +// JAListView
  4 +//
  5 +// Created by Josh Abernathy on 9/29/10.
  6 +// Copyright 2010 Maybe Apps. All rights reserved.
  7 +//
  8 +
  9 +#import <Cocoa/Cocoa.h>
  10 +#import "JAListViewItem.h"
  11 +
  12 +
  13 +@interface DemoView : JAListViewItem {
  14 + NSGradient *gradient;
  15 + BOOL selected;
  16 + NSTextField *textField;
  17 + NSTextField *shadowTextField;
  18 +}
  19 +
  20 ++ (DemoView *)demoView;
  21 +
  22 +@property (nonatomic, copy) NSString *text;
  23 +@property (retain) IBOutlet NSTextField *textField;
  24 +@property (retain) IBOutlet NSTextField *shadowTextField;
  25 +
  26 +@end
87 DemoView.m
... ... @@ -0,0 +1,87 @@
  1 +//
  2 +// DemoView.m
  3 +// JAListView
  4 +//
  5 +// Created by Josh Abernathy on 9/29/10.
  6 +// Copyright 2010 Maybe Apps. All rights reserved.
  7 +//
  8 +
  9 +#import "DemoView.h"
  10 +
  11 +@interface DemoView ()
  12 +- (void)drawBackground;
  13 +
  14 +@property (nonatomic, readonly) NSGradient *gradient;
  15 +@end
  16 +
  17 +
  18 +@implementation DemoView
  19 +
  20 ++ (DemoView *)demoView {
  21 + static NSNib *nib = nil;
  22 + if(nib == nil) {
  23 + nib = [[NSNib alloc] initWithNibNamed:NSStringFromClass(self) bundle:nil];
  24 + }
  25 +
  26 + NSArray *objects = nil;
  27 + [nib instantiateNibWithOwner:nil topLevelObjects:&objects];
  28 + for(id object in objects) {
  29 + if([object isKindOfClass:self]) {
  30 + return object;
  31 + }
  32 + }
  33 +
  34 + NSAssert1(NO, @"No view of class %@ found.", NSStringFromClass(self));
  35 + return nil;
  36 +}
  37 +
  38 +
  39 +#pragma mark NSView
  40 +
  41 +- (void)drawRect:(NSRect)rect {
  42 + [super drawRect:rect];
  43 + [self drawBackground];
  44 +}
  45 +
  46 +
  47 +#pragma mark API
  48 +
  49 +- (void)drawBackground {
  50 + [self.gradient drawInRect:self.bounds angle:self.selected ? 270.0f : 90.0f];
  51 +
  52 + [[NSColor colorWithDeviceWhite:0.5f alpha:1.0f] set];
  53 + NSRectFill(NSMakeRect(0.0f, 0.0f, self.bounds.size.width, 1.0f));
  54 +
  55 + [[NSColor colorWithDeviceWhite:0.93f alpha:1.0f] set];
  56 + NSRectFill(NSMakeRect(0.0f, self.bounds.size.height - 1.0f, self.bounds.size.width, 1.0f));
  57 +}
  58 +
  59 +- (NSGradient *)gradient {
  60 + if(gradient == nil) {
  61 + gradient = [[NSGradient alloc] initWithStartingColor:[NSColor colorWithDeviceWhite:0.8f alpha:1.0f] endingColor:[NSColor colorWithDeviceWhite:0.85f alpha:1.0f]];
  62 + }
  63 +
  64 + return gradient;
  65 +}
  66 +
  67 +- (void)setText:(NSString *)newText {
  68 + NSString *newValue = [[newText copy] autorelease];
  69 + [self.textField setStringValue:newValue];
  70 + [self.shadowTextField setStringValue:newValue];
  71 +}
  72 +
  73 +- (NSString *)text {
  74 + return [self.textField stringValue];
  75 +}
  76 +
  77 +- (void)setSelected:(BOOL)isSelected {
  78 + selected = isSelected;
  79 +
  80 + [self setNeedsDisplay:YES];
  81 +}
  82 +
  83 +@synthesize selected;
  84 +@synthesize textField;
  85 +@synthesize shadowTextField;
  86 +
  87 +@end
698 DemoView.xib
... ... @@ -0,0 +1,698 @@
  1 +<?xml version="1.0" encoding="UTF-8"?>
  2 +<archive type="com.apple.InterfaceBuilder3.Cocoa.XIB" version="7.10">
  3 + <data>
  4 + <int key="IBDocument.SystemTarget">1060</int>
  5 + <string key="IBDocument.SystemVersion">10H574</string>
  6 + <string key="IBDocument.InterfaceBuilderVersion">823</string>
  7 + <string key="IBDocument.AppKitVersion">1038.35</string>
  8 + <string key="IBDocument.HIToolboxVersion">461.00</string>
  9 + <object class="NSMutableDictionary" key="IBDocument.PluginVersions">
  10 + <string key="NS.key.0">com.apple.InterfaceBuilder.CocoaPlugin</string>
  11 + <string key="NS.object.0">823</string>
  12 + </object>
  13 + <object class="NSMutableArray" key="IBDocument.EditedObjectIDs">
  14 + <bool key="EncodedWithXMLCoder">YES</bool>
  15 + <integer value="1"/>
  16 + </object>
  17 + <object class="NSArray" key="IBDocument.PluginDependencies">
  18 + <bool key="EncodedWithXMLCoder">YES</bool>
  19 + <string>com.apple.InterfaceBuilder.CocoaPlugin</string>
  20 + </object>
  21 + <object class="NSMutableDictionary" key="IBDocument.Metadata">
  22 + <bool key="EncodedWithXMLCoder">YES</bool>
  23 + <object class="NSArray" key="dict.sortedKeys" id="0">
  24 + <bool key="EncodedWithXMLCoder">YES</bool>
  25 + </object>
  26 + <object class="NSMutableArray" key="dict.values">
  27 + <bool key="EncodedWithXMLCoder">YES</bool>
  28 + </object>
  29 + </object>
  30 + <object class="NSMutableArray" key="IBDocument.RootObjects" id="1000">
  31 + <bool key="EncodedWithXMLCoder">YES</bool>
  32 + <object class="NSCustomObject" id="1001">
  33 + <string key="NSClassName">NSObject</string>
  34 + </object>
  35 + <object class="NSCustomObject" id="1003">
  36 + <string key="NSClassName">FirstResponder</string>
  37 + </object>
  38 + <object class="NSCustomObject" id="1004">
  39 + <string key="NSClassName">NSApplication</string>
  40 + </object>
  41 + <object class="NSCustomView" id="1005">
  42 + <reference key="NSNextResponder"/>
  43 + <int key="NSvFlags">266</int>
  44 + <object class="NSMutableArray" key="NSSubviews">
  45 + <bool key="EncodedWithXMLCoder">YES</bool>
  46 + <object class="NSTextField" id="761520997">
  47 + <reference key="NSNextResponder" ref="1005"/>
  48 + <int key="NSvFlags">298</int>
  49 + <string key="NSFrame">{{17, 18}, {353, 17}}</string>
  50 + <reference key="NSSuperview" ref="1005"/>
  51 + <int key="NSViewLayerContentsRedrawPolicy">2</int>
  52 + <bool key="NSEnabled">YES</bool>
  53 + <object class="NSTextFieldCell" key="NSCell" id="330931401">
  54 + <int key="NSCellFlags">67239488</int>
  55 + <int key="NSCellFlags2">272631808</int>
  56 + <string key="NSContents">Label</string>
  57 + <object class="NSFont" key="NSSupport" id="777143121">
  58 + <string key="NSName">HelveticaNeue-Bold</string>
  59 + <double key="NSSize">14</double>
  60 + <int key="NSfFlags">16</int>
  61 + </object>
  62 + <reference key="NSControlView" ref="761520997"/>
  63 + <object class="NSColor" key="NSBackgroundColor" id="809985342">
  64 + <int key="NSColorSpace">6</int>
  65 + <string key="NSCatalogName">System</string>
  66 + <string key="NSColorName">controlColor</string>
  67 + <object class="NSColor" key="NSColor">
  68 + <int key="NSColorSpace">3</int>
  69 + <bytes key="NSWhite">MC42NjY2NjY2NjY3AA</bytes>
  70 + </object>
  71 + </object>
  72 + <object class="NSColor" key="NSTextColor">
  73 + <int key="NSColorSpace">6</int>
  74 + <string key="NSCatalogName">System</string>
  75 + <string key="NSColorName">controlTextColor</string>
  76 + <object class="NSColor" key="NSColor">
  77 + <int key="NSColorSpace">3</int>
  78 + <bytes key="NSWhite">MAA</bytes>
  79 + </object>
  80 + </object>
  81 + </object>
  82 + </object>
  83 + <object class="NSTextField" id="351060068">
  84 + <reference key="NSNextResponder" ref="1005"/>
  85 + <int key="NSvFlags">298</int>
  86 + <string key="NSFrame">{{17, 13}, {353, 21}}</string>
  87 + <reference key="NSSuperview" ref="1005"/>
  88 + <int key="NSViewLayerContentsRedrawPolicy">2</int>
  89 + <bool key="NSEnabled">YES</bool>
  90 + <object class="NSTextFieldCell" key="NSCell" id="147322242">
  91 + <int key="NSCellFlags">67239488</int>
  92 + <int key="NSCellFlags2">272631808</int>
  93 + <string key="NSContents">Label</string>
  94 + <reference key="NSSupport" ref="777143121"/>
  95 + <reference key="NSControlView" ref="351060068"/>
  96 + <reference key="NSBackgroundColor" ref="809985342"/>
  97 + <object class="NSColor" key="NSTextColor">
  98 + <int key="NSColorSpace">1</int>
  99 + <bytes key="NSRGB">MSAxIDEgMC43AA</bytes>
  100 + </object>
  101 + </object>
  102 + </object>
  103 + </object>
  104 + <string key="NSFrameSize">{387, 50}</string>
  105 + <reference key="NSSuperview"/>
  106 + <int key="NSViewLayerContentsRedrawPolicy">2</int>
  107 + <string key="NSClassName">DemoView</string>
  108 + </object>
  109 + </object>
  110 + <object class="IBObjectContainer" key="IBDocument.Objects">
  111 + <object class="NSMutableArray" key="connectionRecords">
  112 + <bool key="EncodedWithXMLCoder">YES</bool>
  113 + <object class="IBConnectionRecord">
  114 + <object class="IBOutletConnection" key="connection">
  115 + <string key="label">textField</string>
  116 + <reference key="source" ref="1005"/>
  117 + <reference key="destination" ref="761520997"/>
  118 + </object>
  119 + <int key="connectionID">7</int>
  120 + </object>
  121 + <object class="IBConnectionRecord">
  122 + <object class="IBOutletConnection" key="connection">
  123 + <string key="label">shadowTextField</string>
  124 + <reference key="source" ref="1005"/>
  125 + <reference key="destination" ref="351060068"/>
  126 + </object>
  127 + <int key="connectionID">10</int>
  128 + </object>
  129 + </object>
  130 + <object class="IBMutableOrderedSet" key="objectRecords">
  131 + <object class="NSArray" key="orderedObjects">
  132 + <bool key="EncodedWithXMLCoder">YES</bool>
  133 + <object class="IBObjectRecord">
  134 + <int key="objectID">0</int>
  135 + <reference key="object" ref="0"/>
  136 + <reference key="children" ref="1000"/>
  137 + <nil key="parent"/>
  138 + </object>
  139 + <object class="IBObjectRecord">
  140 + <int key="objectID">-2</int>
  141 + <reference key="object" ref="1001"/>
  142 + <reference key="parent" ref="0"/>
  143 + <string key="objectName">File's Owner</string>
  144 + </object>
  145 + <object class="IBObjectRecord">
  146 + <int key="objectID">-1</int>
  147 + <reference key="object" ref="1003"/>
  148 + <reference key="parent" ref="0"/>
  149 + <string key="objectName">First Responder</string>
  150 + </object>
  151 + <object class="IBObjectRecord">
  152 + <int key="objectID">-3</int>
  153 + <reference key="object" ref="1004"/>
  154 + <reference key="parent" ref="0"/>
  155 + <string key="objectName">Application</string>
  156 + </object>
  157 + <object class="IBObjectRecord">
  158 + <int key="objectID">1</int>
  159 + <reference key="object" ref="1005"/>
  160 + <object class="NSMutableArray" key="children">
  161 + <bool key="EncodedWithXMLCoder">YES</bool>
  162 + <reference ref="761520997"/>
  163 + <reference ref="351060068"/>
  164 + </object>
  165 + <reference key="parent" ref="0"/>
  166 + </object>
  167 + <object class="IBObjectRecord">
  168 + <int key="objectID">2</int>
  169 + <reference key="object" ref="761520997"/>
  170 + <object class="NSMutableArray" key="children">
  171 + <bool key="EncodedWithXMLCoder">YES</bool>
  172 + <reference ref="330931401"/>
  173 + </object>
  174 + <reference key="parent" ref="1005"/>
  175 + </object>
  176 + <object class="IBObjectRecord">
  177 + <int key="objectID">3</int>
  178 + <reference key="object" ref="330931401"/>
  179 + <reference key="parent" ref="761520997"/>
  180 + </object>
  181 + <object class="IBObjectRecord">
  182 + <int key="objectID">5</int>
  183 + <reference key="object" ref="351060068"/>
  184 + <object class="NSMutableArray" key="children">
  185 + <bool key="EncodedWithXMLCoder">YES</bool>
  186 + <reference ref="147322242"/>
  187 + </object>
  188 + <reference key="parent" ref="1005"/>
  189 + </object>
  190 + <object class="IBObjectRecord">
  191 + <int key="objectID">6</int>
  192 + <reference key="object" ref="147322242"/>
  193 + <reference key="parent" ref="351060068"/>
  194 + </object>
  195 + </object>
  196 + </object>
  197 + <object class="NSMutableDictionary" key="flattenedProperties">
  198 + <bool key="EncodedWithXMLCoder">YES</bool>
  199 + <object class="NSArray" key="dict.sortedKeys">
  200 + <bool key="EncodedWithXMLCoder">YES</bool>
  201 + <string>1.IBEditorWindowLastContentRect</string>
  202 + <string>1.IBPluginDependency</string>
  203 + <string>1.WindowOrigin</string>
  204 + <string>1.editorWindowContentRectSynchronizationRect</string>
  205 + <string>2.IBPluginDependency</string>
  206 + <string>2.IBViewBoundsToFrameTransform</string>
  207 + <string>3.IBPluginDependency</string>
  208 + <string>5.IBPluginDependency</string>
  209 + <string>6.IBPluginDependency</string>
  210 + </object>
  211 + <object class="NSMutableArray" key="dict.values">
  212 + <bool key="EncodedWithXMLCoder">YES</bool>
  213 + <string>{{322, 706}, {387, 50}}</string>
  214 + <string>com.apple.InterfaceBuilder.CocoaPlugin</string>
  215 + <string>{628, 654}</string>
  216 + <string>{{217, 442}, {480, 272}}</string>
  217 + <string>com.apple.InterfaceBuilder.CocoaPlugin</string>
  218 + <object class="NSAffineTransform">
  219 + <bytes key="NSTransformStruct">P4AAAL+AAABCFAAAwoYAAA</bytes>
  220 + </object>
  221 + <string>com.apple.InterfaceBuilder.CocoaPlugin</string>
  222 + <string>com.apple.InterfaceBuilder.CocoaPlugin</string>
  223 + <string>com.apple.InterfaceBuilder.CocoaPlugin</string>
  224 + </object>
  225 + </object>
  226 + <object class="NSMutableDictionary" key="unlocalizedProperties">
  227 + <bool key="EncodedWithXMLCoder">YES</bool>
  228 + <reference key="dict.sortedKeys" ref="0"/>
  229 + <object class="NSMutableArray" key="dict.values">
  230 + <bool key="EncodedWithXMLCoder">YES</bool>
  231 + </object>
  232 + </object>
  233 + <nil key="activeLocalization"/>
  234 + <object class="NSMutableDictionary" key="localizations">
  235 + <bool key="EncodedWithXMLCoder">YES</bool>
  236 + <reference key="dict.sortedKeys" ref="0"/>
  237 + <object class="NSMutableArray" key="dict.values">
  238 + <bool key="EncodedWithXMLCoder">YES</bool>
  239 + </object>
  240 + </object>
  241 + <nil key="sourceID"/>
  242 + <int key="maxID">10</int>
  243 + </object>
  244 + <object class="IBClassDescriber" key="IBDocument.Classes">
  245 + <object class="NSMutableArray" key="referencedPartialClassDescriptions">
  246 + <bool key="EncodedWithXMLCoder">YES</bool>
  247 + <object class="IBPartialClassDescription">
  248 + <string key="className">DemoView</string>
  249 + <string key="superclassName">JAListViewItemView</string>
  250 + <object class="NSMutableDictionary" key="outlets">
  251 + <bool key="EncodedWithXMLCoder">YES</bool>
  252 + <object class="NSArray" key="dict.sortedKeys">
  253 + <bool key="EncodedWithXMLCoder">YES</bool>
  254 + <string>shadowTextField</string>
  255 + <string>textField</string>
  256 + </object>
  257 + <object class="NSMutableArray" key="dict.values">
  258 + <bool key="EncodedWithXMLCoder">YES</bool>
  259 + <string>NSTextField</string>
  260 + <string>NSTextField</string>
  261 + </object>
  262 + </object>
  263 + <object class="NSMutableDictionary" key="toOneOutletInfosByName">