Skip to content

Commit

Permalink
further setting up the nib
Browse files Browse the repository at this point in the history
  • Loading branch information
flyingmachine committed Aug 24, 2012
1 parent e27d4c1 commit 71835b8
Show file tree
Hide file tree
Showing 6 changed files with 72 additions and 67 deletions.
12 changes: 6 additions & 6 deletions WorkMode.xcodeproj/project.pbxproj
Expand Up @@ -18,7 +18,7 @@
6517C11815E149BE00135B11 /* InfoPlist.strings in Resources */ = {isa = PBXBuildFile; fileRef = 6517C11615E149BE00135B11 /* InfoPlist.strings */; };
6517C11B15E149BE00135B11 /* WorkModeTests.m in Sources */ = {isa = PBXBuildFile; fileRef = 6517C11A15E149BE00135B11 /* WorkModeTests.m */; };
6517C12E15E1563E00135B11 /* DragReceiver.m in Sources */ = {isa = PBXBuildFile; fileRef = 6517C12D15E1563E00135B11 /* DragReceiver.m */; };
651CDD8815E7939C00461C13 /* AppGroupView.m in Sources */ = {isa = PBXBuildFile; fileRef = 651CDD8715E7939C00461C13 /* AppGroupView.m */; };
651CDD8815E7939C00461C13 /* AppGroupViewNode.m in Sources */ = {isa = PBXBuildFile; fileRef = 651CDD8715E7939C00461C13 /* AppGroupViewNode.m */; };
651CDD8A15E7943200461C13 /* AppGroupView.xib in Resources */ = {isa = PBXBuildFile; fileRef = 651CDD8915E7943200461C13 /* AppGroupView.xib */; };
65D663AD15E5A4FD00C41FEA /* AppGroupController.m in Sources */ = {isa = PBXBuildFile; fileRef = 65D663AC15E5A4FD00C41FEA /* AppGroupController.m */; };
65D663B115E5A61800C41FEA /* IconListView.m in Sources */ = {isa = PBXBuildFile; fileRef = 65D663B015E5A61800C41FEA /* IconListView.m */; };
Expand Down Expand Up @@ -56,8 +56,8 @@
6517C11A15E149BE00135B11 /* WorkModeTests.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = WorkModeTests.m; sourceTree = "<group>"; };
6517C12C15E1563E00135B11 /* DragReceiver.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = DragReceiver.h; sourceTree = "<group>"; };
6517C12D15E1563E00135B11 /* DragReceiver.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = DragReceiver.m; sourceTree = "<group>"; };
651CDD8615E7939C00461C13 /* AppGroupView.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = AppGroupView.h; sourceTree = "<group>"; };
651CDD8715E7939C00461C13 /* AppGroupView.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = AppGroupView.m; sourceTree = "<group>"; };
651CDD8615E7939C00461C13 /* AppGroupViewNode.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = AppGroupViewNode.h; sourceTree = "<group>"; };
651CDD8715E7939C00461C13 /* AppGroupViewNode.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = AppGroupViewNode.m; sourceTree = "<group>"; };
651CDD8915E7943200461C13 /* AppGroupView.xib */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.xib; path = AppGroupView.xib; sourceTree = "<group>"; };
65D663AB15E5A4FD00C41FEA /* AppGroupController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = AppGroupController.h; sourceTree = "<group>"; };
65D663AC15E5A4FD00C41FEA /* AppGroupController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = AppGroupController.m; sourceTree = "<group>"; };
Expand Down Expand Up @@ -177,8 +177,8 @@
6517C12D15E1563E00135B11 /* DragReceiver.m */,
65D663AF15E5A61800C41FEA /* IconListView.h */,
65D663B015E5A61800C41FEA /* IconListView.m */,
651CDD8615E7939C00461C13 /* AppGroupView.h */,
651CDD8715E7939C00461C13 /* AppGroupView.m */,
651CDD8615E7939C00461C13 /* AppGroupViewNode.h */,
651CDD8715E7939C00461C13 /* AppGroupViewNode.m */,
);
name = views;
sourceTree = "<group>";
Expand Down Expand Up @@ -306,7 +306,7 @@
6517C12E15E1563E00135B11 /* DragReceiver.m in Sources */,
65D663AD15E5A4FD00C41FEA /* AppGroupController.m in Sources */,
65D663B115E5A61800C41FEA /* IconListView.m in Sources */,
651CDD8815E7939C00461C13 /* AppGroupView.m in Sources */,
651CDD8815E7939C00461C13 /* AppGroupViewNode.m in Sources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
Expand Down
24 changes: 0 additions & 24 deletions WorkMode/AppGroupView.h

This file was deleted.

27 changes: 0 additions & 27 deletions WorkMode/AppGroupView.m

This file was deleted.

36 changes: 26 additions & 10 deletions WorkMode/AppGroupView.xib
Expand Up @@ -25,7 +25,7 @@
</object>
<array class="NSMutableArray" key="IBDocument.RootObjects" id="1000">
<object class="NSCustomObject" id="1001">
<string key="NSClassName">AppGroupView</string>
<string key="NSClassName">AppGroupViewNode</string>
</object>
<object class="NSCustomObject" id="1003">
<string key="NSClassName">FirstResponder</string>
Expand All @@ -44,7 +44,6 @@
<string key="NSFrame">{{207, 0}, {400, 50}}</string>
<reference key="NSSuperview" ref="1005"/>
<reference key="NSWindow"/>
<reference key="NSNextKeyView"/>
<string key="NSReuseIdentifierKey">_NS:9</string>
<string key="NSClassName">IconListView</string>
</object>
Expand Down Expand Up @@ -110,6 +109,9 @@
<reference key="NSNextKeyView" ref="639661446"/>
<string key="NSClassName">NSView</string>
</object>
<object class="NSCustomObject" id="443062657">
<string key="NSClassName">AppGroupController</string>
</object>
</array>
<object class="IBObjectContainer" key="IBDocument.Objects">
<array class="NSMutableArray" key="connectionRecords">
Expand All @@ -123,19 +125,27 @@
</object>
<object class="IBConnectionRecord">
<object class="IBOutletConnection" key="connection">
<string key="label">dragReceiver</string>
<string key="label">controller</string>
<reference key="source" ref="1001"/>
<reference key="destination" ref="443062657"/>
</object>
<int key="connectionID">23</int>
</object>
<object class="IBConnectionRecord">
<object class="IBOutletConnection" key="connection">
<string key="label">dragReceiver</string>
<reference key="source" ref="443062657"/>
<reference key="destination" ref="639661446"/>
</object>
<int key="connectionID">18</int>
<int key="connectionID">21</int>
</object>
<object class="IBConnectionRecord">
<object class="IBOutletConnection" key="connection">
<string key="label">iconListView</string>
<reference key="source" ref="1001"/>
<reference key="source" ref="443062657"/>
<reference key="destination" ref="382143532"/>
</object>
<int key="connectionID">19</int>
<int key="connectionID">22</int>
</object>
</array>
<object class="IBMutableOrderedSet" key="objectRecords">
Expand Down Expand Up @@ -199,6 +209,11 @@
<reference key="object" ref="738984857"/>
<reference key="parent" ref="633410383"/>
</object>
<object class="IBObjectRecord">
<int key="objectID">20</int>
<reference key="object" ref="443062657"/>
<reference key="parent" ref="0"/>
</object>
</array>
</object>
<dictionary class="NSMutableDictionary" key="flattenedProperties">
Expand All @@ -207,6 +222,7 @@
<string key="-3.IBPluginDependency">com.apple.InterfaceBuilder.CocoaPlugin</string>
<string key="1.IBPluginDependency">com.apple.InterfaceBuilder.CocoaPlugin</string>
<string key="2.IBPluginDependency">com.apple.InterfaceBuilder.CocoaPlugin</string>
<string key="20.IBPluginDependency">com.apple.InterfaceBuilder.CocoaPlugin</string>
<string key="3.IBPluginDependency">com.apple.InterfaceBuilder.CocoaPlugin</string>
<string key="4.IBPluginDependency">com.apple.InterfaceBuilder.CocoaPlugin</string>
<string key="5.IBPluginDependency">com.apple.InterfaceBuilder.CocoaPlugin</string>
Expand All @@ -215,7 +231,7 @@
<nil key="activeLocalization"/>
<dictionary class="NSMutableDictionary" key="localizations"/>
<nil key="sourceID"/>
<int key="maxID">19</int>
<int key="maxID">23</int>
</object>
<object class="IBClassDescriber" key="IBDocument.Classes">
<array class="NSMutableArray" key="referencedPartialClassDescriptions">
Expand All @@ -242,8 +258,8 @@
</object>
</object>
<object class="IBPartialClassDescription">
<string key="className">AppGroupView</string>
<string key="superclassName">NSView</string>
<string key="className">AppGroupViewNode</string>
<string key="superclassName">NSObject</string>
<dictionary class="NSMutableDictionary" key="outlets">
<string key="dragReceiver">DragReceiver</string>
<string key="iconListView">IconListView</string>
Expand All @@ -265,7 +281,7 @@
</dictionary>
<object class="IBClassDescriptionSource" key="sourceIdentifier">
<string key="majorKey">IBProjectSource</string>
<string key="minorKey">./Classes/AppGroupView.h</string>
<string key="minorKey">./Classes/AppGroupViewNode.h</string>
</object>
</object>
<object class="IBPartialClassDescription">
Expand Down
21 changes: 21 additions & 0 deletions WorkMode/AppGroupViewNode.h
@@ -0,0 +1,21 @@
//
// AppGroupView.h
// WorkMode
//
// Created by Daniel Higginbotham on 8/24/12.
// Copyright (c) 2012 Daniel Higginbotham. All rights reserved.
//

#import <Cocoa/Cocoa.h>

@class DragReceiver;

@interface AppGroupViewNode : NSObject
{
IBOutlet NSView* rootView;
IBOutlet AppGroupController* controller;
}

-(void)loadUIFromNib;

@end
19 changes: 19 additions & 0 deletions WorkMode/AppGroupViewNode.m
@@ -0,0 +1,19 @@
//
// AppGroupView.m
// WorkMode
//
// Created by Daniel Higginbotham on 8/24/12.
// Copyright (c) 2012 Daniel Higginbotham. All rights reserved.
//

#import "AppGroupViewNode.h"


@implementation AppGroupViewNode

- (void)loadUIFromNib
{
[NSBundle loadNibNamed:@"AppGroupView" owner:self];
}

@end

0 comments on commit 71835b8

Please sign in to comment.