// // Perforce_ServerConfig.h // Perforce Server // // Created by Mike Ashmore on 3/3/10. // Copyright 2010 Mike Ashmore. All rights reserved. // #import <Cocoa/Cocoa.h> @interface Perforce_ServerConfig : NSUserDefaultsController { AuthorizationRef auth; IBOutlet NSUserDefaultsController *defaultsController; NSString *p4rootPath; NSString *p4logPath; NSNumber *p4port; } - (void) startServer; - (void) stopServer; - (NSDictionary *) launchdPrefList; - (BOOL) isRunning; @property (retain) NSString *p4rootPath; @property (retain) NSString *p4logPath; @property (retain) NSNumber *p4port; @end
# | Change | User | Description | Committed | |
---|---|---|---|---|---|
#3 | 7595 | Mike Ashmore |
Now displays the values we're setting for P4ROOT, P4LOG, and P4PORT. These values are not, as yet, configurable. If I worked for Perforce, I would have a substantial incentive to improve this state of affairs. |
||
#2 | 7594 | Mike Ashmore |
Now correctly reflect status of server: running vs. not running. Note: OS X's authorization services make it really really hard to handle the installation of launchd services in a genuinely secure manner. You have to create a helper app to run with elevated privileges, then send commands to it via IPC and ... well, it's all just a bit much for me to figure out for a tool that was intended to be a quick one-off. Perhaps if I were employed by Perforce I could be troubled to do it the "right" way. Supposedly the ServiceManagement framework makes this all less painful, but it's an API that's brand-new in OS X 10.6 and not terribly well documented yet. And in any case, 10.6 still has not seen widespread enough adoption to justify using a 10.6-only framework. |
||
#1 | 7588 | Mike Ashmore |
This preference pane will make installation of p4d on OS X much simpler. Perhaps after some refinement it'll be worthy of packaging and letting Perforce Inc. distribute directly. |