Commits

Mike Abdullah  committed 2daa0e1

Splitting out generic BWViewController

  • Participants
  • Parent commits 983f550

Comments (0)

Files changed (4)

File BWTabViewController.h

 //  Copyright 2009 Karelia Software. All rights reserved.
 //
 
-#import <Cocoa/Cocoa.h>
+#import "BWViewController.h"
 
 
 /*! A neat way to intelligently associate an array of view controllers with the items of an NSTabView.
 #endif
 
 
-@interface BWTabViewController : NSViewController <NSTabViewDelegate, NSCoding>
+@interface BWTabViewController : BWViewController <NSTabViewDelegate, NSCoding>
 {
   @private
     NSString        *_identifier;

File BWToolkit.xcodeproj/project.pbxproj

 		27021FAC11A5477300E77AD7 /* BWIWorkPopUpButton.m in Sources */ = {isa = PBXBuildFile; fileRef = 27021FAA11A5477300E77AD7 /* BWIWorkPopUpButton.m */; };
 		27021FE011A54B2800E77AD7 /* BWToolbarPullDownItem.h in Headers */ = {isa = PBXBuildFile; fileRef = 27021FDE11A54B2800E77AD7 /* BWToolbarPullDownItem.h */; settings = {ATTRIBUTES = (Public, ); }; };
 		27021FE111A54B2800E77AD7 /* BWToolbarPullDownItem.m in Sources */ = {isa = PBXBuildFile; fileRef = 27021FDF11A54B2800E77AD7 /* BWToolbarPullDownItem.m */; };
+		2746D2E511DF551F008B6794 /* BWViewController.h in Headers */ = {isa = PBXBuildFile; fileRef = 2746D2E411DF551F008B6794 /* BWViewController.h */; settings = {ATTRIBUTES = (Public, ); }; };
+		2746D2E711DF551F008B6794 /* BWViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 2746D2E611DF551F008B6794 /* BWViewController.m */; };
 		276E2795112CC3C700F58850 /* BWTabViewController.classdescription in Resources */ = {isa = PBXBuildFile; fileRef = 276E2794112CC3C700F58850 /* BWTabViewController.classdescription */; };
 		27AEE321112B4A9300C2648F /* BWTabViewController.h in Headers */ = {isa = PBXBuildFile; fileRef = 27AEE31A112B4A6400C2648F /* BWTabViewController.h */; settings = {ATTRIBUTES = (Public, ); }; };
 		27AEE322112B4A9300C2648F /* BWTabViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 27AEE31B112B4A6400C2648F /* BWTabViewController.m */; };
 		27021FAA11A5477300E77AD7 /* BWIWorkPopUpButton.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = BWIWorkPopUpButton.m; sourceTree = "<group>"; };
 		27021FDE11A54B2800E77AD7 /* BWToolbarPullDownItem.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = BWToolbarPullDownItem.h; sourceTree = "<group>"; };
 		27021FDF11A54B2800E77AD7 /* BWToolbarPullDownItem.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = BWToolbarPullDownItem.m; sourceTree = "<group>"; };
+		2746D2E411DF551F008B6794 /* BWViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = BWViewController.h; sourceTree = "<group>"; };
+		2746D2E611DF551F008B6794 /* BWViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = BWViewController.m; sourceTree = "<group>"; };
 		276E2794112CC3C700F58850 /* BWTabViewController.classdescription */ = {isa = PBXFileReference; explicitFileType = text; fileEncoding = 4; path = BWTabViewController.classdescription; sourceTree = "<group>"; };
 		27AEE31A112B4A6400C2648F /* BWTabViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = BWTabViewController.h; sourceTree = "<group>"; };
 		27AEE31B112B4A6400C2648F /* BWTabViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = BWTabViewController.m; sourceTree = "<group>"; };
 			name = Products;
 			sourceTree = "<group>";
 		};
-		27AEE319112B4A1100C2648F /* TabView Controller */ = {
+		27AEE319112B4A1100C2648F /* View Controllers */ = {
 			isa = PBXGroup;
 			children = (
 				27AEE31A112B4A6400C2648F /* BWTabViewController.h */,
 				27AEE31B112B4A6400C2648F /* BWTabViewController.m */,
+				2746D2E411DF551F008B6794 /* BWViewController.h */,
+				2746D2E611DF551F008B6794 /* BWViewController.m */,
 			);
-			name = "TabView Controller";
+			name = "View Controllers";
 			sourceTree = "<group>";
 		};
 		2E58F364FFB232C311CA0CBA /* Frameworks */ = {
 				CA630AB70DC7F95D00AD7F9E /* Split View */,
 				CA630AB40DC7F94000AD7F9E /* Textured Slider */,
 				CAA2CC730F80B82E00E70572 /* Hyperlink Button */,
-				27AEE319112B4A1100C2648F /* TabView Controller */,
+				27AEE319112B4A1100C2648F /* View Controllers */,
 			);
 			name = Classes;
 			sourceTree = "<group>";
 				27AEE321112B4A9300C2648F /* BWTabViewController.h in Headers */,
 				27021FAB11A5477300E77AD7 /* BWIWorkPopUpButton.h in Headers */,
 				27021FE011A54B2800E77AD7 /* BWToolbarPullDownItem.h in Headers */,
+				2746D2E511DF551F008B6794 /* BWViewController.h in Headers */,
 			);
 			runOnlyForDeploymentPostprocessing = 0;
 		};
 				27AEE322112B4A9300C2648F /* BWTabViewController.m in Sources */,
 				27021FAC11A5477300E77AD7 /* BWIWorkPopUpButton.m in Sources */,
 				27021FE111A54B2800E77AD7 /* BWToolbarPullDownItem.m in Sources */,
+				2746D2E711DF551F008B6794 /* BWViewController.m in Sources */,
 			);
 			runOnlyForDeploymentPostprocessing = 0;
 		};

File BWViewController.h

+//
+//  BWViewController.h
+//  BWToolkit
+//
+//  Created by Mike on 03/07/2010.
+//  Copyright 2010 Karelia Software. All rights reserved.
+//
+
+#import <Cocoa/Cocoa.h>
+
+
+@interface BWViewController : NSViewController {
+
+}
+
+@end

File BWViewController.m

+//
+//  BWViewController.m
+//  BWToolkit
+//
+//  Created by Mike on 03/07/2010.
+//  Copyright 2010 Karelia Software. All rights reserved.
+//
+
+#import "BWViewController.h"
+
+
+@implementation BWViewController
+
+@end