diff --git a/AppController.m b/AppController.m index d38e533..f5525cd 100644 --- a/AppController.m +++ b/AppController.m @@ -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] ) { @@ -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 @@ -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 @@ -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 diff --git a/English.lproj/MainMenu.xib b/English.lproj/MainMenu.xib index c539edd..52c97cb 100644 --- a/English.lproj/MainMenu.xib +++ b/English.lproj/MainMenu.xib @@ -1,29 +1,36 @@ - + 1040 - 9G55 - 677 - 949.43 - 353.00 - + 11E53 + 2182 + 1138.47 + 569.00 + + com.apple.InterfaceBuilder.CocoaPlugin + 2182 + + YES - - + NSView + NSMenu + NSWindowTemplate + NSMenuItem + NSCustomObject + NSTextField + NSTextFieldCell + NSProgressIndicator + NSButtonCell + NSButton + NSBox YES - com.apple.InterfaceBuilderKit com.apple.InterfaceBuilder.CocoaPlugin - YES - - YES - - - YES - + PluginDependencyRecalculationVersion + YES @@ -80,7 +87,7 @@ - UHJlZmVyZW5jZXPigKY + Preferences… , 1048576 2147483647 @@ -188,7 +195,7 @@ Proximity Preferences NSWindow - {3.40282e+38, 3.40282e+38} + 256 @@ -201,7 +208,7 @@ YES - 256 + 274 YES @@ -211,7 +218,7 @@ YES - 256 + 274 YES @@ -219,6 +226,8 @@ 268 {{15, 14}, {382, 17}} + + YES 68288064 @@ -226,7 +235,7 @@ A Bluetooth-enabled device has not been selected LucidaGrande - 1.300000e+01 + 13 1044 @@ -236,7 +245,7 @@ controlColor 3 - MC42NjY2NjY2OQA + MC42NjY2NjY2NjY3AA @@ -253,10 +262,14 @@ {{1, 1}, {412, 42}} + + {{15, 35}, {414, 44}} + + {0, 0} 67239424 @@ -264,7 +277,7 @@ Box LucidaGrande - 1.100000e+01 + 11 3100 @@ -292,6 +305,8 @@ 268 {{18, 12}, {126, 19}} + + YES 67239424 @@ -299,12 +314,12 @@ Check Connectivity LucidaGrande - 1.200000e+01 + 12 16 -2038152961 - 164 + 36 400 @@ -316,6 +331,8 @@ 268 {{326, 12}, {100, 19}} + + YES 67239424 @@ -324,7 +341,7 @@ -2038152961 - 164 + 36 400 @@ -337,17 +354,23 @@ {{152, 14}, {16, 16}} + + 20746 - 1.600000e+01 - 1.000000e+02 + 16 + 100 {{1, 1}, {444, 87}} + + {{17, 207}, {446, 103}} + + {0, 0} 67239424 @@ -373,7 +396,7 @@ YES - 256 + 274 YES @@ -381,6 +404,8 @@ 268 {{16, 54}, {287, 18}} + + YES -2080244224 @@ -389,7 +414,7 @@ 1211912703 - 130 + 2 NSImage NSSwitch @@ -408,6 +433,8 @@ 268 {{306, 53}, {51, 22}} + + YES -1804468671 @@ -430,6 +457,8 @@ 268 {{359, 55}, {56, 17}} + + YES 68288064 @@ -446,6 +475,8 @@ 268 {{16, 14}, {207, 18}} + + YES -2080244224 @@ -454,7 +485,7 @@ 1211912703 - 130 + 2 @@ -468,6 +499,8 @@ 268 {{229, 12}, {122, 19}} + + YES -2080244224 @@ -476,7 +509,7 @@ -2038152961 - 164 + 36 400 @@ -488,6 +521,8 @@ 268 {{16, 34}, {412, 18}} + + YES -2080244224 @@ -496,7 +531,7 @@ 1211912703 - 130 + 2 @@ -508,10 +543,14 @@ {{1, 1}, {444, 80}} + + {{17, 314}, {446, 96}} + + {0, 0} 67239424 @@ -537,7 +576,7 @@ YES - 256 + 274 YES @@ -545,6 +584,8 @@ 268 {{15, 108}, {127, 17}} + + YES 68288064 @@ -561,6 +602,8 @@ 268 {{18, 78}, {404, 22}} + + YES -1804468671 @@ -578,6 +621,8 @@ 268 {{265, 105}, {44, 19}} + + YES -2080244224 @@ -586,7 +631,7 @@ -2038152961 - 164 + 36 400 @@ -598,6 +643,8 @@ 268 {{317, 105}, {39, 19}} + + YES -2080244224 @@ -606,7 +653,7 @@ -2038152961 - 164 + 36 400 @@ -618,6 +665,8 @@ 268 {{364, 105}, {58, 19}} + + YES -2080244224 @@ -626,7 +675,7 @@ -2038152961 - 164 + 36 400 @@ -638,6 +687,8 @@ 268 {{15, 53}, {99, 17}} + + YES 68288064 @@ -654,6 +705,8 @@ 268 {{18, 23}, {404, 22}} + + YES -1804468671 @@ -671,6 +724,8 @@ 268 {{265, 50}, {44, 19}} + + YES -2080244224 @@ -679,7 +734,7 @@ -2038152961 - 164 + 36 400 @@ -691,6 +746,8 @@ 268 {{317, 50}, {39, 19}} + + YES -2080244224 @@ -699,7 +756,7 @@ -2038152961 - 164 + 36 400 @@ -711,6 +768,8 @@ 268 {{364, 50}, {58, 19}} + + YES -2080244224 @@ -719,7 +778,7 @@ -2038152961 - 164 + 36 400 @@ -729,10 +788,14 @@ {{1, 1}, {444, 135}} + + {{17, 52}, {446, 151}} + + {0, 0} 67239424 @@ -756,6 +819,8 @@ 268 {{17, 20}, {261, 28}} + + YES 67239424 @@ -763,7 +828,7 @@ Proximity is donation-ware. If you find this application useful, please consider a donation. LucidaGrande - 1.100000e+01 + 11 16 @@ -776,6 +841,8 @@ 268 {{306, 23}, {154, 19}} + + YES -2080244224 @@ -784,7 +851,7 @@ -2038152961 - 164 + 36 400 @@ -794,9 +861,12 @@ {480, 430} + + - {{0, 0}, {1440, 878}} - {3.40282e+38, 3.40282e+38} + {{0, 0}, {2560, 1418}} + {10000000000000, 10000000000000} + YES NSFontManager @@ -808,6 +878,14 @@ YES + + + terminate: + + + + 449 + orderFrontStandardAboutPanel: @@ -841,12 +919,12 @@ 370 - - terminate: - - + + delegate + + - 449 + 596 @@ -968,14 +1046,6 @@ 592 - - - delegate - - - - 596 - enableMonitoring: @@ -1040,7 +1110,7 @@ -2 - RmlsZSdzIE93bmVyA + File's Owner -1 @@ -1550,44 +1620,26 @@ YES - + YES -1.IBPluginDependency -2.IBPluginDependency -3.IBPluginDependency 129.IBPluginDependency - 129.ImportedFromIB2 130.IBPluginDependency - 130.ImportedFromIB2 - 130.editorWindowContentRectSynchronizationRect 131.IBPluginDependency - 131.ImportedFromIB2 134.IBPluginDependency - 134.ImportedFromIB2 136.IBPluginDependency - 136.ImportedFromIB2 143.IBPluginDependency - 143.ImportedFromIB2 144.IBPluginDependency - 144.ImportedFromIB2 145.IBPluginDependency - 145.ImportedFromIB2 149.IBPluginDependency - 149.ImportedFromIB2 150.IBPluginDependency - 150.ImportedFromIB2 236.IBPluginDependency - 236.ImportedFromIB2 - 29.IBEditorWindowLastContentRect 29.IBPluginDependency - 29.ImportedFromIB2 - 29.WindowOrigin - 29.editorWindowContentRectSynchronizationRect - 371.IBEditorWindowLastContentRect + 371.IBPluginDependency 371.IBWindowTemplateEditedContentRect 371.NSWindowTemplate.visibleAtLaunch - 371.editorWindowContentRectSynchronizationRect - 371.windowTemplate.maxSize 372.IBPluginDependency 420.IBPluginDependency 450.IBPluginDependency @@ -1623,7 +1675,6 @@ 558.IBPluginDependency 559.IBPluginDependency 56.IBPluginDependency - 56.ImportedFromIB2 560.IBPluginDependency 561.IBPluginDependency 562.IBPluginDependency @@ -1634,10 +1685,7 @@ 567.IBPluginDependency 568.IBPluginDependency 569.IBPluginDependency - 57.IBEditorWindowLastContentRect 57.IBPluginDependency - 57.ImportedFromIB2 - 57.editorWindowContentRectSynchronizationRect 570.IBPluginDependency 571.IBPluginDependency 573.IBPluginDependency @@ -1645,46 +1693,27 @@ 575.IBPluginDependency 576.IBPluginDependency 58.IBPluginDependency - 58.ImportedFromIB2 - + YES com.apple.InterfaceBuilder.CocoaPlugin - com.apple.InterfaceBuilderKit - com.apple.InterfaceBuilderKit com.apple.InterfaceBuilder.CocoaPlugin - com.apple.InterfaceBuilder.CocoaPlugin - - {{436, 809}, {64, 6}} com.apple.InterfaceBuilder.CocoaPlugin - com.apple.InterfaceBuilder.CocoaPlugin - com.apple.InterfaceBuilder.CocoaPlugin - com.apple.InterfaceBuilder.CocoaPlugin - com.apple.InterfaceBuilder.CocoaPlugin - com.apple.InterfaceBuilder.CocoaPlugin - com.apple.InterfaceBuilder.CocoaPlugin - com.apple.InterfaceBuilder.CocoaPlugin - com.apple.InterfaceBuilder.CocoaPlugin - - {{220, 348}, {111, 20}} com.apple.InterfaceBuilder.CocoaPlugin - - {74, 862} - {{6, 978}, {478, 20}} - {{312, 419}, {480, 430}} + com.apple.InterfaceBuilder.CocoaPlugin + com.apple.InterfaceBuilder.CocoaPlugin + com.apple.InterfaceBuilder.CocoaPlugin {{312, 419}, {480, 430}} - {{33, 99}, {480, 360}} - {3.40282e+38, 3.40282e+38} com.apple.InterfaceBuilder.CocoaPlugin com.apple.InterfaceBuilder.CocoaPlugin com.apple.InterfaceBuilder.CocoaPlugin @@ -1720,7 +1749,6 @@ com.apple.InterfaceBuilder.CocoaPlugin com.apple.InterfaceBuilder.CocoaPlugin com.apple.InterfaceBuilder.CocoaPlugin - com.apple.InterfaceBuilder.CocoaPlugin com.apple.InterfaceBuilder.CocoaPlugin com.apple.InterfaceBuilder.CocoaPlugin @@ -1731,10 +1759,7 @@ com.apple.InterfaceBuilder.CocoaPlugin com.apple.InterfaceBuilder.CocoaPlugin com.apple.InterfaceBuilder.CocoaPlugin - {{232, 165}, {203, 183}} com.apple.InterfaceBuilder.CocoaPlugin - - {{23, 794}, {245, 183}} com.apple.InterfaceBuilder.CocoaPlugin com.apple.InterfaceBuilder.CocoaPlugin com.apple.InterfaceBuilder.CocoaPlugin @@ -1742,27 +1767,18 @@ com.apple.InterfaceBuilder.CocoaPlugin com.apple.InterfaceBuilder.CocoaPlugin com.apple.InterfaceBuilder.CocoaPlugin - YES - - YES - - - YES - + + YES - - YES - - - YES - + + 604 @@ -1775,7 +1791,7 @@ NSObject YES - + YES changeDevice: checkConnectivity: @@ -1790,7 +1806,7 @@ outOfRangeScriptTest: showWindow: - + YES id id @@ -1806,9 +1822,78 @@ id + + YES + + YES + changeDevice: + checkConnectivity: + checkForUpdates: + donate: + enableMonitoring: + inRangeScriptChange: + inRangeScriptClear: + inRangeScriptTest: + outOfRangeScriptChange: + outOfRangeScriptClear: + outOfRangeScriptTest: + showWindow: + + + YES + + changeDevice: + id + + + checkConnectivity: + id + + + checkForUpdates: + id + + + donate: + id + + + enableMonitoring: + id + + + inRangeScriptChange: + id + + + inRangeScriptClear: + id + + + inRangeScriptTest: + id + + + outOfRangeScriptChange: + id + + + outOfRangeScriptClear: + id + + + outOfRangeScriptTest: + id + + + showWindow: + id + + + YES - + YES checkUpdatesOnStartup deviceName @@ -1820,7 +1905,7 @@ runScriptsOnStartup timerInterval - + YES id id @@ -1833,23 +1918,93 @@ id - - IBProjectSource - AppController.h + + YES + + YES + checkUpdatesOnStartup + deviceName + inRangeScriptPath + monitoringEnabled + outOfRangeScriptPath + prefsWindow + progressIndicator + runScriptsOnStartup + timerInterval + + + YES + + checkUpdatesOnStartup + id + + + deviceName + id + + + inRangeScriptPath + id + + + monitoringEnabled + id + + + outOfRangeScriptPath + id + + + prefsWindow + id + + + progressIndicator + id + + + runScriptsOnStartup + id + + + timerInterval + id + + - - - AppController - NSObject - IBUserSource - + IBProjectSource + ./Classes/AppController.h 0 - ../Proximity.xcodeproj + IBCocoaFramework + + com.apple.InterfaceBuilder.CocoaPlugin.macosx + + + + com.apple.InterfaceBuilder.CocoaPlugin.InterfaceBuilder3 + + + YES 3 + + YES + + YES + NSMenuCheckmark + NSMenuMixedState + NSSwitch + + + YES + {11, 11} + {10, 3} + {15, 15} + + diff --git a/Info.plist b/Info.plist index d9c1ff8..fbaf6e1 100644 --- a/Info.plist +++ b/Info.plist @@ -6,6 +6,8 @@ English CFBundleExecutable ${EXECUTABLE_NAME} + CFBundleGetInfoString + 1.5 CFBundleIconFile AppIcon CFBundleIdentifier @@ -13,22 +15,22 @@ CFBundleInfoDictionaryVersion 6.0 CFBundleName - ${PRODUCT_NAME} + Proximity CFBundlePackageType APPL + CFBundleShortVersionString + 1.6 CFBundleSignature ???? CFBundleVersion - 1.5 + 1.6 + LSApplicationCategoryType + public.app-category.utilities + LSUIElement + NSMainNibFile MainMenu NSPrincipalClass NSApplication - LSUIElement - - CFBundleShortVersionString - 1.5 - CFBundleGetInfoString - 1.5 diff --git a/Proximity.xcodeproj/project.pbxproj b/Proximity.xcodeproj/project.pbxproj index 15dd84d..3513f68 100644 --- a/Proximity.xcodeproj/project.pbxproj +++ b/Proximity.xcodeproj/project.pbxproj @@ -3,7 +3,7 @@ archiveVersion = 1; classes = { }; - objectVersion = 45; + objectVersion = 46; objects = { /* Begin PBXBuildFile section */ @@ -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 = ""; @@ -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; @@ -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)", @@ -261,6 +270,7 @@ GCC_PREFIX_HEADER = Proximity_Prefix.pch; INFOPLIST_FILE = Info.plist; INSTALL_PATH = "$(HOME)/Applications"; + MACOSX_DEPLOYMENT_TARGET = 10.7; PRODUCT_NAME = Proximity; }; name = Release; @@ -268,26 +278,24 @@ 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; }; diff --git a/Proximity.xcodeproj/project.xcworkspace/contents.xcworkspacedata b/Proximity.xcodeproj/project.xcworkspace/contents.xcworkspacedata new file mode 100644 index 0000000..24ab27b --- /dev/null +++ b/Proximity.xcodeproj/project.xcworkspace/contents.xcworkspacedata @@ -0,0 +1,7 @@ + + + + + diff --git a/Proximity.xcodeproj/project.xcworkspace/xcuserdata/fluxaugur.xcuserdatad/UserInterfaceState.xcuserstate b/Proximity.xcodeproj/project.xcworkspace/xcuserdata/fluxaugur.xcuserdatad/UserInterfaceState.xcuserstate new file mode 100644 index 0000000..e0069c8 Binary files /dev/null and b/Proximity.xcodeproj/project.xcworkspace/xcuserdata/fluxaugur.xcuserdatad/UserInterfaceState.xcuserstate differ diff --git a/Proximity.xcodeproj/project.xcworkspace/xcuserdata/fluxaugur.xcuserdatad/WorkspaceSettings.xcsettings b/Proximity.xcodeproj/project.xcworkspace/xcuserdata/fluxaugur.xcuserdatad/WorkspaceSettings.xcsettings new file mode 100644 index 0000000..28f6741 --- /dev/null +++ b/Proximity.xcodeproj/project.xcworkspace/xcuserdata/fluxaugur.xcuserdatad/WorkspaceSettings.xcsettings @@ -0,0 +1,22 @@ + + + + + BuildLocationStyle + UseAppPreferences + CustomBuildLocationType + RelativeToDerivedData + DerivedDataLocationStyle + Default + HasAskedToTakeAutomaticSnapshotBeforeSignificantChanges + + IssueFilterStyle + ShowActiveSchemeOnly + LiveSourceIssuesEnabled + + SnapshotAutomaticallyBeforeSignificantChanges + + SnapshotLocationStyle + Default + + diff --git a/Proximity.xcodeproj/xcuserdata/fluxaugur.xcuserdatad/xcschemes/Proximity.xcscheme b/Proximity.xcodeproj/xcuserdata/fluxaugur.xcuserdatad/xcschemes/Proximity.xcscheme new file mode 100644 index 0000000..4e533ef --- /dev/null +++ b/Proximity.xcodeproj/xcuserdata/fluxaugur.xcuserdatad/xcschemes/Proximity.xcscheme @@ -0,0 +1,85 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Proximity.xcodeproj/xcuserdata/fluxaugur.xcuserdatad/xcschemes/xcschememanagement.plist b/Proximity.xcodeproj/xcuserdata/fluxaugur.xcuserdatad/xcschemes/xcschememanagement.plist new file mode 100644 index 0000000..c664934 --- /dev/null +++ b/Proximity.xcodeproj/xcuserdata/fluxaugur.xcuserdatad/xcschemes/xcschememanagement.plist @@ -0,0 +1,22 @@ + + + + + SchemeUserState + + Proximity.xcscheme + + orderHint + 0 + + + SuppressBuildableAutocreation + + 8D1107260486CEB800E47090 + + primary + + + + +