aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPUserManager.h
diff options
context:
space:
mode:
authorstuconnolly <stuart02@gmail.com>2010-03-09 15:25:36 +0000
committerstuconnolly <stuart02@gmail.com>2010-03-09 15:25:36 +0000
commit2e77b3e6b1064403c8518d4c6bae6be8a7cdd3de (patch)
tree09a1bdac4daddb818a590b684a320bc9b529d064 /Source/SPUserManager.h
parent6560b2e188308d41d16c1e5d8c5b3bc05dbae8fe (diff)
downloadsequelpro-2e77b3e6b1064403c8518d4c6bae6be8a7cdd3de.tar.gz
sequelpro-2e77b3e6b1064403c8518d4c6bae6be8a7cdd3de.tar.bz2
sequelpro-2e77b3e6b1064403c8518d4c6bae6be8a7cdd3de.zip
Fix an exception in the user manager caused by sorting the users list by making the user manager KVO compliant for the sort descriptors array. Also, add a bunch of comments and general tidy up on SPUserManager.m.
Diffstat (limited to 'Source/SPUserManager.h')
-rw-r--r--Source/SPUserManager.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/Source/SPUserManager.h b/Source/SPUserManager.h
index 0bcc82bd..86c19664 100644
--- a/Source/SPUserManager.h
+++ b/Source/SPUserManager.h
@@ -55,10 +55,13 @@
IBOutlet NSTextField *userNameTextField;
IBOutlet BWAnchoredButtonBar *splitViewButtonBar;
-
+
NSMutableArray *schemas;
NSMutableArray *grantedSchemaPrivs;
NSMutableArray *availablePrivs;
+
+ NSArray *treeSortDescriptors;
+ NSSortDescriptor *treeSortDescriptor;
}
@property (nonatomic, retain) MCPConnection *mySqlConnection;
@@ -67,6 +70,7 @@
@property (nonatomic, retain, readonly) NSManagedObjectContext *managedObjectContext;
@property (nonatomic, retain) NSMutableDictionary *privsSupportedByServer;
+@property (nonatomic, retain) NSArray *treeSortDescriptors;
@property (nonatomic, retain) NSMutableArray *schemas;
@property (nonatomic, retain) NSMutableArray *grantedSchemaPrivs;
@property (nonatomic, retain) NSMutableArray *availablePrivs;
@@ -99,6 +103,4 @@
- (BOOL)grantPrivilegesToUser:(NSManagedObject *)user;
- (BOOL)grantDbPrivilegesWithPrivilege:(NSManagedObject *)user;
-- (NSArray *)treeSortDescriptors;
-
@end