mirror of
https://github.com/TomHarte/CLK.git
synced 2024-12-26 09:29:45 +00:00
Finally forced emulation window to front. Also removed min/max heights where they'd crept in and got explicit about the OpenGL view being first responder.
This commit is contained in:
parent
d3634488e6
commit
013f0c5317
@ -12,12 +12,10 @@
|
|||||||
<customObject id="-1" userLabel="First Responder" customClass="FirstResponder"/>
|
<customObject id="-1" userLabel="First Responder" customClass="FirstResponder"/>
|
||||||
<customObject id="-3" userLabel="Application" customClass="NSObject"/>
|
<customObject id="-3" userLabel="Application" customClass="NSObject"/>
|
||||||
<window title="Options" allowsToolTipsWhenApplicationIsInactive="NO" autorecalculatesKeyViewLoop="NO" hidesOnDeactivate="YES" oneShot="NO" releasedWhenClosed="NO" showsToolbarButton="NO" visibleAtLaunch="NO" frameAutosaveName="" animationBehavior="default" id="gsl-7V-TTU" customClass="Atari2600OptionsPanel" customModule="Clock_Signal" customModuleProvider="target">
|
<window title="Options" allowsToolTipsWhenApplicationIsInactive="NO" autorecalculatesKeyViewLoop="NO" hidesOnDeactivate="YES" oneShot="NO" releasedWhenClosed="NO" showsToolbarButton="NO" visibleAtLaunch="NO" frameAutosaveName="" animationBehavior="default" id="gsl-7V-TTU" customClass="Atari2600OptionsPanel" customModule="Clock_Signal" customModuleProvider="target">
|
||||||
<windowStyleMask key="styleMask" titled="YES" closable="YES" utility="YES" nonactivatingPanel="YES" HUD="YES"/>
|
<windowStyleMask key="styleMask" titled="YES" closable="YES" utility="YES" documentModal="YES" nonactivatingPanel="YES"/>
|
||||||
<windowPositionMask key="initialPositionMask" leftStrut="YES" rightStrut="YES" topStrut="YES" bottomStrut="YES"/>
|
<windowPositionMask key="initialPositionMask" leftStrut="YES" rightStrut="YES" topStrut="YES" bottomStrut="YES"/>
|
||||||
<rect key="contentRect" x="83" y="102" width="200" height="121"/>
|
<rect key="contentRect" x="83" y="102" width="200" height="121"/>
|
||||||
<rect key="screenRect" x="0.0" y="0.0" width="1366" height="768"/>
|
<rect key="screenRect" x="0.0" y="0.0" width="1366" height="768"/>
|
||||||
<value key="minSize" type="size" width="200" height="121"/>
|
|
||||||
<value key="maxSize" type="size" width="200" height="121"/>
|
|
||||||
<view key="contentView" id="aQh-Pm-DEo">
|
<view key="contentView" id="aQh-Pm-DEo">
|
||||||
<rect key="frame" x="0.0" y="0.0" width="200" height="121"/>
|
<rect key="frame" x="0.0" y="0.0" width="200" height="121"/>
|
||||||
<autoresizingMask key="autoresizingMask"/>
|
<autoresizingMask key="autoresizingMask"/>
|
||||||
|
@ -16,8 +16,6 @@
|
|||||||
<windowPositionMask key="initialPositionMask" leftStrut="YES" rightStrut="YES" topStrut="YES" bottomStrut="YES"/>
|
<windowPositionMask key="initialPositionMask" leftStrut="YES" rightStrut="YES" topStrut="YES" bottomStrut="YES"/>
|
||||||
<rect key="contentRect" x="83" y="102" width="200" height="83"/>
|
<rect key="contentRect" x="83" y="102" width="200" height="83"/>
|
||||||
<rect key="screenRect" x="0.0" y="0.0" width="1366" height="768"/>
|
<rect key="screenRect" x="0.0" y="0.0" width="1366" height="768"/>
|
||||||
<value key="minSize" type="size" width="200" height="83"/>
|
|
||||||
<value key="maxSize" type="size" width="200" height="83"/>
|
|
||||||
<view key="contentView" id="tpZ-0B-QQu">
|
<view key="contentView" id="tpZ-0B-QQu">
|
||||||
<rect key="frame" x="0.0" y="0.0" width="200" height="83"/>
|
<rect key="frame" x="0.0" y="0.0" width="200" height="83"/>
|
||||||
<autoresizingMask key="autoresizingMask"/>
|
<autoresizingMask key="autoresizingMask"/>
|
||||||
|
@ -36,6 +36,7 @@
|
|||||||
</view>
|
</view>
|
||||||
<connections>
|
<connections>
|
||||||
<outlet property="delegate" destination="-2" id="0bl-1N-x8E"/>
|
<outlet property="delegate" destination="-2" id="0bl-1N-x8E"/>
|
||||||
|
<outlet property="initialFirstResponder" destination="DEG-fq-cjd" id="9RI-Kx-QeN"/>
|
||||||
</connections>
|
</connections>
|
||||||
</window>
|
</window>
|
||||||
</objects>
|
</objects>
|
||||||
|
@ -67,6 +67,9 @@ class MachineDocument:
|
|||||||
setupClockRate()
|
setupClockRate()
|
||||||
self.machine.delegate = self
|
self.machine.delegate = self
|
||||||
self.optionsPanel?.establishStoredOptions()
|
self.optionsPanel?.establishStoredOptions()
|
||||||
|
|
||||||
|
// bring OpenGL view-holding window on top of the options panel
|
||||||
|
self.openGLView.window!.makeKeyAndOrderFront(self)
|
||||||
}
|
}
|
||||||
|
|
||||||
func machineDidChangeClockRate(_ machine: CSMachine!) {
|
func machineDidChangeClockRate(_ machine: CSMachine!) {
|
||||||
|
Loading…
Reference in New Issue
Block a user