Skip to content
This repository has been archived by the owner on Oct 9, 2018. It is now read-only.

Commit

Permalink
Fixed chicken and egg bug wherein network preferences cannot be chang…
Browse files Browse the repository at this point in the history
…ed unless they're already been set (ticket #1)
  • Loading branch information
davidcox committed Oct 29, 2010
1 parent 3815be0 commit 67db1a0
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 0 deletions.
7 changes: 7 additions & 0 deletions MWServer.xcodeproj/project.pbxproj
Expand Up @@ -276,7 +276,14 @@
isa = PBXProject;
buildConfigurationList = C01FCF4E08A954540054247B /* Build configuration list for PBXProject "MWServer" */;
compatibilityVersion = "Xcode 2.4";
developmentRegion = English;
hasScannedForEncodings = 1;
knownRegions = (
English,
Japanese,
French,
German,
);
mainGroup = 29B97314FDCFA39411CA2CEA /* MWorksServer */;
projectDirPath = "";
projectRoot = "";
Expand Down
7 changes: 7 additions & 0 deletions MWServer_Prefix.pch
@@ -0,0 +1,7 @@
//
// Prefix header for all source files of the 'MWorksServer' target in the 'MWorksServer' project
//

#ifdef __OBJC__
#import <Cocoa/Cocoa.h>
#endif
5 changes: 5 additions & 0 deletions Source/MWSServer.m
Expand Up @@ -299,6 +299,10 @@ - (void)openNetworkPreferences:(id)sender {
}

- (NSString *)currentNetworkAddress:(id)sender {
if(listeningAddress == Nil){
return DEFAULT_HOST_IP;
}

return listeningAddress;
}

Expand All @@ -308,6 +312,7 @@ - (NSString *)defaultNetworkAddress:(id)sender {

if(defaultAddress == nil) {
defaultAddress = DEFAULT_HOST_IP;
[self setListeningAddress:defaultAddress];
}

return defaultAddress;
Expand Down

0 comments on commit 67db1a0

Please sign in to comment.