mirror of
https://github.com/saitohirga/WSJT-X.git
synced 2024-12-25 20:33:08 -05:00
Correct Mac OS X version portability settings for KVASD-installer
Disable drag and drop target selection in KVASD-installer The Mac KVASD-installer running on OS X 10.7 crashes when trying to process a target selected by drag and drop. Due to issues debuging issues on 10.7 with Xcode 4, I have disabled the feature since there is an alternative mechanisim available. Merged r4754 & r4756 from wsjtx-1.4 branch. git-svn-id: svn+ssh://svn.code.sf.net/p/wsjt/wsjt/branches/wsjtx@4757 ab8295b8-cf94-4d9e-aec4-7959e3be5d79
This commit is contained in:
parent
f37ed4cd78
commit
c938a0bd89
@ -259,7 +259,7 @@
|
||||
GCC_PRECOMPILE_PREFIX_HEADER = YES;
|
||||
GCC_PREFIX_HEADER = "KVASD-installer/KVASD-installer-Prefix.pch";
|
||||
INFOPLIST_FILE = "KVASD-installer/KVASD-installer-Info.plist";
|
||||
MACOSX_DEPLOYMENT_TARGET = "";
|
||||
MACOSX_DEPLOYMENT_TARGET = 10.7;
|
||||
PRODUCT_NAME = "$(TARGET_NAME)";
|
||||
WRAPPER_EXTENSION = app;
|
||||
};
|
||||
@ -273,7 +273,7 @@
|
||||
GCC_PRECOMPILE_PREFIX_HEADER = YES;
|
||||
GCC_PREFIX_HEADER = "KVASD-installer/KVASD-installer-Prefix.pch";
|
||||
INFOPLIST_FILE = "KVASD-installer/KVASD-installer-Info.plist";
|
||||
MACOSX_DEPLOYMENT_TARGET = "";
|
||||
MACOSX_DEPLOYMENT_TARGET = 10.7;
|
||||
PRODUCT_NAME = "$(TARGET_NAME)";
|
||||
WRAPPER_EXTENSION = app;
|
||||
};
|
||||
|
@ -1,6 +1,7 @@
|
||||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<document type="com.apple.InterfaceBuilder3.Cocoa.XIB" version="3.0" toolsVersion="4514" systemVersion="12F45" targetRuntime="MacOSX.Cocoa" propertyAccessControl="none" useAutolayout="YES">
|
||||
<dependencies>
|
||||
<deployment version="1070" defaultVersion="1070" identifier="macosx"/>
|
||||
<plugIn identifier="com.apple.InterfaceBuilder.CocoaPlugin" version="4514"/>
|
||||
</dependencies>
|
||||
<objects>
|
||||
@ -125,7 +126,7 @@
|
||||
<action selector="doChooseTarget:" target="494" id="T3v-Fi-ceL"/>
|
||||
</connections>
|
||||
</button>
|
||||
<button toolTip="Click to process all the selected WSJT-X application bundles you have selected." verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="WgE-a2-qYH">
|
||||
<button toolTip="Click to process all the WSJT-X application bundles you have selected." verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="WgE-a2-qYH">
|
||||
<rect key="frame" x="430" y="63" width="46" height="25"/>
|
||||
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/>
|
||||
<buttonCell key="cell" type="squareTextured" title="Install" bezelStyle="texturedSquare" imagePosition="overlaps" alignment="center" enabled="NO" state="on" borderStyle="border" imageScaling="proportionallyDown" inset="2" id="Wul-Wc-vif">
|
||||
@ -144,7 +145,7 @@
|
||||
<rect key="frame" x="20" y="184" width="456" height="288"/>
|
||||
<autoresizingMask key="autoresizingMask"/>
|
||||
<string key="toolTip">Please read the agreement and tick the "Agree" checkbox below if you accept the terms and wish to continue with the installation.</string>
|
||||
<clipView key="contentView" id="98d-J5-d83">
|
||||
<clipView key="contentView" id="hfA-a7-tlo">
|
||||
<rect key="frame" x="1" y="1" width="439" height="286"/>
|
||||
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
|
||||
<subviews>
|
||||
@ -176,7 +177,7 @@
|
||||
<constraints>
|
||||
<constraint firstAttribute="height" constant="37" id="hQV-aJ-MXM"/>
|
||||
</constraints>
|
||||
<textFieldCell key="cell" sendsActionOnEndEditing="YES" alignment="center" title="Use "Choose target ..." to pick WSJT-X application bundles to install KVASD into or simply drop them onto this window" id="3OK-wt-WuN">
|
||||
<textFieldCell key="cell" sendsActionOnEndEditing="YES" alignment="center" title="Use "Choose target ..." to pick WSJT-X application bundles to install KVASD into" id="3OK-wt-WuN">
|
||||
<font key="font" metaFont="system"/>
|
||||
<color key="textColor" name="controlTextColor" catalog="System" colorSpace="catalog"/>
|
||||
<color key="backgroundColor" name="controlColor" catalog="System" colorSpace="catalog"/>
|
||||
@ -203,9 +204,12 @@
|
||||
</connections>
|
||||
</buttonCell>
|
||||
</button>
|
||||
<button verticalHuggingPriority="750" misplaced="YES" tag="-1" translatesAutoresizingMaskIntoConstraints="NO" id="ylZ-OO-wid">
|
||||
<button verticalHuggingPriority="750" tag="-1" translatesAutoresizingMaskIntoConstraints="NO" id="ylZ-OO-wid">
|
||||
<rect key="frame" x="179" y="5" width="102" height="32"/>
|
||||
<autoresizingMask key="autoresizingMask"/>
|
||||
<constraints>
|
||||
<constraint firstAttribute="width" constant="90" id="x77-Gu-2d1"/>
|
||||
</constraints>
|
||||
<buttonCell key="cell" type="push" title="Print ..." bezelStyle="rounded" alignment="center" enabled="NO" borderStyle="border" imageScaling="proportionallyDown" inset="2" id="2cB-RL-2Da">
|
||||
<behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/>
|
||||
<font key="font" metaFont="system"/>
|
||||
@ -214,9 +218,12 @@
|
||||
<action selector="doPrint:" target="494" id="879-hA-tbm"/>
|
||||
</connections>
|
||||
</button>
|
||||
<button misplaced="YES" tag="-1" translatesAutoresizingMaskIntoConstraints="NO" id="art-4p-gjI">
|
||||
<button tag="-1" translatesAutoresizingMaskIntoConstraints="NO" id="art-4p-gjI">
|
||||
<rect key="frame" x="347" y="-1" width="102" height="47"/>
|
||||
<autoresizingMask key="autoresizingMask"/>
|
||||
<constraints>
|
||||
<constraint firstAttribute="width" constant="98" id="tcI-KQ-cBc"/>
|
||||
</constraints>
|
||||
<buttonCell key="cell" type="check" title="Agree" bezelStyle="regularSquare" imagePosition="left" enabled="NO" inset="2" id="NP4-SZ-zup">
|
||||
<behavior key="behavior" changeContents="YES" doesNotDimImage="YES" lightByContents="YES"/>
|
||||
<font key="font" metaFont="system"/>
|
||||
|
@ -192,29 +192,33 @@ script WSJTAppDelegate
|
||||
end applicationShouldTerminate_
|
||||
|
||||
--
|
||||
-- NSDraggingDestination (NSWindow Delgate) Protocol
|
||||
-- NSDraggingDestination (NSWindow Delgate) Protocol (Not working on 10.7)
|
||||
--
|
||||
|
||||
-- Accept Generic drag&drop sources
|
||||
on draggingEntered_(sender)
|
||||
return current application's NSDragOperationGeneric
|
||||
end draggingEntered_
|
||||
-- on draggingEntered_(sender)
|
||||
-- return current application's NSDragOperationGeneric
|
||||
-- end draggingEntered_
|
||||
|
||||
-- Process a drop on our window
|
||||
on performDragOperation_(sender)
|
||||
set pb to sender's draggingPasteboard()
|
||||
if pb's types() as list contains current application's NSURLPboardType then
|
||||
set options to {NSPasteboardURLReadingContentsConformToTypesKey:{"com.apple.application-bundle"}}
|
||||
repeat with u in pb's readObjectsForClasses_options_({current application's |NSURL|},options)
|
||||
copy u's |path| to end of bundlesToProcess
|
||||
end repeat
|
||||
if bundlesToProcess ≠ {} and licenceAgreed then
|
||||
installButton's setEnabled_(true)
|
||||
end if
|
||||
return true
|
||||
end if
|
||||
return false
|
||||
end performDragOperation_
|
||||
-- on performDragOperation_(sender)
|
||||
-- try
|
||||
-- set pb to sender's draggingPasteboard()
|
||||
-- if pb's types() as list contains current application's NSURLPboardType then
|
||||
-- set options to {NSPasteboardURLReadingContentsConformToTypesKey:{"com.apple.application-bundle"}}
|
||||
-- repeat with u in pb's readObjectsForClasses_options_({current application's |NSURL|},options)
|
||||
-- copy u's |path| to end of bundlesToProcess
|
||||
-- end repeat
|
||||
-- if bundlesToProcess ≠ {} and licenceAgreed then
|
||||
-- installButton's setEnabled_(true)
|
||||
-- end if
|
||||
-- return true
|
||||
-- end if
|
||||
-- on error errorString
|
||||
-- abort(errorString)
|
||||
-- end try
|
||||
-- return false
|
||||
-- end performDragOperation_
|
||||
|
||||
--
|
||||
-- UI handlers
|
||||
@ -286,20 +290,28 @@ script WSJTAppDelegate
|
||||
|
||||
-- Install button handler
|
||||
on doInstall_(sender)
|
||||
process()
|
||||
set bundlesToProcess to {}
|
||||
installButton's setEnabled_(false)
|
||||
try
|
||||
process()
|
||||
set bundlesToProcess to {}
|
||||
installButton's setEnabled_(false)
|
||||
on error errorString
|
||||
abort(errorString)
|
||||
end try
|
||||
end doInstall_
|
||||
|
||||
-- handler called on eulaTextView scroll or view changes
|
||||
-- enables agree/install button once the bottom is reached
|
||||
on viewChanged_(aNotification)
|
||||
set dr to eulaTextView's |bounds| as record
|
||||
set vdr to eulaTextView's visibleRect as record
|
||||
if height of |size| of dr - (y of origin of vdr + height of |size| of vdr) is less than or equal to 0 ¬
|
||||
and not licenceAgreed then
|
||||
agreeCheckBox's setEnabled_(true)
|
||||
end if
|
||||
try
|
||||
set dr to eulaTextView's |bounds| as record
|
||||
set vdr to eulaTextView's visibleRect as record
|
||||
if height of |size| of dr - (y of origin of vdr + height of |size| of vdr) is less than or equal to 0 ¬
|
||||
and not licenceAgreed then
|
||||
agreeCheckBox's setEnabled_(true)
|
||||
end if
|
||||
on error errorString
|
||||
abort(errorString)
|
||||
end try
|
||||
end viewChanged
|
||||
|
||||
-- Abort handler
|
||||
|
@ -57,10 +57,9 @@ The install DMG includes an installer tool KVASD-installer that allows you to in
|
||||
KVASD into your WSJT-X application. When you run KVASD-installer you must have a
|
||||
functioning Internet connection since it downloads KVASD during the installation.
|
||||
|
||||
Run KVASD-installer and review the license terms then either drag the newly installed
|
||||
WSJT-X application onto it or use the "Choose target …" button to select the WSJT-X
|
||||
application you have just installed then; click "Install" to inject KVASD into the
|
||||
WSJT-X application.
|
||||
Run KVASD-installer and review the license terms then use the "Choose target …" button
|
||||
to select the WSJT-X application you have just installed then; click "Install" to inject
|
||||
KVASD into the WSJT-X application.
|
||||
|
||||
You need to configure your sound card. Visit Applications > Utilities > Audio MIDI
|
||||
Setup and select your sound card and then set Format to be "48000Hz 2ch-16bit" for
|
||||
|
@ -52,7 +52,7 @@
|
||||
<key>LSApplicationCategoryType</key>
|
||||
<string>public.app-category.utilities</string>
|
||||
<key>LSMinimumSystemVersion</key>
|
||||
<string></string>
|
||||
<string>10.7</string>
|
||||
<key>NSHumanReadableCopyright</key>
|
||||
<string>Created by Bill Somerville (G4WJS) on 12/11/2014.
|
||||
|
||||
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading…
Reference in New Issue
Block a user