Permalink
Browse files

Separated protocols into separate files, renamed example classes, and…

… updated doxygen file.
  • Loading branch information...
1 parent 2e7abb1 commit f00ff68ce1fe7a2c3b29bec67d1006c1437c905a @epreston committed Aug 8, 2012
View
Oops, something went wrong.
@@ -8,7 +8,7 @@
#import <UIKit/UIKit.h>
-#import "PSTreeGraphModelNode.h"
+#import "PSTreeGraphDelegate.h"
@class PSBaseTreeGraphView;
@@ -10,7 +10,7 @@
#import "PSHTreeGraphViewController.h"
#import "PSBaseTreeGraphView.h"
-#import "PSHLeafView.h"
+#import "MyLeafView.h"
#import "ObjCClassWrapper.h"
@@ -96,7 +96,7 @@ -(void) configureNodeView:(UIView *)nodeView
// NOT FLEXIBLE: treat it like a model node instead of the interface.
ObjCClassWrapper *objectWrapper = (ObjCClassWrapper *)modelNode;
- PSHLeafView *leafView = (PSHLeafView *)nodeView;
+ MyLeafView *leafView = (MyLeafView *)nodeView;
// button
if ( [[objectWrapper childModelNodes] count] == 0 ) {
@@ -105,7 +105,8 @@ -(void) configureNodeView:(UIView *)nodeView
// labels
leafView.titleLabel.text = [objectWrapper name];
- leafView.detailLabel.text = [NSString stringWithFormat:@"%zd bytes", [objectWrapper wrappedClassInstanceSize]];
+ leafView.detailLabel.text = [NSString stringWithFormat:@"%zd bytes",
+ [objectWrapper wrappedClassInstanceSize]];
}
@@ -1,5 +1,5 @@
//
-// PSHLeafView.h
+// MyLeafView.h
// PSHTreeGraph - Example 1
//
// Created by Ed Preston on 7/26/10.
@@ -12,7 +12,7 @@
#import "PSBaseLeafView.h"
-@interface PSHLeafView : PSBaseLeafView
+@interface MyLeafView : PSBaseLeafView
@property (nonatomic, assign) IBOutlet UIButton *expandButton;
@property (nonatomic, assign) IBOutlet UILabel *titleLabel;
@@ -1,16 +1,16 @@
//
-// PSHLeafView.m
+// MyLeafView.m
// PSHTreeGraph - Example 1
//
// Created by Ed Preston on 7/26/10.
// Copyright 2010 Preston Software. All rights reserved.
//
-#import "PSHLeafView.h"
+#import "MyLeafView.h"
-@interface PSHLeafView ()
+@interface MyLeafView ()
{
@private
@@ -23,7 +23,7 @@ @interface PSHLeafView ()
@end
-@implementation PSHLeafView
+@implementation MyLeafView
#pragma mark - Property Accessors
@@ -1,5 +1,5 @@
//
-// PSHTreeGraphView.h
+// MyTreeGraphView.h
// PSHTreeGraph - Example 1
//
// Created by Ed Preston on 7/25/10.
@@ -12,7 +12,7 @@
#import "PSBaseTreeGraphView.h"
-@interface PSHTreeGraphView : PSBaseTreeGraphView
+@interface MyTreeGraphView : PSBaseTreeGraphView
// TODO: Place project specific code, extentions here.
@@ -1,16 +1,16 @@
//
-// PSHTreeGraphView.m
+// MyTreeGraphView.m
// PSHTreeGraph - Example 1
//
// Created by Ed Preston on 7/25/10.
// Copyright 2010 Preston Software. All rights reserved.
//
-#import "PSHTreeGraphView.h"
+#import "MyTreeGraphView.h"
-@implementation PSHTreeGraphView
+@implementation MyTreeGraphView
#pragma mark - UIView
@@ -2,19 +2,19 @@
<archive type="com.apple.InterfaceBuilder3.CocoaTouch.iPad.XIB" version="8.00">
<data>
<int key="IBDocument.SystemTarget">1280</int>
- <string key="IBDocument.SystemVersion">11C74</string>
- <string key="IBDocument.InterfaceBuilderVersion">1938</string>
- <string key="IBDocument.AppKitVersion">1138.23</string>
- <string key="IBDocument.HIToolboxVersion">567.00</string>
+ <string key="IBDocument.SystemVersion">12A269</string>
+ <string key="IBDocument.InterfaceBuilderVersion">2549</string>
+ <string key="IBDocument.AppKitVersion">1187</string>
+ <string key="IBDocument.HIToolboxVersion">624.00</string>
<object class="NSMutableDictionary" key="IBDocument.PluginVersions">
<string key="NS.key.0">com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
- <string key="NS.object.0">933</string>
+ <string key="NS.object.0">1498</string>
</object>
<array key="IBDocument.IntegratedClassDependencies">
+ <string>IBProxyObject</string>
<string>IBUIButton</string>
- <string>IBUIView</string>
<string>IBUILabel</string>
- <string>IBProxyObject</string>
+ <string>IBUIView</string>
</array>
<array key="IBDocument.PluginDependencies">
<string>com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
@@ -33,16 +33,14 @@
<string key="targetRuntimeIdentifier">IBIPadFramework</string>
</object>
<object class="IBUIView" id="191373211">
- <reference key="NSNextResponder"/>
+ <nil key="NSNextResponder"/>
<int key="NSvFlags">274</int>
<array class="NSMutableArray" key="NSSubviews">
<object class="IBUIButton" id="246752469">
<reference key="NSNextResponder" ref="191373211"/>
<int key="NSvFlags">292</int>
<string key="NSFrame">{{191, 8}, {29, 31}}</string>
<reference key="NSSuperview" ref="191373211"/>
- <reference key="NSWindow"/>
- <reference key="NSNextKeyView"/>
<int key="IBUIContentMode">4</int>
<string key="targetRuntimeIdentifier">IBIPadFramework</string>
<int key="IBUIContentHorizontalAlignment">0</int>
@@ -81,7 +79,6 @@
<int key="NSvFlags">292</int>
<string key="NSFrame">{{9, 7}, {169, 21}}</string>
<reference key="NSSuperview" ref="191373211"/>
- <reference key="NSWindow"/>
<reference key="NSNextKeyView" ref="298809504"/>
<bool key="IBUIOpaque">NO</bool>
<bool key="IBUIClipsSubviews">YES</bool>
@@ -113,7 +110,6 @@
<int key="NSvFlags">292</int>
<string key="NSFrame">{{9, 23}, {169, 21}}</string>
<reference key="NSSuperview" ref="191373211"/>
- <reference key="NSWindow"/>
<reference key="NSNextKeyView" ref="246752469"/>
<bool key="IBUIOpaque">NO</bool>
<bool key="IBUIClipsSubviews">YES</bool>
@@ -139,8 +135,6 @@
</object>
</array>
<string key="NSFrameSize">{229, 48}</string>
- <reference key="NSSuperview"/>
- <reference key="NSWindow"/>
<reference key="NSNextKeyView" ref="189980015"/>
<reference key="IBUIBackgroundColor" ref="202185770"/>
<object class="IBUISimulatedOrientationMetrics" key="IBUISimulatedOrientationMetrics">
@@ -247,7 +241,7 @@
<string key="-1.IBPluginDependency">com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
<string key="-2.CustomClassName">UIResponder</string>
<string key="-2.IBPluginDependency">com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
- <string key="1.CustomClassName">PSHLeafView</string>
+ <string key="1.CustomClassName">MyLeafView</string>
<dictionary class="NSMutableDictionary" key="1.IBAttributePlaceholdersKey"/>
<string key="1.IBPluginDependency">com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
<string key="16.IBPluginDependency">com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
@@ -263,14 +257,6 @@
<object class="IBClassDescriber" key="IBDocument.Classes">
<array class="NSMutableArray" key="referencedPartialClassDescriptions">
<object class="IBPartialClassDescription">
- <string key="className">PSBaseLeafView</string>
- <string key="superclassName">UIView</string>
- <object class="IBClassDescriptionSource" key="sourceIdentifier">
- <string key="majorKey">IBProjectSource</string>
- <string key="minorKey">./Classes/PSBaseLeafView.h</string>
- </object>
- </object>
- <object class="IBPartialClassDescription">
<string key="className">PSBaseSubtreeView</string>
<string key="superclassName">UIView</string>
<object class="NSMutableDictionary" key="actions">
@@ -300,33 +286,6 @@
<string key="minorKey">./Classes/PSBaseSubtreeView.h</string>
</object>
</object>
- <object class="IBPartialClassDescription">
- <string key="className">PSHLeafView</string>
- <string key="superclassName">PSBaseLeafView</string>
- <dictionary class="NSMutableDictionary" key="outlets">
- <string key="detailLabel">UILabel</string>
- <string key="expandButton">UIButton</string>
- <string key="titleLabel">UILabel</string>
- </dictionary>
- <dictionary class="NSMutableDictionary" key="toOneOutletInfosByName">
- <object class="IBToOneOutletInfo" key="detailLabel">
- <string key="name">detailLabel</string>
- <string key="candidateClassName">UILabel</string>
- </object>
- <object class="IBToOneOutletInfo" key="expandButton">
- <string key="name">expandButton</string>
- <string key="candidateClassName">UIButton</string>
- </object>
- <object class="IBToOneOutletInfo" key="titleLabel">
- <string key="name">titleLabel</string>
- <string key="candidateClassName">UILabel</string>
- </object>
- </dictionary>
- <object class="IBClassDescriptionSource" key="sourceIdentifier">
- <string key="majorKey">IBProjectSource</string>
- <string key="minorKey">./Classes/PSHLeafView.h</string>
- </object>
- </object>
</array>
</object>
<int key="IBDocument.localizationMode">0</int>
@@ -345,6 +304,6 @@
<string key="NS.key.0">TreeViewSubtreeExpandedButton.png</string>
<string key="NS.object.0">{15, 17}</string>
</object>
- <string key="IBCocoaTouchPluginVersion">933</string>
+ <string key="IBCocoaTouchPluginVersion">1498</string>
</data>
</archive>
@@ -2,18 +2,18 @@
<archive type="com.apple.InterfaceBuilder3.CocoaTouch.iPad.XIB" version="8.00">
<data>
<int key="IBDocument.SystemTarget">1280</int>
- <string key="IBDocument.SystemVersion">11C74</string>
- <string key="IBDocument.InterfaceBuilderVersion">1938</string>
- <string key="IBDocument.AppKitVersion">1138.23</string>
- <string key="IBDocument.HIToolboxVersion">567.00</string>
+ <string key="IBDocument.SystemVersion">12A269</string>
+ <string key="IBDocument.InterfaceBuilderVersion">2549</string>
+ <string key="IBDocument.AppKitVersion">1187</string>
+ <string key="IBDocument.HIToolboxVersion">624.00</string>
<object class="NSMutableDictionary" key="IBDocument.PluginVersions">
<string key="NS.key.0">com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
- <string key="NS.object.0">933</string>
+ <string key="NS.object.0">1498</string>
</object>
<array key="IBDocument.IntegratedClassDependencies">
<string>IBProxyObject</string>
- <string>IBUIView</string>
<string>IBUIScrollView</string>
+ <string>IBUIView</string>
</array>
<array key="IBDocument.PluginDependencies">
<string>com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
@@ -162,7 +162,7 @@
<string key="-2.IBPluginDependency">com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
<string key="2.IBPluginDependency">com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
<string key="4.IBPluginDependency">com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
- <string key="5.CustomClassName">PSHTreeGraphView</string>
+ <string key="5.CustomClassName">MyTreeGraphView</string>
<string key="5.IBPluginDependency">com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
</dictionary>
<dictionary class="NSMutableDictionary" key="unlocalizedProperties"/>
@@ -232,14 +232,6 @@
</object>
</object>
<object class="IBPartialClassDescription">
- <string key="className">PSHTreeGraphView</string>
- <string key="superclassName">PSBaseTreeGraphView</string>
- <object class="IBClassDescriptionSource" key="sourceIdentifier">
- <string key="majorKey">IBProjectSource</string>
- <string key="minorKey">./Classes/PSHTreeGraphView.h</string>
- </object>
- </object>
- <object class="IBPartialClassDescription">
<string key="className">PSHTreeGraphViewController</string>
<string key="superclassName">UIViewController</string>
<object class="NSMutableDictionary" key="outlets">
@@ -272,6 +264,6 @@
</object>
<bool key="IBDocument.PluginDeclaredDependenciesTrackSystemTargetVersion">YES</bool>
<int key="IBDocument.defaultPropertyAccessControl">3</int>
- <string key="IBCocoaTouchPluginVersion">933</string>
+ <string key="IBCocoaTouchPluginVersion">1498</string>
</data>
</archive>
Oops, something went wrong.

0 comments on commit f00ff68

Please sign in to comment.