ViewBasedCib example now uses a separate table delegate, which is the owner of table cell views.

It shows that the loaded view (intenal or external) has an outlet owned by the table delegate and is available for initial setup in -awakeFromCib
This commit is contained in:
cacaodev
2012-11-13 18:52:45 +01:00
parent 8a3d832b4c
commit 9b03abaeef
5 changed files with 416 additions and 159 deletions
@@ -18,10 +18,8 @@ var TABLE_DRAG_TYPE = @"TABLE_DRAG_TYPE",
{
CPWindow theWindow; //this "outlet" is connected automatically by the Cib
@outlet CPTableView tableView;
@outlet CPTextField textField;
@outlet CPArrayController contentController;
CPArray content @accessors;
CPArray content @accessors;
float avgPerRow @accessors;
}
@@ -49,29 +47,65 @@ var TABLE_DRAG_TYPE = @"TABLE_DRAG_TYPE",
[self setContent:theRows];
}
// TRACE UTILITY
- (IBAction)trace:(id)sender
{
if ([sender state] == CPOnState)
{
var tlr = 0;
var f = function(a,b,c,d,e,f,g)
{
var lr = [c[0] count];
if (d > 0)
tlr += lr;
var avg = (ROUND(100 * e/tlr) / 100);
console.log(b + " " + lr + " rows in " + d + " ms ; avg/row = " + avg + " ms");
[self setAvgPerRow:avg];
}
CPTrace(@"CPTableView", @"_loadDataViewsInRows:columns:", f);
}
else
CPTraceStop(@"CPTableView", @"_loadDataViewsInRows:columns:");
}
@end
@implementation TableViewDelegate : CPObject
{
@outlet CPView externalView;
@outlet CPView personView;
@outlet CPView placeView;
@outlet CPArrayController contentController;
}
- (CPView)makeOrangeView
{
var view = [[CustomView alloc] initWithFrame:CGRectMakeZero()];
[view setIdentifier:@"Orange"];
return view;
}
// DELEGATE METHODS FOR THE TABLE VIEW
- (void)tableView:(CPTableView)aTableView dataViewForTableColumn:(CPTableColumn)aTableColumn row:(int)aRow
{
var identifier = [aTableColumn identifier];
var identifier = [aTableColumn identifier],
content = [[CPApp delegate] content];
if (identifier == @"multiple")
identifier = [[content objectAtIndex:aRow] objectForKey:@"identifier"];
var view = [aTableView makeViewWithIdentifier:identifier owner:self];
if (identifier == "Orange")
{
if (view == nil)
view = [self makeOrangeView];
[[view textField] setStringValue:aRow];
[[view textField] setStringValue:aRow];
}
return view;
}
@@ -88,7 +122,6 @@ var TABLE_DRAG_TYPE = @"TABLE_DRAG_TYPE",
proposedRow:(CPInteger)row
proposedDropOperation:(CPTableViewDropOperation)operation
{
[aTableView setDropRow:row dropOperation:CPTableViewDropAbove];
return CPDragOperationMove;
@@ -96,7 +129,8 @@ var TABLE_DRAG_TYPE = @"TABLE_DRAG_TYPE",
- (BOOL)tableView:(CPTableView)aTableView acceptDrop:(id)info row:(int)row dropOperation:(CPTableViewDropOperation)operation
{
var pboard = [info draggingPasteboard],
var content = [[CPApp delegate] content],
pboard = [info draggingPasteboard],
sourceIndexes = [pboard dataForType:TABLE_DRAG_TYPE],
firstObject = [content objectAtIndex:[sourceIndexes firstIndex]];
@@ -112,15 +146,21 @@ var TABLE_DRAG_TYPE = @"TABLE_DRAG_TYPE",
return YES;
}
- (void)awakeFromCib
{
// Called each time a cib containing a CPTableCellView is instantiated because we set the owner to self. Certainly a better idea to have a separate table view delegate if you need awakeFromCib to do some initialization in the AppController.
CPLogConsole(_cmd + textField);
// self is the owner parameter specified in -makeViewWithIdentifier:owner:
// This method is called each time a cib containing a CPTableCellView is instantiated.
// Outlets are now connected and available.
// If the view has its own xib, only the view will be instantiated and connected to the owner.
CPLogConsole(_cmd + " externalView=" + externalView);
[[externalView textField] setTextColor:[CPColor greenColor]];
}
// CELL VIEWS ACTIONS
- (IBAction)_sliderAction:(id)sender
{
// Action sent from a cellView subview. You can access outlets (built-in or custom) defined in CPTableCellView or a subclass if you define the same outlets in the owner class.In this example, the owner is self.
// Action sent from a cellView subview to its target.
CPLogConsole(_cmd);
}
@@ -134,28 +174,6 @@ var TABLE_DRAG_TYPE = @"TABLE_DRAG_TYPE",
CPLogConsole(_cmd + " value=" + [sender stringValue]);
}
- (IBAction)trace:(id)sender
{
if ([sender state] == CPOnState)
{
var tlr = 0;
var f = function(a,b,c,d,e,f,g)
{
var lr = [c[0] count];
if (d > 0)
tlr += lr;
var avg = (ROUND(100 * e/tlr) / 100);
console.log(b + " " + lr + " rows in " + d + " ms ; avg/row = " + avg + " ms");
[self setAvgPerRow:avg];
}
CPTrace(@"CPTableView", @"_loadDataViewsInRows:columns:", f);
}
else
CPTraceStop(@"CPTableView", @"_loadDataViewsInRows:columns:");
}
@end
@implementation CustomView : CPView
@@ -167,19 +185,19 @@ var TABLE_DRAG_TYPE = @"TABLE_DRAG_TYPE",
- (id)initWithFrame:(CGRect)aFrame
{
self = [super initWithFrame:CGRectMake(0, 0, 50, 50)];
textField = [[CPTextField alloc] initWithFrame:CGRectMake(5, 5, 40, 40)];
[textField setFont:[CPFont systemFontOfSize:30]];
[textField setAutoresizingMask:CPViewMinXMargin|CPViewMaxXMargin|CPViewMinYMargin|CPViewMaxYMargin];
[textField setAutoresizingMask:CPViewMinXMargin | CPViewMaxXMargin | CPViewMinYMargin | CPViewMaxYMargin];
[self addSubview:textField];
return self;
}
- (void)drawRect:(CGRect)aRect
{
[[CPColor orangeColor] set];
var ctx = [[CPGraphicsContext currentContext] graphicsPort];
CGContextFillRect(ctx, aRect);
}
File diff suppressed because one or more lines are too long
@@ -2,13 +2,13 @@
<archive type="com.apple.InterfaceBuilder3.Cocoa.XIB" version="7.10">
<data>
<int key="IBDocument.SystemTarget">1070</int>
<string key="IBDocument.SystemVersion">11E53</string>
<string key="IBDocument.InterfaceBuilderVersion">2818</string>
<string key="IBDocument.AppKitVersion">1138.47</string>
<string key="IBDocument.SystemVersion">11G63</string>
<string key="IBDocument.InterfaceBuilderVersion">2844</string>
<string key="IBDocument.AppKitVersion">1138.51</string>
<string key="IBDocument.HIToolboxVersion">569.00</string>
<object class="NSMutableDictionary" key="IBDocument.PluginVersions">
<string key="NS.key.0">com.apple.InterfaceBuilder.CocoaPlugin</string>
<string key="NS.object.0">2818</string>
<string key="NS.object.0">2844</string>
</object>
<object class="NSArray" key="IBDocument.IntegratedClassDependencies">
<bool key="EncodedWithXMLCoder">YES</bool>
@@ -336,6 +336,7 @@
<string key="NSFrame">{{1, 373}, {755, 15}}</string>
<reference key="NSSuperview" ref="62651824"/>
<reference key="NSWindow"/>
<reference key="NSNextKeyView"/>
<string key="NSReuseIdentifierKey">_NS:60</string>
<int key="NSsFlags">1</int>
<reference key="NSTarget" ref="62651824"/>
@@ -469,6 +470,9 @@
<object class="NSCustomObject" id="635946545">
<string key="NSClassName">AppController</string>
</object>
<object class="NSCustomObject" id="316245540">
<string key="NSClassName">TableViewDelegate</string>
</object>
<object class="NSArrayController" id="911121263">
<bool key="NSEditable">YES</bool>
<object class="_NSManagedProxy" key="_NSManagedProxy"/>
@@ -498,37 +502,6 @@
</object>
<int key="connectionID">488</int>
</object>
<object class="IBConnectionRecord">
<object class="IBActionConnection" key="connection">
<string key="label">_sliderAction:</string>
<reference key="source" ref="635946545"/>
<object class="NSSlider" key="destination" id="691811269">
<reference key="NSNextResponder" ref="439616536"/>
<int key="NSvFlags">266</int>
<string key="NSFrame">{{10, 10}, {204, 21}}</string>
<reference key="NSSuperview" ref="439616536"/>
<reference key="NSNextKeyView" ref="199134073"/>
<string key="NSReuseIdentifierKey">_NS:9</string>
<bool key="NSEnabled">YES</bool>
<object class="NSSliderCell" key="NSCell" id="525715286">
<int key="NSCellFlags">-2080112384</int>
<int key="NSCellFlags2">0</int>
<string key="NSContents"/>
<string key="NSCellIdentifier">_NS:9</string>
<reference key="NSControlView" ref="691811269"/>
<double key="NSMaxValue">10</double>
<double key="NSMinValue">0.0</double>
<double key="NSValue">5</double>
<double key="NSAltIncValue">0.0</double>
<int key="NSNumberOfTickMarks">0</int>
<int key="NSTickMarkPosition">1</int>
<bool key="NSAllowsTickMarkValuesOnly">NO</bool>
<bool key="NSVertical">NO</bool>
</object>
</object>
</object>
<int key="connectionID">562</int>
</object>
<object class="IBConnectionRecord">
<object class="IBOutletConnection" key="connection">
<string key="label">theWindow</string>
@@ -553,75 +526,6 @@
</object>
<int key="connectionID">614</int>
</object>
<object class="IBConnectionRecord">
<object class="IBActionConnection" key="connection">
<string key="label">_textFieldNotBezeledAction:</string>
<reference key="source" ref="635946545"/>
<object class="NSTextField" key="destination" id="209111605">
<reference key="NSNextResponder" ref="539562116"/>
<int key="NSvFlags">266</int>
<string key="NSFrame">{{0, 57}, {147, 22}}</string>
<reference key="NSSuperview" ref="539562116"/>
<reference key="NSNextKeyView" ref="628715400"/>
<string key="NSAntiCompressionPriority">{250, 750}</string>
<int key="NSTag">666</int>
<bool key="NSEnabled">YES</bool>
<object class="NSTextFieldCell" key="NSCell" id="261852168">
<int key="NSCellFlags">337772097</int>
<int key="NSCellFlags2">272631808</int>
<string key="NSContents">Editable Text</string>
<reference key="NSSupport" ref="1069422166"/>
<reference key="NSControlView" ref="209111605"/>
<reference key="NSBackgroundColor" ref="614187381"/>
<reference key="NSTextColor" ref="537790828"/>
</object>
</object>
</object>
<int key="connectionID">631</int>
</object>
<object class="IBConnectionRecord">
<object class="IBActionConnection" key="connection">
<string key="label">_textFieldBezeledAction:</string>
<reference key="source" ref="635946545"/>
<object class="NSTextField" key="destination" id="63016519">
<reference key="NSNextResponder" ref="628715400"/>
<int key="NSvFlags">298</int>
<string key="NSFrame">{{12, 21}, {259, 36}}</string>
<reference key="NSSuperview" ref="628715400"/>
<reference key="NSNextKeyView" ref="68315013"/>
<string key="NSReuseIdentifierKey">_NS:20</string>
<string key="NSAntiCompressionPriority">{250, 750}</string>
<bool key="NSEnabled">YES</bool>
<object class="NSTextFieldCell" key="NSCell" id="469161236">
<int key="NSCellFlags">341835777</int>
<int key="NSCellFlags2">272629760</int>
<string key="NSContents">Editable Text</string>
<object class="NSFont" key="NSSupport">
<string key="NSName">LucidaGrande</string>
<double key="NSSize">26</double>
<int key="NSfFlags">16</int>
</object>
<string key="NSCellIdentifier">_NS:20</string>
<reference key="NSControlView" ref="63016519"/>
<bool key="NSDrawsBackground">YES</bool>
<object class="NSColor" key="NSBackgroundColor">
<int key="NSColorSpace">3</int>
<bytes key="NSWhite">MC45NTQ3MDAxMDA4AA</bytes>
</object>
<reference key="NSTextColor" ref="537790828"/>
</object>
</object>
</object>
<int key="connectionID">632</int>
</object>
<object class="IBConnectionRecord">
<object class="IBOutletConnection" key="connection">
<string key="label">delegate</string>
<reference key="source" ref="270585779"/>
<reference key="destination" ref="635946545"/>
</object>
<int key="connectionID">484</int>
</object>
<object class="IBConnectionRecord">
<object class="IBOutletConnection" key="connection">
<string key="label">dataSource</string>
@@ -646,6 +550,14 @@
</object>
<int key="connectionID">572</int>
</object>
<object class="IBConnectionRecord">
<object class="IBOutletConnection" key="connection">
<string key="label">delegate</string>
<reference key="source" ref="270585779"/>
<reference key="destination" ref="316245540"/>
</object>
<int key="connectionID">661</int>
</object>
<object class="IBConnectionRecord">
<object class="IBOutletConnection" key="connection">
<string key="label">textField</string>
@@ -777,7 +689,30 @@
<object class="IBConnectionRecord">
<object class="IBBindingConnection" key="connection">
<string key="label">value: objectValue.slider</string>
<reference key="source" ref="691811269"/>
<object class="NSSlider" key="source" id="691811269">
<reference key="NSNextResponder" ref="439616536"/>
<int key="NSvFlags">266</int>
<string key="NSFrame">{{10, 10}, {204, 21}}</string>
<reference key="NSSuperview" ref="439616536"/>
<reference key="NSNextKeyView" ref="199134073"/>
<string key="NSReuseIdentifierKey">_NS:9</string>
<bool key="NSEnabled">YES</bool>
<object class="NSSliderCell" key="NSCell" id="525715286">
<int key="NSCellFlags">-2080112384</int>
<int key="NSCellFlags2">0</int>
<string key="NSContents"/>
<string key="NSCellIdentifier">_NS:9</string>
<reference key="NSControlView" ref="691811269"/>
<double key="NSMaxValue">10</double>
<double key="NSMinValue">0.0</double>
<double key="NSValue">5</double>
<double key="NSAltIncValue">0.0</double>
<int key="NSNumberOfTickMarks">0</int>
<int key="NSTickMarkPosition">1</int>
<bool key="NSAllowsTickMarkValuesOnly">NO</bool>
<bool key="NSVertical">NO</bool>
</object>
</object>
<object class="NSTableCellView" key="destination" id="68315013">
<nil key="NSNextResponder"/>
<int key="NSvFlags">314</int>
@@ -947,7 +882,34 @@
<int key="NSvFlags">296</int>
<object class="NSMutableArray" key="NSSubviews">
<bool key="EncodedWithXMLCoder">YES</bool>
<reference ref="63016519"/>
<object class="NSTextField" id="63016519">
<reference key="NSNextResponder" ref="628715400"/>
<int key="NSvFlags">298</int>
<string key="NSFrame">{{12, 21}, {259, 36}}</string>
<reference key="NSSuperview" ref="628715400"/>
<reference key="NSNextKeyView" ref="68315013"/>
<string key="NSReuseIdentifierKey">_NS:20</string>
<string key="NSAntiCompressionPriority">{250, 750}</string>
<bool key="NSEnabled">YES</bool>
<object class="NSTextFieldCell" key="NSCell" id="469161236">
<int key="NSCellFlags">341835777</int>
<int key="NSCellFlags2">272629760</int>
<string key="NSContents">Editable Text</string>
<object class="NSFont" key="NSSupport">
<string key="NSName">LucidaGrande</string>
<double key="NSSize">26</double>
<int key="NSfFlags">16</int>
</object>
<string key="NSCellIdentifier">_NS:20</string>
<reference key="NSControlView" ref="63016519"/>
<bool key="NSDrawsBackground">YES</bool>
<object class="NSColor" key="NSBackgroundColor">
<int key="NSColorSpace">3</int>
<bytes key="NSWhite">MC45NTQ3MDAxMDA4AA</bytes>
</object>
<reference key="NSTextColor" ref="537790828"/>
</object>
</object>
</object>
<string key="NSFrame">{{388, 1}, {284, 78}}</string>
<reference key="NSNextKeyView" ref="63016519"/>
@@ -1147,7 +1109,25 @@
<int key="NSvFlags">296</int>
<object class="NSMutableArray" key="NSSubviews">
<bool key="EncodedWithXMLCoder">YES</bool>
<reference ref="209111605"/>
<object class="NSTextField" id="209111605">
<reference key="NSNextResponder" ref="539562116"/>
<int key="NSvFlags">266</int>
<string key="NSFrame">{{0, 57}, {147, 22}}</string>
<reference key="NSSuperview" ref="539562116"/>
<reference key="NSNextKeyView" ref="628715400"/>
<string key="NSAntiCompressionPriority">{250, 750}</string>
<int key="NSTag">666</int>
<bool key="NSEnabled">YES</bool>
<object class="NSTextFieldCell" key="NSCell" id="261852168">
<int key="NSCellFlags">337772097</int>
<int key="NSCellFlags2">272631808</int>
<string key="NSContents">Editable Text</string>
<reference key="NSSupport" ref="1069422166"/>
<reference key="NSControlView" ref="209111605"/>
<reference key="NSBackgroundColor" ref="614187381"/>
<reference key="NSTextColor" ref="537790828"/>
</object>
</object>
</object>
<string key="NSFrame">{{238, 1}, {147, 87}}</string>
<reference key="NSNextKeyView" ref="209111605"/>
@@ -1172,6 +1152,46 @@
</object>
<int key="connectionID">629</int>
</object>
<object class="IBConnectionRecord">
<object class="IBActionConnection" key="connection">
<string key="label">_sliderAction:</string>
<reference key="source" ref="316245540"/>
<reference key="destination" ref="691811269"/>
</object>
<int key="connectionID">655</int>
</object>
<object class="IBConnectionRecord">
<object class="IBActionConnection" key="connection">
<string key="label">_textFieldBezeledAction:</string>
<reference key="source" ref="316245540"/>
<reference key="destination" ref="63016519"/>
</object>
<int key="connectionID">656</int>
</object>
<object class="IBConnectionRecord">
<object class="IBActionConnection" key="connection">
<string key="label">_textFieldNotBezeledAction:</string>
<reference key="source" ref="316245540"/>
<reference key="destination" ref="209111605"/>
</object>
<int key="connectionID">657</int>
</object>
<object class="IBConnectionRecord">
<object class="IBOutletConnection" key="connection">
<string key="label">personView</string>
<reference key="source" ref="316245540"/>
<reference key="destination" ref="168286789"/>
</object>
<int key="connectionID">658</int>
</object>
<object class="IBConnectionRecord">
<object class="IBOutletConnection" key="connection">
<string key="label">placeView</string>
<reference key="source" ref="316245540"/>
<reference key="destination" ref="68315013"/>
</object>
<int key="connectionID">659</int>
</object>
</object>
<object class="IBMutableOrderedSet" key="objectRecords">
<object class="NSArray" key="orderedObjects">
@@ -1574,6 +1594,11 @@
<reference key="object" ref="373419855"/>
<reference key="parent" ref="384771319"/>
</object>
<object class="IBObjectRecord">
<int key="objectID">652</int>
<reference key="object" ref="316245540"/>
<reference key="parent" ref="0"/>
</object>
</object>
</object>
<object class="NSMutableDictionary" key="flattenedProperties">
@@ -1646,6 +1671,7 @@
<string>639.IBPluginDependency</string>
<string>639.isInViewBasedMode</string>
<string>640.IBPluginDependency</string>
<string>652.IBPluginDependency</string>
</object>
<object class="NSArray" key="dict.values">
<bool key="EncodedWithXMLCoder">YES</bool>
@@ -1726,6 +1752,7 @@
<string>com.apple.InterfaceBuilder.CocoaPlugin</string>
<boolean value="YES"/>
<string>com.apple.InterfaceBuilder.CocoaPlugin</string>
<string>com.apple.InterfaceBuilder.CocoaPlugin</string>
</object>
</object>
<object class="NSMutableDictionary" key="unlocalizedProperties">
@@ -1740,9 +1767,136 @@
<reference key="dict.values" ref="0"/>
</object>
<nil key="sourceID"/>
<int key="maxID">644</int>
<int key="maxID">661</int>
</object>
<object class="IBClassDescriber" key="IBDocument.Classes">
<object class="NSMutableArray" key="referencedPartialClassDescriptions">
<bool key="EncodedWithXMLCoder">YES</bool>
<object class="IBPartialClassDescription">
<string key="className">AppController</string>
<string key="superclassName">NSObject</string>
<object class="NSMutableDictionary" key="actions">
<string key="NS.key.0">trace:</string>
<string key="NS.object.0">id</string>
</object>
<object class="NSMutableDictionary" key="actionInfosByName">
<string key="NS.key.0">trace:</string>
<object class="IBActionInfo" key="NS.object.0">
<string key="name">trace:</string>
<string key="candidateClassName">id</string>
</object>
</object>
<object class="NSMutableDictionary" key="outlets">
<string key="NS.key.0">tableView</string>
<string key="NS.object.0">NSTableView</string>
</object>
<object class="NSMutableDictionary" key="toOneOutletInfosByName">
<string key="NS.key.0">tableView</string>
<object class="IBToOneOutletInfo" key="NS.object.0">
<string key="name">tableView</string>
<string key="candidateClassName">NSTableView</string>
</object>
</object>
<object class="IBClassDescriptionSource" key="sourceIdentifier">
<string key="majorKey">IBProjectSource</string>
<string key="minorKey">./Classes/AppController.h</string>
</object>
</object>
<object class="IBPartialClassDescription">
<string key="className">TableViewDelegate</string>
<string key="superclassName">NSObject</string>
<object class="NSMutableDictionary" key="actions">
<bool key="EncodedWithXMLCoder">YES</bool>
<object class="NSArray" key="dict.sortedKeys">
<bool key="EncodedWithXMLCoder">YES</bool>
<string>_sliderAction:</string>
<string>_textFieldBezeledAction:</string>
<string>_textFieldNotBezeledAction:</string>
</object>
<object class="NSArray" key="dict.values">
<bool key="EncodedWithXMLCoder">YES</bool>
<string>id</string>
<string>id</string>
<string>id</string>
</object>
</object>
<object class="NSMutableDictionary" key="actionInfosByName">
<bool key="EncodedWithXMLCoder">YES</bool>
<object class="NSArray" key="dict.sortedKeys">
<bool key="EncodedWithXMLCoder">YES</bool>
<string>_sliderAction:</string>
<string>_textFieldBezeledAction:</string>
<string>_textFieldNotBezeledAction:</string>
</object>
<object class="NSArray" key="dict.values">
<bool key="EncodedWithXMLCoder">YES</bool>
<object class="IBActionInfo">
<string key="name">_sliderAction:</string>
<string key="candidateClassName">id</string>
</object>
<object class="IBActionInfo">
<string key="name">_textFieldBezeledAction:</string>
<string key="candidateClassName">id</string>
</object>
<object class="IBActionInfo">
<string key="name">_textFieldNotBezeledAction:</string>
<string key="candidateClassName">id</string>
</object>
</object>
</object>
<object class="NSMutableDictionary" key="outlets">
<bool key="EncodedWithXMLCoder">YES</bool>
<object class="NSArray" key="dict.sortedKeys">
<bool key="EncodedWithXMLCoder">YES</bool>
<string>contentController</string>
<string>externalView</string>
<string>personView</string>
<string>placeView</string>
</object>
<object class="NSArray" key="dict.values">
<bool key="EncodedWithXMLCoder">YES</bool>
<string>NSArrayController</string>
<string>NSView</string>
<string>NSView</string>
<string>NSView</string>
</object>
</object>
<object class="NSMutableDictionary" key="toOneOutletInfosByName">
<bool key="EncodedWithXMLCoder">YES</bool>
<object class="NSArray" key="dict.sortedKeys">
<bool key="EncodedWithXMLCoder">YES</bool>
<string>contentController</string>
<string>externalView</string>
<string>personView</string>
<string>placeView</string>
</object>
<object class="NSArray" key="dict.values">
<bool key="EncodedWithXMLCoder">YES</bool>
<object class="IBToOneOutletInfo">
<string key="name">contentController</string>
<string key="candidateClassName">NSArrayController</string>
</object>
<object class="IBToOneOutletInfo">
<string key="name">externalView</string>
<string key="candidateClassName">NSView</string>
</object>
<object class="IBToOneOutletInfo">
<string key="name">personView</string>
<string key="candidateClassName">NSView</string>
</object>
<object class="IBToOneOutletInfo">
<string key="name">placeView</string>
<string key="candidateClassName">NSView</string>
</object>
</object>
</object>
<object class="IBClassDescriptionSource" key="sourceIdentifier">
<string key="majorKey">IBProjectSource</string>
<string key="minorKey">./Classes/TableViewDelegate.h</string>
</object>
</object>
</object>
</object>
<object class="IBClassDescriber" key="IBDocument.Classes"/>
<int key="IBDocument.localizationMode">0</int>
<string key="IBDocument.TargetRuntimeIdentifier">IBCocoaFramework</string>
<object class="NSMutableDictionary" key="IBDocument.PluginDeclaredDevelopmentDependencies">
File diff suppressed because one or more lines are too long
@@ -2,13 +2,13 @@
<archive type="com.apple.InterfaceBuilder3.Cocoa.XIB" version="8.00">
<data>
<int key="IBDocument.SystemTarget">1070</int>
<string key="IBDocument.SystemVersion">11E53</string>
<string key="IBDocument.InterfaceBuilderVersion">2818</string>
<string key="IBDocument.AppKitVersion">1138.47</string>
<string key="IBDocument.SystemVersion">11G63</string>
<string key="IBDocument.InterfaceBuilderVersion">2844</string>
<string key="IBDocument.AppKitVersion">1138.51</string>
<string key="IBDocument.HIToolboxVersion">569.00</string>
<object class="NSMutableDictionary" key="IBDocument.PluginVersions">
<string key="NS.key.0">com.apple.InterfaceBuilder.CocoaPlugin</string>
<string key="NS.object.0">2818</string>
<string key="NS.object.0">2844</string>
</object>
<array key="IBDocument.IntegratedClassDependencies">
<string>NSCustomObject</string>
@@ -27,7 +27,7 @@
</object>
<array class="NSMutableArray" key="IBDocument.RootObjects" id="1000">
<object class="NSCustomObject" id="1001">
<string key="NSClassName">AppController</string>
<string key="NSClassName">TableViewDelegate</string>
</object>
<object class="NSCustomObject" id="1003">
<string key="NSClassName">FirstResponder</string>
@@ -77,7 +77,6 @@
<string key="NSFrame">{{98, 45}, {237, 17}}</string>
<reference key="NSSuperview" ref="867617809"/>
<reference key="NSWindow"/>
<reference key="NSNextKeyView"/>
<string key="NSReuseIdentifierKey">_NS:20</string>
<string key="NSAntiCompressionPriority">{250, 750}</string>
<bool key="NSEnabled">YES</bool>
@@ -122,6 +121,38 @@
</array>
<object class="IBObjectContainer" key="IBDocument.Objects">
<array class="NSMutableArray" key="connectionRecords">
<object class="IBConnectionRecord">
<object class="IBOutletConnection" key="connection">
<string key="label">textField</string>
<reference key="source" ref="1001"/>
<reference key="destination" ref="230105450"/>
</object>
<int key="connectionID">22</int>
</object>
<object class="IBConnectionRecord">
<object class="IBOutletConnection" key="connection">
<string key="label">imageView</string>
<reference key="source" ref="1001"/>
<reference key="destination" ref="624486786"/>
</object>
<int key="connectionID">23</int>
</object>
<object class="IBConnectionRecord">
<object class="IBOutletConnection" key="connection">
<string key="label">view</string>
<reference key="source" ref="1001"/>
<reference key="destination" ref="867617809"/>
</object>
<int key="connectionID">24</int>
</object>
<object class="IBConnectionRecord">
<object class="IBOutletConnection" key="connection">
<string key="label">externalView</string>
<reference key="source" ref="1001"/>
<reference key="destination" ref="867617809"/>
</object>
<int key="connectionID">25</int>
</object>
<object class="IBConnectionRecord">
<object class="IBOutletConnection" key="connection">
<string key="label">imageView</string>
@@ -216,16 +247,70 @@
<nil key="activeLocalization"/>
<dictionary class="NSMutableDictionary" key="localizations"/>
<nil key="sourceID"/>
<int key="maxID">21</int>
<int key="maxID">25</int>
</object>
<object class="IBClassDescriber" key="IBDocument.Classes">
<array class="NSMutableArray" key="referencedPartialClassDescriptions">
<object class="IBPartialClassDescription">
<string key="className">TableViewDelegate</string>
<string key="superclassName">NSObject</string>
<dictionary class="NSMutableDictionary" key="actions">
<string key="_sliderAction:">id</string>
<string key="_textFieldBezeledAction:">id</string>
<string key="_textFieldNotBezeledAction:">id</string>
</dictionary>
<dictionary class="NSMutableDictionary" key="actionInfosByName">
<object class="IBActionInfo" key="_sliderAction:">
<string key="name">_sliderAction:</string>
<string key="candidateClassName">id</string>
</object>
<object class="IBActionInfo" key="_textFieldBezeledAction:">
<string key="name">_textFieldBezeledAction:</string>
<string key="candidateClassName">id</string>
</object>
<object class="IBActionInfo" key="_textFieldNotBezeledAction:">
<string key="name">_textFieldNotBezeledAction:</string>
<string key="candidateClassName">id</string>
</object>
</dictionary>
<dictionary class="NSMutableDictionary" key="outlets">
<string key="contentController">NSArrayController</string>
<string key="externalView">NSView</string>
<string key="personView">NSView</string>
<string key="placeView">NSView</string>
</dictionary>
<dictionary class="NSMutableDictionary" key="toOneOutletInfosByName">
<object class="IBToOneOutletInfo" key="contentController">
<string key="name">contentController</string>
<string key="candidateClassName">NSArrayController</string>
</object>
<object class="IBToOneOutletInfo" key="externalView">
<string key="name">externalView</string>
<string key="candidateClassName">NSView</string>
</object>
<object class="IBToOneOutletInfo" key="personView">
<string key="name">personView</string>
<string key="candidateClassName">NSView</string>
</object>
<object class="IBToOneOutletInfo" key="placeView">
<string key="name">placeView</string>
<string key="candidateClassName">NSView</string>
</object>
</dictionary>
<object class="IBClassDescriptionSource" key="sourceIdentifier">
<string key="majorKey">IBProjectSource</string>
<string key="minorKey">./Classes/TableViewDelegate.h</string>
</object>
</object>
</array>
</object>
<object class="IBClassDescriber" key="IBDocument.Classes"/>
<int key="IBDocument.localizationMode">0</int>
<string key="IBDocument.TargetRuntimeIdentifier">IBCocoaFramework</string>
<bool key="IBDocument.PluginDeclaredDependenciesTrackSystemTargetVersion">YES</bool>
<int key="IBDocument.defaultPropertyAccessControl">3</int>
<object class="NSMutableDictionary" key="IBDocument.LastKnownImageSizes">
<string key="NS.key.0">brad</string>
<string key="NS.object.0">{128, 128}</string>
<string key="NS.object.0">{100, 134}</string>
</object>
</data>
</archive>