replaced setContest with setContentDictionary in test

enabled "prepairs content" in xib to show key, key1 etc when added
This commit is contained in:
Blair Duncan
2013-02-18 22:54:42 -05:00
parent 35b54117e0
commit 8eb59d97b2
4 changed files with 26 additions and 35 deletions
-5
View File
@@ -71,11 +71,6 @@
return _contentDictionary;
}
- (void)setContent:(id)value
{
[self setContentDictionary:value];
}
- (void)setContentDictionary:(CPDictionary)aDictionary
{
if (aDictionary == _contentDictionary)
@@ -12,8 +12,8 @@
@implementation AppController : CPObject
{
@outlet CPWindow theWindow;
CPDictionaryController dictionaryController @accessors;
CPTableView tableView @accessors;
}
- (void)applicationDidFinishLaunching:(CPNotification)aNotification
@@ -28,8 +28,9 @@
@"Blair", @"First Name",
@"Duncan", @"Last Name",
@"Toronto", @"City"];
[dictionaryController setContent:dictionary];
[dictionaryController setContentDictionary:dictionary];
[tableView reloadData];
}
@end
File diff suppressed because one or more lines are too long
@@ -37,6 +37,9 @@
<object class="NSCustomObject" id="1004">
<string key="NSClassName">NSApplication</string>
</object>
<object class="NSCustomObject" id="793752084">
<string key="NSClassName">AppController</string>
</object>
<object class="NSWindowTemplate" id="1005">
<int key="NSWindowStyleMask">15</int>
<int key="NSWindowBacking">2</int>
@@ -195,7 +198,7 @@
</object>
</object>
<double key="NSRowHeight">17</double>
<int key="NSTvFlags">-700448768</int>
<int key="NSTvFlags">-692060160</int>
<reference key="NSDelegate"/>
<reference key="NSDataSource"/>
<int key="NSColumnAutoresizingStyle">4</int>
@@ -312,6 +315,7 @@
<string>value</string>
</object>
<bool key="NSEditable">YES</bool>
<bool key="NSAutomaticallyPreparesContent">YES</bool>
<bool key="NSAvoidsEmptySelection">YES</bool>
<bool key="NSPreservesSelection">YES</bool>
<bool key="NSSelectsInsertedObjects">YES</bool>
@@ -341,9 +345,6 @@
<string>Phone Number</string>
</object>
</object>
<object class="NSCustomObject" id="793752084">
<string key="NSClassName">AppController</string>
</object>
</object>
<object class="IBObjectContainer" key="IBDocument.Objects">
<object class="NSMutableArray" key="connectionRecords">
@@ -484,6 +485,14 @@
</object>
<int key="connectionID">76</int>
</object>
<object class="IBConnectionRecord">
<object class="IBOutletConnection" key="connection">
<string key="label">tableView</string>
<reference key="source" ref="793752084"/>
<reference key="destination" ref="144610870"/>
</object>
<int key="connectionID">79</int>
</object>
</object>
<object class="IBMutableOrderedSet" key="objectRecords">
<object class="NSArray" key="orderedObjects">
@@ -672,9 +681,9 @@
<string>com.apple.InterfaceBuilder.CocoaPlugin</string>
<string>com.apple.InterfaceBuilder.CocoaPlugin</string>
<string>com.apple.InterfaceBuilder.CocoaPlugin</string>
<string>{{333, 442}, {480, 270}}</string>
<string>{{289, 442}, {480, 270}}</string>
<string>com.apple.InterfaceBuilder.CocoaPlugin</string>
<string>{{333, 442}, {480, 270}}</string>
<string>{{289, 442}, {480, 270}}</string>
<integer value="1"/>
<string>{196, 240}</string>
<string>{{357, 418}, {480, 270}}</string>
@@ -712,7 +721,7 @@
</object>
</object>
<nil key="sourceID"/>
<int key="maxID">76</int>
<int key="maxID">80</int>
</object>
<object class="IBClassDescriber" key="IBDocument.Classes">
<object class="NSMutableArray" key="referencedPartialClassDescriptions">
@@ -735,45 +744,31 @@
<bool key="EncodedWithXMLCoder">YES</bool>
<object class="NSArray" key="dict.sortedKeys">
<bool key="EncodedWithXMLCoder">YES</bool>
<string>KeyPathPopup</string>
<string>dictionaryController</string>
<string>lengthField</string>
<string>locationField</string>
<string>tableView</string>
</object>
<object class="NSMutableArray" key="dict.values">
<bool key="EncodedWithXMLCoder">YES</bool>
<string>NSPopUpButton</string>
<string>NSDictionaryController</string>
<string>NSTextField</string>
<string>NSTextField</string>
<string>NSTableView</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>KeyPathPopup</string>
<string>dictionaryController</string>
<string>lengthField</string>
<string>locationField</string>
<string>tableView</string>
</object>
<object class="NSMutableArray" key="dict.values">
<bool key="EncodedWithXMLCoder">YES</bool>
<object class="IBToOneOutletInfo">
<string key="name">KeyPathPopup</string>
<string key="candidateClassName">NSPopUpButton</string>
</object>
<object class="IBToOneOutletInfo">
<string key="name">dictionaryController</string>
<string key="candidateClassName">NSDictionaryController</string>
</object>
<object class="IBToOneOutletInfo">
<string key="name">lengthField</string>
<string key="candidateClassName">NSTextField</string>
</object>
<object class="IBToOneOutletInfo">
<string key="name">locationField</string>
<string key="candidateClassName">NSTextField</string>
<string key="name">tableView</string>
<string key="candidateClassName">NSTableView</string>
</object>
</object>
</object>