Skip to content

Commit 37617e5

Browse files
committed
FIX: MS-26333
1 parent 26a6180 commit 37617e5

2 files changed

Lines changed: 8 additions & 5 deletions

File tree

macOS/APIExample/Examples/Advanced/ScreenShare/Base.lproj/ScreenShare.storyboard

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2-
<document type="com.apple.InterfaceBuilder3.Cocoa.Storyboard.XIB" version="3.0" toolsVersion="17156" targetRuntime="MacOSX.Cocoa" propertyAccessControl="none" useAutolayout="YES">
2+
<document type="com.apple.InterfaceBuilder3.Cocoa.Storyboard.XIB" version="3.0" toolsVersion="17701" targetRuntime="MacOSX.Cocoa" propertyAccessControl="none" useAutolayout="YES">
33
<dependencies>
44
<deployment identifier="macosx"/>
5-
<plugIn identifier="com.apple.InterfaceBuilder.CocoaPlugin" version="17156"/>
5+
<plugIn identifier="com.apple.InterfaceBuilder.CocoaPlugin" version="17701"/>
66
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
77
</dependencies>
88
<scenes>
@@ -56,6 +56,9 @@
5656
<behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/>
5757
<font key="font" metaFont="system"/>
5858
</buttonCell>
59+
<connections>
60+
<action selector="onLeavePressed:" target="Gwp-vd-c2J" id="qED-6u-Ooz"/>
61+
</connections>
5962
</button>
6063
<popUpButton verticalHuggingPriority="750" fixedFrame="YES" translatesAutoresizingMaskIntoConstraints="NO" id="4Qe-NX-3pJ">
6164
<rect key="frame" x="18" y="69" width="120" height="25"/>
@@ -78,12 +81,12 @@
7881
<popUpButton verticalHuggingPriority="750" fixedFrame="YES" translatesAutoresizingMaskIntoConstraints="NO" id="vEO-BZ-CX3">
7982
<rect key="frame" x="268" y="69" width="120" height="25"/>
8083
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/>
81-
<popUpButtonCell key="cell" type="push" title="Default" bezelStyle="rounded" alignment="left" lineBreakMode="truncatingTail" borderStyle="borderAndBezel" imageScaling="proportionallyDown" inset="2" selectedItem="fau-vB-5MT" id="ToH-9z-5vP">
84+
<popUpButtonCell key="cell" type="push" title="Default" bezelStyle="rounded" alignment="left" lineBreakMode="truncatingTail" state="on" borderStyle="borderAndBezel" imageScaling="proportionallyDown" inset="2" selectedItem="fau-vB-5MT" id="ToH-9z-5vP">
8285
<behavior key="behavior" lightByBackground="YES" lightByGray="YES"/>
8386
<font key="font" metaFont="menu"/>
8487
<menu key="menu" id="mTb-ch-BDg">
8588
<items>
86-
<menuItem title="Default" id="fau-vB-5MT">
89+
<menuItem title="Default" state="on" id="fau-vB-5MT">
8790
<modifierMask key="keyEquivalentModifierMask"/>
8891
</menuItem>
8992
<menuItem title="Motion" id="tUi-MY-1cg">

macOS/APIExample/Examples/Advanced/ScreenShare/ScreenShare.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ class ScreenShare: BaseViewController {
150150
}
151151
}
152152

153-
@IBAction func onLeavePressed(_ sender: Any) {
153+
@IBAction func onLeavePressed(_ sender: NSButton) {
154154
agoraKit.leaveChannel { [unowned self] (stats:AgoraChannelStats) in
155155
LogUtils.log(message: "Left channel", level: .info)
156156
self.videos[0].uid = nil

0 commit comments

Comments
 (0)