Skip to content

Commit

Permalink
Updated for OS X 10.7 Lion
Browse files Browse the repository at this point in the history
Updated project to Xcode 4.3 standards.
Corrected/removed invalid element scaling property references (or reset
to the default values).
Corrected/removed deprecated member references throughout.
Corrected/removed deprecated method references (mostly relating to
NSOpenPanel).
Rewrote inRangeScriptChange and outOfRangeScriptChange to function in
lieu of deprecated methods.
  • Loading branch information
FluxAugur committed Jul 9, 2012
1 parent d984e0b commit 80bb8c1
Show file tree
Hide file tree
Showing 9 changed files with 480 additions and 165 deletions.
36 changes: 25 additions & 11 deletions AppController.m
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ - (void)userDefaultsLoad
device = [NSKeyedUnarchiver unarchiveObjectWithData:deviceAsData];
[device retain];
[deviceName setStringValue:[NSString stringWithFormat:@"%@ (%@)",
[device getName], [device getAddressString]]];
[device name], [device addressString]]];

if( [self isInRange] )
{
Expand Down Expand Up @@ -306,8 +306,8 @@ - (IBAction)changeDevice:(id)sender
[device retain];

[deviceName setStringValue:[NSString stringWithFormat:@"%@ (%@)",
[device getName],
[device getAddressString]]];
[device name],
[device addressString]]];
}

- (IBAction)checkConnectivity:(id)sender
Expand Down Expand Up @@ -355,10 +355,17 @@ - (IBAction)enableMonitoring:(id)sender
- (IBAction)inRangeScriptChange:(id)sender
{
NSOpenPanel *op = [NSOpenPanel openPanel];
[op runModalForDirectory:@"~" file:nil types:[NSArray arrayWithObject:@"scpt"]];

NSArray *filenames = [op filenames];
[inRangeScriptPath setStringValue:[filenames objectAtIndex:0]];

NSArray *fileTypesArray;
fileTypesArray = [NSArray arrayWithObjects:@"scpt", nil];

[op setCanChooseFiles:YES];
[op setAllowedFileTypes:fileTypesArray];

if ( [op runModal] == NSOKButton ) {
NSArray *filenames = [op URLs];
[inRangeScriptPath setStringValue:[[filenames objectAtIndex:0] path]];
}
}

- (IBAction)inRangeScriptClear:(id)sender
Expand All @@ -374,10 +381,17 @@ - (IBAction)inRangeScriptTest:(id)sender
- (IBAction)outOfRangeScriptChange:(id)sender
{
NSOpenPanel *op = [NSOpenPanel openPanel];
[op runModalForDirectory:@"~" file:nil types:[NSArray arrayWithObject:@"scpt"]];

NSArray *filenames = [op filenames];
[outOfRangeScriptPath setStringValue:[filenames objectAtIndex:0]];

NSArray *fileTypesArray;
fileTypesArray = [NSArray arrayWithObjects:@"scpt", nil];

[op setCanChooseFiles:YES];
[op setAllowedFileTypes:fileTypesArray];

if ( [op runModal] == NSOKButton ) {
NSArray *filenames = [op URLs];
[outOfRangeScriptPath setStringValue:[[filenames objectAtIndex:0] path]];
}
}

- (IBAction)outOfRangeScriptClear:(id)sender
Expand Down
427 changes: 291 additions & 136 deletions English.lproj/MainMenu.xib

Large diffs are not rendered by default.

18 changes: 10 additions & 8 deletions Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -6,29 +6,31 @@
<string>English</string>
<key>CFBundleExecutable</key>
<string>${EXECUTABLE_NAME}</string>
<key>CFBundleGetInfoString</key>
<string>1.5</string>
<key>CFBundleIconFile</key>
<string>AppIcon</string>
<key>CFBundleIdentifier</key>
<string>com.reduxcomputing.${PRODUCT_NAME:identifier}</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundleName</key>
<string>${PRODUCT_NAME}</string>
<string>Proximity</string>
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleShortVersionString</key>
<string>1.6</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
<string>1.5</string>
<string>1.6</string>
<key>LSApplicationCategoryType</key>
<string>public.app-category.utilities</string>
<key>LSUIElement</key>
<true/>
<key>NSMainNibFile</key>
<string>MainMenu</string>
<key>NSPrincipalClass</key>
<string>NSApplication</string>
<key>LSUIElement</key>
<true/>
<key>CFBundleShortVersionString</key>
<string>1.5</string>
<key>CFBundleGetInfoString</key>
<string>1.5</string>
</dict>
</plist>
28 changes: 18 additions & 10 deletions Proximity.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
archiveVersion = 1;
classes = {
};
objectVersion = 45;
objectVersion = 46;
objects = {

/* Begin PBXBuildFile section */
Expand Down Expand Up @@ -165,9 +165,16 @@
/* Begin PBXProject section */
29B97313FDCFA39411CA2CEA /* Project object */ = {
isa = PBXProject;
attributes = {
LastUpgradeCheck = 0430;
};
buildConfigurationList = C01FCF4E08A954540054247B /* Build configuration list for PBXProject "Proximity" */;
compatibilityVersion = "Xcode 3.1";
compatibilityVersion = "Xcode 3.2";
developmentRegion = English;
hasScannedForEncodings = 1;
knownRegions = (
en,
);
mainGroup = 29B97314FDCFA39411CA2CEA /* Proximity */;
projectDirPath = "";
projectRoot = "";
Expand Down Expand Up @@ -230,19 +237,20 @@
isa = XCBuildConfiguration;
buildSettings = {
ALWAYS_SEARCH_USER_PATHS = NO;
ARCHS = "$(ARCHS_STANDARD_32_64_BIT)";
COPY_PHASE_STRIP = NO;
FRAMEWORK_SEARCH_PATHS = (
"$(inherited)",
"\"$(SRCROOT)\"",
);
GCC_DYNAMIC_NO_PIC = NO;
GCC_ENABLE_FIX_AND_CONTINUE = YES;
GCC_MODEL_TUNING = G5;
GCC_OPTIMIZATION_LEVEL = 0;
GCC_PRECOMPILE_PREFIX_HEADER = YES;
GCC_PREFIX_HEADER = Proximity_Prefix.pch;
INFOPLIST_FILE = Info.plist;
INSTALL_PATH = "$(HOME)/Applications";
MACOSX_DEPLOYMENT_TARGET = 10.7;
PRODUCT_NAME = Proximity;
};
name = Debug;
Expand All @@ -251,6 +259,7 @@
isa = XCBuildConfiguration;
buildSettings = {
ALWAYS_SEARCH_USER_PATHS = NO;
ARCHS = "$(ARCHS_STANDARD_32_64_BIT)";
DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
FRAMEWORK_SEARCH_PATHS = (
"$(inherited)",
Expand All @@ -261,33 +270,32 @@
GCC_PREFIX_HEADER = Proximity_Prefix.pch;
INFOPLIST_FILE = Info.plist;
INSTALL_PATH = "$(HOME)/Applications";
MACOSX_DEPLOYMENT_TARGET = 10.7;
PRODUCT_NAME = Proximity;
};
name = Release;
};
C01FCF4F08A954540054247B /* Debug */ = {
isa = XCBuildConfiguration;
buildSettings = {
ARCHS = "$(ARCHS_STANDARD_32_BIT)";
ARCHS = "$(NATIVE_ARCH_ACTUAL)";
GCC_C_LANGUAGE_STANDARD = c99;
GCC_OPTIMIZATION_LEVEL = 0;
GCC_WARN_ABOUT_RETURN_TYPE = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
ONLY_ACTIVE_ARCH = YES;
PREBINDING = NO;
SDKROOT = macosx10.4;
ONLY_ACTIVE_ARCH = NO;
SDKROOT = "";
};
name = Debug;
};
C01FCF5008A954540054247B /* Release */ = {
isa = XCBuildConfiguration;
buildSettings = {
ARCHS = "$(ARCHS_STANDARD_32_BIT)";
ARCHS = "$(NATIVE_ARCH_ACTUAL)";
GCC_C_LANGUAGE_STANDARD = c99;
GCC_WARN_ABOUT_RETURN_TYPE = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
PREBINDING = NO;
SDKROOT = macosx10.4;
SDKROOT = "";
};
name = Release;
};
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>BuildLocationStyle</key>
<string>UseAppPreferences</string>
<key>CustomBuildLocationType</key>
<string>RelativeToDerivedData</string>
<key>DerivedDataLocationStyle</key>
<string>Default</string>
<key>HasAskedToTakeAutomaticSnapshotBeforeSignificantChanges</key>
<true/>
<key>IssueFilterStyle</key>
<string>ShowActiveSchemeOnly</string>
<key>LiveSourceIssuesEnabled</key>
<true/>
<key>SnapshotAutomaticallyBeforeSignificantChanges</key>
<true/>
<key>SnapshotLocationStyle</key>
<string>Default</string>
</dict>
</plist>
Original file line number Diff line number Diff line change
@@ -0,0 +1,85 @@
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
version = "1.3">
<BuildAction
parallelizeBuildables = "YES"
buildImplicitDependencies = "YES">
<BuildActionEntries>
<BuildActionEntry
buildForTesting = "YES"
buildForRunning = "YES"
buildForProfiling = "YES"
buildForArchiving = "YES"
buildForAnalyzing = "YES">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "8D1107260486CEB800E47090"
BuildableName = "Proximity.app"
BlueprintName = "Proximity"
ReferencedContainer = "container:Proximity.xcodeproj">
</BuildableReference>
</BuildActionEntry>
</BuildActionEntries>
</BuildAction>
<TestAction
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
shouldUseLaunchSchemeArgsEnv = "YES"
buildConfiguration = "Debug">
<Testables>
</Testables>
<MacroExpansion>
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "8D1107260486CEB800E47090"
BuildableName = "Proximity.app"
BlueprintName = "Proximity"
ReferencedContainer = "container:Proximity.xcodeproj">
</BuildableReference>
</MacroExpansion>
</TestAction>
<LaunchAction
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
launchStyle = "0"
useCustomWorkingDirectory = "NO"
buildConfiguration = "Debug"
ignoresPersistentStateOnLaunch = "NO"
debugDocumentVersioning = "YES"
allowLocationSimulation = "YES">
<BuildableProductRunnable>
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "8D1107260486CEB800E47090"
BuildableName = "Proximity.app"
BlueprintName = "Proximity"
ReferencedContainer = "container:Proximity.xcodeproj">
</BuildableReference>
</BuildableProductRunnable>
<AdditionalOptions>
</AdditionalOptions>
</LaunchAction>
<ProfileAction
shouldUseLaunchSchemeArgsEnv = "YES"
savedToolIdentifier = ""
useCustomWorkingDirectory = "NO"
buildConfiguration = "Release"
debugDocumentVersioning = "YES">
<BuildableProductRunnable>
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "8D1107260486CEB800E47090"
BuildableName = "Proximity.app"
BlueprintName = "Proximity"
ReferencedContainer = "container:Proximity.xcodeproj">
</BuildableReference>
</BuildableProductRunnable>
</ProfileAction>
<AnalyzeAction
buildConfiguration = "Debug">
</AnalyzeAction>
<ArchiveAction
buildConfiguration = "Release"
revealArchiveInOrganizer = "YES">
</ArchiveAction>
</Scheme>
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>SchemeUserState</key>
<dict>
<key>Proximity.xcscheme</key>
<dict>
<key>orderHint</key>
<integer>0</integer>
</dict>
</dict>
<key>SuppressBuildableAutocreation</key>
<dict>
<key>8D1107260486CEB800E47090</key>
<dict>
<key>primary</key>
<true/>
</dict>
</dict>
</dict>
</plist>

0 comments on commit 80bb8c1

Please sign in to comment.