[73279] users/ryandesign/PCLauncher
ryandesign at macports.org
ryandesign at macports.org
Mon Nov 8 21:34:23 PST 2010
Revision: 73279
http://trac.macports.org/changeset/73279
Author: ryandesign at macports.org
Date: 2010-11-08 21:34:20 -0800 (Mon, 08 Nov 2010)
Log Message:
-----------
Don't use for ... in because this is an Objective-C 2.0 feature which is not available on Tiger
Modified Paths:
--------------
users/ryandesign/PCLauncher/LoginWindowController.m
users/ryandesign/PCLauncher/PreferencesWindowController.mm
Modified: users/ryandesign/PCLauncher/LoginWindowController.m
===================================================================
--- users/ryandesign/PCLauncher/LoginWindowController.m 2010-11-09 04:57:46 UTC (rev 73278)
+++ users/ryandesign/PCLauncher/LoginWindowController.m 2010-11-09 05:34:20 UTC (rev 73279)
@@ -77,8 +77,8 @@
Server *server;
NSMenuItem *menuItem;
NSString *defaultServer = [[NSUserDefaults standardUserDefaults] stringForKey:@"server"];
- for (NSString *serverFile in serverFiles) {
- server = [[Server alloc] initWithIniFilename:[serversDirectory stringByAppendingPathComponent:serverFile]];
+ for (int i = 0; i < [serverFiles count]; i++) {
+ server = [[Server alloc] initWithIniFilename:[serversDirectory stringByAppendingPathComponent:[serverFiles objectAtIndex:i]]];
menuItem = [[NSMenuItem alloc] initWithTitle:[server displayName] action:@selector(serverMenuChanged:) keyEquivalent:@""];
[menuItem setTarget:self];
[[serverMenu menu] addItem:menuItem];
Modified: users/ryandesign/PCLauncher/PreferencesWindowController.mm
===================================================================
--- users/ryandesign/PCLauncher/PreferencesWindowController.mm 2010-11-09 04:57:46 UTC (rev 73278)
+++ users/ryandesign/PCLauncher/PreferencesWindowController.mm 2010-11-09 05:34:20 UTC (rev 73279)
@@ -98,7 +98,9 @@
*/
NSArray *keys = [graphicsSettings allKeys];
NSString *line;
- for (NSString *key in keys) {
+ NSString *key;
+ for (int i = 0; i < [keys count]; i++) {
+ key = [keys objectAtIndex:i];
line = [NSString stringWithFormat:@"%@ %@\n", key, [graphicsSettings objectForKey:key]];
stream.write([line lengthOfBytesUsingEncoding:NSUTF8StringEncoding], [line UTF8String]);
}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20101108/c9298ae6/attachment.html>
More information about the macports-changes
mailing list