|
From: <haw...@us...> - 2009-01-08 22:14:06
|
Revision: 222
http://pgsqlformac.svn.sourceforge.net/pgsqlformac/?rev=222&view=rev
Author: hawkmoon
Date: 2009-01-08 21:51:42 +0000 (Thu, 08 Jan 2009)
Log Message:
-----------
Reworked File Names to reduce clutter
Modified Paths:
--------------
trunk/PreferencePane/PostgreSQL Server/Utilities/PostgreSQL Network Configuration/PGHBAFile.h
trunk/PreferencePane/PostgreSQL Server/Utilities/PostgreSQL Network Configuration/PostgreSQL Network Configuration.xcodeproj/project.pbxproj
Added Paths:
-----------
trunk/PreferencePane/PostgreSQL Server/Utilities/PostgreSQL Network Configuration/PGHBAConnections.h
trunk/PreferencePane/PostgreSQL Server/Utilities/PostgreSQL Network Configuration/PGHBAConnections.m
Removed Paths:
-------------
trunk/PreferencePane/PostgreSQL Server/Utilities/PostgreSQL Network Configuration/PGHBALocalConnections.h
trunk/PreferencePane/PostgreSQL Server/Utilities/PostgreSQL Network Configuration/PGHBALocalConnections.m
Added: trunk/PreferencePane/PostgreSQL Server/Utilities/PostgreSQL Network Configuration/PGHBAConnections.h
===================================================================
--- trunk/PreferencePane/PostgreSQL Server/Utilities/PostgreSQL Network Configuration/PGHBAConnections.h (rev 0)
+++ trunk/PreferencePane/PostgreSQL Server/Utilities/PostgreSQL Network Configuration/PGHBAConnections.h 2009-01-08 21:51:42 UTC (rev 222)
@@ -0,0 +1,16 @@
+//
+// PGHBAConnections.h
+// PostgreSQL Network Configuration
+//
+// Created by Andy Satori on 1/8/09.
+// Copyright 2009 Druware Software Designs. All rights reserved.
+//
+
+#import <Cocoa/Cocoa.h>
+
+
+@interface PGHBAConnections : NSMutableArray {
+
+}
+
+@end
Added: trunk/PreferencePane/PostgreSQL Server/Utilities/PostgreSQL Network Configuration/PGHBAConnections.m
===================================================================
--- trunk/PreferencePane/PostgreSQL Server/Utilities/PostgreSQL Network Configuration/PGHBAConnections.m (rev 0)
+++ trunk/PreferencePane/PostgreSQL Server/Utilities/PostgreSQL Network Configuration/PGHBAConnections.m 2009-01-08 21:51:42 UTC (rev 222)
@@ -0,0 +1,57 @@
+//
+// PGHBAConnections.m
+// PostgreSQL Network Configuration
+//
+// Created by Andy Satori on 1/8/09.
+// Copyright 2009 __MyCompanyName__. All rights reserved.
+//
+
+#import "PGHBALocalConnections.h"
+
+
+@implementation PGHBAConnections
+
+-(id)init
+{
+ self = [super init];
+
+ if (self != nil) {
+ // perform custom implementation details (if required)
+
+ }
+
+ return self;
+}
+
+// table view data source methods
+
+- (int)numberOfRowsInTableView:(NSTableView *)aTableView
+{
+ return [self count];
+}
+
+- (id)tableView:(NSTableView *)aTableView
+ objectValueForTableColumn:(NSTableColumn *)aTableColumn
+ row:(int)rowIndex
+{
+ NSString *ident = [aTableColumn identifier];
+ NSMutableDictionary *anItem = [self objectAtIndex:rowIndex];
+ return [anItem valueForKey:ident];
+}
+
+- (void)tableView:(NSTableView *)aTableView
+ setObjectValue:(id)anObject
+ forTableColumn:(NSTableColumn *)aTableColumn
+ row:(NSInteger)rowIndex
+{
+ // NSString *ident = [aTableColumn identifier];
+ NSMutableDictionary *anItem = [self objectAtIndex:rowIndex];
+
+ if ([[aTableColumn identifier] compare:@"isKey"] == NSOrderedSame)
+ {
+ [anItem setValue:anObject forKey:@"isKey"];
+ }
+
+}
+
+@end
Modified: trunk/PreferencePane/PostgreSQL Server/Utilities/PostgreSQL Network Configuration/PGHBAFile.h
===================================================================
--- trunk/PreferencePane/PostgreSQL Server/Utilities/PostgreSQL Network Configuration/PGHBAFile.h 2009-01-08 21:37:27 UTC (rev 221)
+++ trunk/PreferencePane/PostgreSQL Server/Utilities/PostgreSQL Network Configuration/PGHBAFile.h 2009-01-08 21:51:42 UTC (rev 222)
@@ -7,6 +7,7 @@
//
#import <Cocoa/Cocoa.h>
+#import "PGHBAConnections.h"
@interface PGHBAFile : NSObject {
@@ -14,9 +15,9 @@
NSMutableString *rawSourceData;
NSMutableArray *comments; // each array contains a line number and the data.
- NSMutableArray *localConnections;
- NSMutableArray *ipv4Connections;
- NSMutableArray *ipv6Connections;
+ PGHBAConnections *localConnections;
+ PGHBAConnections *ipv4Connections;
+ PGHBAConnections *ipv6Connections;
}
-(id)initWithContentsOfFile:(NSString *)file;
Deleted: trunk/PreferencePane/PostgreSQL Server/Utilities/PostgreSQL Network Configuration/PGHBALocalConnections.h
===================================================================
--- trunk/PreferencePane/PostgreSQL Server/Utilities/PostgreSQL Network Configuration/PGHBALocalConnections.h 2009-01-08 21:37:27 UTC (rev 221)
+++ trunk/PreferencePane/PostgreSQL Server/Utilities/PostgreSQL Network Configuration/PGHBALocalConnections.h 2009-01-08 21:51:42 UTC (rev 222)
@@ -1,16 +0,0 @@
-//
-// PGHBALocalConnections.h
-// PostgreSQL Network Configuration
-//
-// Created by Andy Satori on 1/8/09.
-// Copyright 2009 Druware Software Designs. All rights reserved.
-//
-
-#import <Cocoa/Cocoa.h>
-
-
-@interface PGHBALocalConnections : NSObject {
-
-}
-
-@end
Deleted: trunk/PreferencePane/PostgreSQL Server/Utilities/PostgreSQL Network Configuration/PGHBALocalConnections.m
===================================================================
--- trunk/PreferencePane/PostgreSQL Server/Utilities/PostgreSQL Network Configuration/PGHBALocalConnections.m 2009-01-08 21:37:27 UTC (rev 221)
+++ trunk/PreferencePane/PostgreSQL Server/Utilities/PostgreSQL Network Configuration/PGHBALocalConnections.m 2009-01-08 21:51:42 UTC (rev 222)
@@ -1,14 +0,0 @@
-//
-// PGHBALocalConnections.m
-// PostgreSQL Network Configuration
-//
-// Created by Andy Satori on 1/8/09.
-// Copyright 2009 __MyCompanyName__. All rights reserved.
-//
-
-#import "PGHBALocalConnections.h"
-
-
-@implementation PGHBALocalConnections
-
-@end
Modified: trunk/PreferencePane/PostgreSQL Server/Utilities/PostgreSQL Network Configuration/PostgreSQL Network Configuration.xcodeproj/project.pbxproj
===================================================================
--- trunk/PreferencePane/PostgreSQL Server/Utilities/PostgreSQL Network Configuration/PostgreSQL Network Configuration.xcodeproj/project.pbxproj 2009-01-08 21:37:27 UTC (rev 221)
+++ trunk/PreferencePane/PostgreSQL Server/Utilities/PostgreSQL Network Configuration/PostgreSQL Network Configuration.xcodeproj/project.pbxproj 2009-01-08 21:51:42 UTC (rev 222)
@@ -12,7 +12,7 @@
43AB48850EFC385400F6DC7B /* StartupHelper in Resources */ = {isa = PBXBuildFile; fileRef = 43AB48840EFC385400F6DC7B /* StartupHelper */; };
43DB841B0ECCEEEF00EAB6B6 /* PGNCController.m in Sources */ = {isa = PBXBuildFile; fileRef = 43DB841A0ECCEEEF00EAB6B6 /* PGNCController.m */; };
43DB84200ECCEF0900EAB6B6 /* PGHBAFile.m in Sources */ = {isa = PBXBuildFile; fileRef = 43DB841F0ECCEF0900EAB6B6 /* PGHBAFile.m */; };
- 43EC94550F15CC7A00BC02DB /* PGHBALocalConnections.m in Sources */ = {isa = PBXBuildFile; fileRef = 43EC94540F15CC7A00BC02DB /* PGHBALocalConnections.m */; };
+ 43EC94550F15CC7A00BC02DB /* PGHBAConnections.m in Sources */ = {isa = PBXBuildFile; fileRef = 43EC94540F15CC7A00BC02DB /* PGHBAConnections.m */; };
8D11072B0486CEB800E47090 /* InfoPlist.strings in Resources */ = {isa = PBXBuildFile; fileRef = 089C165CFE840E0CC02AAC07 /* InfoPlist.strings */; };
8D11072D0486CEB800E47090 /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 29B97316FDCFA39411CA2CEA /* main.m */; settings = {ATTRIBUTES = (); }; };
8D11072F0486CEB800E47090 /* Cocoa.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 1058C7A1FEA54F0111CA2CBB /* Cocoa.framework */; };
@@ -32,8 +32,8 @@
43DB841A0ECCEEEF00EAB6B6 /* PGNCController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = PGNCController.m; sourceTree = "<group>"; };
43DB841E0ECCEF0900EAB6B6 /* PGHBAFile.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = PGHBAFile.h; sourceTree = "<group>"; };
43DB841F0ECCEF0900EAB6B6 /* PGHBAFile.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = PGHBAFile.m; sourceTree = "<group>"; };
- 43EC94530F15CC7A00BC02DB /* PGHBALocalConnections.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = PGHBALocalConnections.h; sourceTree = "<group>"; };
- 43EC94540F15CC7A00BC02DB /* PGHBALocalConnections.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = PGHBALocalConnections.m; sourceTree = "<group>"; };
+ 43EC94530F15CC7A00BC02DB /* PGHBAConnections.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = PGHBAConnections.h; sourceTree = "<group>"; };
+ 43EC94540F15CC7A00BC02DB /* PGHBAConnections.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = PGHBAConnections.m; sourceTree = "<group>"; };
8D1107310486CEB800E47090 /* Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
8D1107320486CEB800E47090 /* PostgreSQL Network Configuration.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = "PostgreSQL Network Configuration.app"; sourceTree = BUILT_PRODUCTS_DIR; };
/* End PBXFileReference section */
@@ -58,8 +58,8 @@
43DB841F0ECCEF0900EAB6B6 /* PGHBAFile.m */,
43DB84190ECCEEEF00EAB6B6 /* PGNCController.h */,
43DB841A0ECCEEEF00EAB6B6 /* PGNCController.m */,
- 43EC94530F15CC7A00BC02DB /* PGHBALocalConnections.h */,
- 43EC94540F15CC7A00BC02DB /* PGHBALocalConnections.m */,
+ 43EC94530F15CC7A00BC02DB /* PGHBAConnections.h */,
+ 43EC94540F15CC7A00BC02DB /* PGHBAConnections.m */,
);
name = Classes;
sourceTree = "<group>";
@@ -190,7 +190,7 @@
8D11072D0486CEB800E47090 /* main.m in Sources */,
43DB841B0ECCEEEF00EAB6B6 /* PGNCController.m in Sources */,
43DB84200ECCEF0900EAB6B6 /* PGHBAFile.m in Sources */,
- 43EC94550F15CC7A00BC02DB /* PGHBALocalConnections.m in Sources */,
+ 43EC94550F15CC7A00BC02DB /* PGHBAConnections.m in Sources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|