[73252] users/ryandesign/PCLauncher

ryandesign at macports.org ryandesign at macports.org
Sun Nov 7 16:05:14 PST 2010


Revision: 73252
          http://trac.macports.org/changeset/73252
Author:   ryandesign at macports.org
Date:     2010-11-07 16:05:10 -0800 (Sun, 07 Nov 2010)
Log Message:
-----------
Don't use @property and @synthesize because these are Objective-C 2.0 features which is not available on Tiger

Modified Paths:
--------------
    users/ryandesign/PCLauncher/LoginWindowController.h
    users/ryandesign/PCLauncher/LoginWindowController.m
    users/ryandesign/PCLauncher/PCLauncherAppDelegate.h
    users/ryandesign/PCLauncher/PCLauncherAppDelegate.m
    users/ryandesign/PCLauncher/Server.h
    users/ryandesign/PCLauncher/Server.mm

Modified: users/ryandesign/PCLauncher/LoginWindowController.h
===================================================================
--- users/ryandesign/PCLauncher/LoginWindowController.h	2010-11-07 23:35:31 UTC (rev 73251)
+++ users/ryandesign/PCLauncher/LoginWindowController.h	2010-11-08 00:05:10 UTC (rev 73252)
@@ -38,7 +38,7 @@
 	IBOutlet id progressBar;
 	IBOutlet id cancelButton;
 	
-	PreferencesWindowController *preferencesWindowController;
+	IBOutlet id preferencesWindowController;
 
 	int step;
 	NSMutableArray *servers;
@@ -55,8 +55,6 @@
 	BOOL cancelled;
 }
 
- at property (assign) IBOutlet PreferencesWindowController *preferencesWindowController;
-
 - (void)loadRandomBanner;
 - (void)populateServerMenu;
 - (void)loadCurrentServerInfo;

Modified: users/ryandesign/PCLauncher/LoginWindowController.m
===================================================================
--- users/ryandesign/PCLauncher/LoginWindowController.m	2010-11-07 23:35:31 UTC (rev 73251)
+++ users/ryandesign/PCLauncher/LoginWindowController.m	2010-11-08 00:05:10 UTC (rev 73252)
@@ -9,8 +9,6 @@
 
 @implementation LoginWindowController
 
- at synthesize preferencesWindowController;
-
 enum {
 	kStepIdle,
 	kStepAuthenticating,

Modified: users/ryandesign/PCLauncher/PCLauncherAppDelegate.h
===================================================================
--- users/ryandesign/PCLauncher/PCLauncherAppDelegate.h	2010-11-07 23:35:31 UTC (rev 73251)
+++ users/ryandesign/PCLauncher/PCLauncherAppDelegate.h	2010-11-08 00:05:10 UTC (rev 73252)
@@ -11,11 +11,8 @@
 #import "PreferencesWindowController.h"
 
 @interface PCLauncherAppDelegate : NSObject {
-    NSWindow *loginWindow;
-	PreferencesWindowController *preferencesWindowController;
+	IBOutlet id loginWindow;
+	IBOutlet id preferencesWindowController;
 }
 
- at property (assign) IBOutlet NSWindow *loginWindow;
- at property (assign) IBOutlet PreferencesWindowController *preferencesWindowController;
-
 @end

Modified: users/ryandesign/PCLauncher/PCLauncherAppDelegate.m
===================================================================
--- users/ryandesign/PCLauncher/PCLauncherAppDelegate.m	2010-11-07 23:35:31 UTC (rev 73251)
+++ users/ryandesign/PCLauncher/PCLauncherAppDelegate.m	2010-11-08 00:05:10 UTC (rev 73252)
@@ -10,9 +10,6 @@
 
 @implementation PCLauncherAppDelegate
 
- at synthesize loginWindow;
- at synthesize preferencesWindowController;
-
 - (void)applicationDidFinishLaunching:(NSNotification *)notification {
 	[loginWindow makeKeyAndOrderFront:self];
 }

Modified: users/ryandesign/PCLauncher/Server.h
===================================================================
--- users/ryandesign/PCLauncher/Server.h	2010-11-07 23:35:31 UTC (rev 73251)
+++ users/ryandesign/PCLauncher/Server.h	2010-11-08 00:05:10 UTC (rev 73252)
@@ -28,9 +28,8 @@
 - (void)openCreateAccountUrl;
 - (BOOL)isDefaultServer;
 
- at property (readonly, assign) NSString *serverIniFilename;
- at property (readonly, assign) NSString *internalName;
- at property (readonly, assign) NSString *displayName;
- at property (readonly, assign) NSString *createAccountUrl;
+- (NSString *)internalName;
+- (NSString *)displayName;
+- (NSString *)createAccountUrl;
 
 @end

Modified: users/ryandesign/PCLauncher/Server.mm
===================================================================
--- users/ryandesign/PCLauncher/Server.mm	2010-11-07 23:35:31 UTC (rev 73251)
+++ users/ryandesign/PCLauncher/Server.mm	2010-11-08 00:05:10 UTC (rev 73252)
@@ -13,11 +13,6 @@
 
 @implementation Server
 
- at synthesize serverIniFilename;
- at synthesize internalName;
- at synthesize displayName;
- at synthesize createAccountUrl;
-
 - (id)initWithIniFilename:(NSString *)filename {
 	self = [super init];
 	if (self) {
@@ -106,6 +101,18 @@
 	return [internalName isEqualToString:@"default"];
 }
 
+- (NSString *)internalName {
+	return internalName;
+}
+
+- (NSString *)displayName {
+	return displayName;
+}
+
+- (NSString *)createAccountUrl {
+	return createAccountUrl;
+}
+
 - (void)dealloc {
 	[serverIniFilename release];
 	[internalName release];
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20101107/0d0d6291/attachment.html>


More information about the macports-changes mailing list