Build Information
Successful build of DSFToolbar, reference main (f486eb
), with Swift 6.0 for macOS (SPM) on 1 Dec 2024 12:56:28 UTC.
Swift 6 data race errors: 15
Build Command
env DEVELOPER_DIR=/Applications/Xcode-16.1.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures
Build Log
127 | if let p = _popover {
128 | p.close()
:
132 | let p = NSPopover()
133 | p.contentViewController = self._controller
134 | p.behavior = .transient
| `- warning: main actor-isolated property 'behavior' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
135 | p.delegate = self
136 |
AppKit.NSPopover:10:14: note: mutation of this property is only permitted within the actor
8 | @available(macOS 10.10, *)
9 | open var effectiveAppearance: NSAppearance { get }
10 | open var behavior: NSPopover.Behavior { get set }
| `- note: mutation of this property is only permitted within the actor
11 | open var animates: Bool { get set }
12 | @IBOutlet open var contentViewController: NSViewController? { get set }
/Users/admin/builder/spi-builder-workspace/Sources/DSFToolbar/DSFToolbar.PopoverButton.swift:135:6: warning: main actor-isolated property 'delegate' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
124 | }
125 |
126 | private func showPopover() {
| `- note: add '@MainActor' to make instance method 'showPopover()' part of global actor 'MainActor'
127 | if let p = _popover {
128 | p.close()
:
133 | p.contentViewController = self._controller
134 | p.behavior = .transient
135 | p.delegate = self
| `- warning: main actor-isolated property 'delegate' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
136 |
137 | p.show(relativeTo: self.button!.bounds, of: self.button!, preferredEdge: .maxY)
AppKit.NSPopover:5:29: note: mutation of this property is only permitted within the actor
3 | public init()
4 | public init?(coder: NSCoder)
5 | @IBOutlet weak open var delegate: (any NSPopoverDelegate)? { get set }
| `- note: mutation of this property is only permitted within the actor
6 | @available(macOS 10.10, *)
7 | open var appearance: NSAppearance? { get set }
/Users/admin/builder/spi-builder-workspace/Sources/DSFToolbar/DSFToolbar.PopoverButton.swift:137:6: warning: call to main actor-isolated instance method 'show(relativeTo:of:preferredEdge:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
124 | }
125 |
126 | private func showPopover() {
| `- note: add '@MainActor' to make instance method 'showPopover()' part of global actor 'MainActor'
127 | if let p = _popover {
128 | p.close()
:
135 | p.delegate = self
136 |
137 | p.show(relativeTo: self.button!.bounds, of: self.button!, preferredEdge: .maxY)
| `- warning: call to main actor-isolated instance method 'show(relativeTo:of:preferredEdge:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
138 | }
139 | }
AppKit.NSPopover:25:15: note: calls to instance method 'show(relativeTo:of:preferredEdge:)' from outside of its actor context are implicitly asynchronous
23 | @available(macOS 14.0, *)
24 | open var hasFullSizeContent: Bool { get set }
25 | open func show(relativeTo positioningRect: NSRect, of positioningView: NSView, preferredEdge: NSRectEdge)
| `- note: calls to instance method 'show(relativeTo:of:preferredEdge:)' from outside of its actor context are implicitly asynchronous
26 | @available(swift, obsoleted: 3, renamed: "show(relativeTo:of:preferredEdge:)")
27 | open func showRelativeToRect(_ positioningRect: NSRect, ofView positioningView: NSView, preferredEdge: NSRectEdge)
/Users/admin/builder/spi-builder-workspace/Sources/DSFToolbar/DSFToolbar.PopoverButton.swift:137:36: warning: main actor-isolated property 'bounds' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
124 | }
125 |
126 | private func showPopover() {
| `- note: add '@MainActor' to make instance method 'showPopover()' part of global actor 'MainActor'
127 | if let p = _popover {
128 | p.close()
:
135 | p.delegate = self
136 |
137 | p.show(relativeTo: self.button!.bounds, of: self.button!, preferredEdge: .maxY)
| `- warning: main actor-isolated property 'bounds' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
138 | }
139 | }
AppKit.NSView:76:25: note: property declared here
74 | @available(swift, obsoleted: 3, renamed: "rotate(byDegrees:)")
75 | open func rotateByAngle(_ angle: CGFloat)
76 | @MainActor open var bounds: NSRect { get set }
| `- note: property declared here
77 | open var isFlipped: Bool { get }
78 | @available(swift, obsoleted: 3, renamed: "isFlipped")
/Users/admin/builder/spi-builder-workspace/Sources/DSFToolbar/DSFToolbar.PopoverButton.swift:144:11: warning: call to main actor-isolated initializer 'init(frame:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
141 |
142 | extension DSFToolbar.PopoverButton {
143 | private func buildButton(type: NSButton.ButtonType) -> NSButton {
| `- note: add '@MainActor' to make instance method 'buildButton(type:)' part of global actor 'MainActor'
144 | let b = NSButton(frame: .zero)
| `- warning: call to main actor-isolated initializer 'init(frame:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
145 | b.translatesAutoresizingMaskIntoConstraints = false
146 | b.bezelStyle = .regularSquare // .texturedRounded
AppKit.NSButton:86:12: note: calls to initializer 'init(frame:)' from outside of its actor context are implicitly asynchronous
84 | @available(macOS 10.13, *)
85 | @NSCopying open var activeCompressionOptions: NSUserInterfaceCompressionOptions { get }
86 | public init(frame frameRect: NSRect)
| `- note: calls to initializer 'init(frame:)' from outside of its actor context are implicitly asynchronous
87 | public init?(coder: NSCoder)
88 | public convenience init()
/Users/admin/builder/spi-builder-workspace/Sources/DSFToolbar/DSFToolbar.PopoverButton.swift:145:5: warning: main actor-isolated property 'translatesAutoresizingMaskIntoConstraints' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
141 |
142 | extension DSFToolbar.PopoverButton {
143 | private func buildButton(type: NSButton.ButtonType) -> NSButton {
| `- note: add '@MainActor' to make instance method 'buildButton(type:)' part of global actor 'MainActor'
144 | let b = NSButton(frame: .zero)
145 | b.translatesAutoresizingMaskIntoConstraints = false
| `- warning: main actor-isolated property 'translatesAutoresizingMaskIntoConstraints' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
146 | b.bezelStyle = .regularSquare // .texturedRounded
147 | b.setButtonType(type)
AppKit.NSView:3:25: note: mutation of this property is only permitted within the actor
1 | extension NSView {
2 | @available(macOS 10.7, *)
3 | @MainActor open var translatesAutoresizingMaskIntoConstraints: Bool { get set }
| `- note: mutation of this property is only permitted within the actor
4 | @available(macOS 10.7, *)
5 | open class var requiresConstraintBasedLayout: Bool { get }
/Users/admin/builder/spi-builder-workspace/Sources/DSFToolbar/DSFToolbar.PopoverButton.swift:146:5: warning: main actor-isolated property 'bezelStyle' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
141 |
142 | extension DSFToolbar.PopoverButton {
143 | private func buildButton(type: NSButton.ButtonType) -> NSButton {
| `- note: add '@MainActor' to make instance method 'buildButton(type:)' part of global actor 'MainActor'
144 | let b = NSButton(frame: .zero)
145 | b.translatesAutoresizingMaskIntoConstraints = false
146 | b.bezelStyle = .regularSquare // .texturedRounded
| `- warning: main actor-isolated property 'bezelStyle' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
147 | b.setButtonType(type)
148 | return b
AppKit.NSButton:44:14: note: mutation of this property is only permitted within the actor
42 | open func setPeriodicDelay(_ delay: Float, interval: Float)
43 | open func getPeriodicDelay(_ delay: UnsafeMutablePointer<Float>, interval: UnsafeMutablePointer<Float>)
44 | open var bezelStyle: NSButton.BezelStyle { get set }
| `- note: mutation of this property is only permitted within the actor
45 | open var isBordered: Bool { get set }
46 | @available(swift, obsoleted: 3, renamed: "isBordered")
/Users/admin/builder/spi-builder-workspace/Sources/DSFToolbar/DSFToolbar.PopoverButton.swift:147:5: warning: call to main actor-isolated instance method 'setButtonType' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
141 |
142 | extension DSFToolbar.PopoverButton {
143 | private func buildButton(type: NSButton.ButtonType) -> NSButton {
| `- note: add '@MainActor' to make instance method 'buildButton(type:)' part of global actor 'MainActor'
144 | let b = NSButton(frame: .zero)
145 | b.translatesAutoresizingMaskIntoConstraints = false
146 | b.bezelStyle = .regularSquare // .texturedRounded
147 | b.setButtonType(type)
| `- warning: call to main actor-isolated instance method 'setButtonType' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
148 | return b
149 | }
AppKit.NSButton:27:15: note: calls to instance method 'setButtonType' from outside of its actor context are implicitly asynchronous
25 | @available(swift, obsoleted: 3, renamed: "init(radioButtonWithTitle:target:action:)")
26 | open class func radioButtonWithTitle(_ title: String, target: Any?, action: Selector?) -> Self
27 | open func setButtonType(_ type: NSButton.ButtonType)
| `- note: calls to instance method 'setButtonType' from outside of its actor context are implicitly asynchronous
28 | open var title: String { get set }
29 | @NSCopying open var attributedTitle: NSAttributedString { get set }
/Users/admin/builder/spi-builder-workspace/Sources/DSFToolbar/DSFToolbar.PopoverButton.swift:165:5: warning: main actor-isolated property 'translatesAutoresizingMaskIntoConstraints' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
163 | fatalError()
164 | }
165 | b.translatesAutoresizingMaskIntoConstraints = true
| `- warning: main actor-isolated property 'translatesAutoresizingMaskIntoConstraints' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
166 | b.removeConstraints(b.constraints)
167 | }
AppKit.NSView:3:25: note: mutation of this property is only permitted within the actor
1 | extension NSView {
2 | @available(macOS 10.7, *)
3 | @MainActor open var translatesAutoresizingMaskIntoConstraints: Bool { get set }
| `- note: mutation of this property is only permitted within the actor
4 | @available(macOS 10.7, *)
5 | open class var requiresConstraintBasedLayout: Bool { get }
/Users/admin/builder/spi-builder-workspace/Sources/DSFToolbar/DSFToolbar.PopoverButton.swift:166:5: warning: call to main actor-isolated instance method 'removeConstraints' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
164 | }
165 | b.translatesAutoresizingMaskIntoConstraints = true
166 | b.removeConstraints(b.constraints)
| `- warning: call to main actor-isolated instance method 'removeConstraints' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
167 | }
168 | }
AppKit.NSView:35:26: note: calls to instance method 'removeConstraints' from outside of its actor context are implicitly asynchronous
33 | open func removeConstraint(_ constraint: NSLayoutConstraint)
34 | @available(macOS 10.7, *)
35 | @MainActor open func removeConstraints(_ constraints: [NSLayoutConstraint])
| `- note: calls to instance method 'removeConstraints' from outside of its actor context are implicitly asynchronous
36 | }
/Users/admin/builder/spi-builder-workspace/Sources/DSFToolbar/DSFToolbar.PopoverButton.swift:166:25: warning: main actor-isolated property 'constraints' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
164 | }
165 | b.translatesAutoresizingMaskIntoConstraints = true
166 | b.removeConstraints(b.constraints)
| `- warning: main actor-isolated property 'constraints' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
167 | }
168 | }
AppKit.NSView:27:14: note: property declared here
25 | open var lastBaselineAnchor: NSLayoutYAxisAnchor { get }
26 | @available(macOS 10.7, *)
27 | open var constraints: [NSLayoutConstraint] { get }
| `- note: property declared here
28 | @available(macOS 10.7, *)
29 | open func addConstraint(_ constraint: NSLayoutConstraint)
/Users/admin/builder/spi-builder-workspace/Sources/DSFToolbar/DSFToolbar.PopupButton.swift:76:15: warning: main actor-isolated default value in a nonisolated context; this is an error in the Swift 6 language mode
74 | // Private
75 |
76 | private var _popupButton = NSPopUpButton(frame: .zero, pullsDown: true)
| `- warning: main actor-isolated default value in a nonisolated context; this is an error in the Swift 6 language mode
77 | private var _popupMenu: NSMenu?
78 | private var _popupButtonItem: NSToolbarItem?
/Users/admin/builder/spi-builder-workspace/Sources/DSFToolbar/DSFToolbar.PopupButton.swift:48:11: warning: main actor-isolated property 'translatesAutoresizingMaskIntoConstraints' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
46 |
47 | let button = self._popupButton
48 | button.translatesAutoresizingMaskIntoConstraints = true
| `- warning: main actor-isolated property 'translatesAutoresizingMaskIntoConstraints' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
49 | button.bezelStyle = .texturedRounded
50 |
AppKit.NSView:3:25: note: mutation of this property is only permitted within the actor
1 | extension NSView {
2 | @available(macOS 10.7, *)
3 | @MainActor open var translatesAutoresizingMaskIntoConstraints: Bool { get set }
| `- note: mutation of this property is only permitted within the actor
4 | @available(macOS 10.7, *)
5 | open class var requiresConstraintBasedLayout: Bool { get }
/Users/admin/builder/spi-builder-workspace/Sources/DSFToolbar/DSFToolbar.PopupButton.swift:49:11: warning: main actor-isolated property 'bezelStyle' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
47 | let button = self._popupButton
48 | button.translatesAutoresizingMaskIntoConstraints = true
49 | button.bezelStyle = .texturedRounded
| `- warning: main actor-isolated property 'bezelStyle' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
50 |
51 | button.imagePosition = .imageOnly
AppKit.NSButton:44:14: note: mutation of this property is only permitted within the actor
42 | open func setPeriodicDelay(_ delay: Float, interval: Float)
43 | open func getPeriodicDelay(_ delay: UnsafeMutablePointer<Float>, interval: UnsafeMutablePointer<Float>)
44 | open var bezelStyle: NSButton.BezelStyle { get set }
| `- note: mutation of this property is only permitted within the actor
45 | open var isBordered: Bool { get set }
46 | @available(swift, obsoleted: 3, renamed: "isBordered")
/Users/admin/builder/spi-builder-workspace/Sources/DSFToolbar/DSFToolbar.PopupButton.swift:51:11: warning: main actor-isolated property 'imagePosition' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
49 | button.bezelStyle = .texturedRounded
50 |
51 | button.imagePosition = .imageOnly
| `- warning: main actor-isolated property 'imagePosition' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
52 | button.imageScaling = .scaleProportionallyDown
53 | (button.cell as? NSPopUpButtonCell)?.arrowPosition = .arrowAtBottom
AppKit.NSButton:58:14: note: mutation of this property is only permitted within the actor
56 | @MainActor open var image: NSImage? { get set }
57 | open var alternateImage: NSImage? { get set }
58 | open var imagePosition: NSControl.ImagePosition { get set }
| `- note: mutation of this property is only permitted within the actor
59 | @available(macOS 10.5, *)
60 | open var imageScaling: NSImageScaling { get set }
/Users/admin/builder/spi-builder-workspace/Sources/DSFToolbar/DSFToolbar.PopupButton.swift:52:11: warning: main actor-isolated property 'imageScaling' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
50 |
51 | button.imagePosition = .imageOnly
52 | button.imageScaling = .scaleProportionallyDown
| `- warning: main actor-isolated property 'imageScaling' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
53 | (button.cell as? NSPopUpButtonCell)?.arrowPosition = .arrowAtBottom
54 |
AppKit.NSButton:60:14: note: mutation of this property is only permitted within the actor
58 | open var imagePosition: NSControl.ImagePosition { get set }
59 | @available(macOS 10.5, *)
60 | open var imageScaling: NSImageScaling { get set }
| `- note: mutation of this property is only permitted within the actor
61 | @available(macOS 10.12, *)
62 | open var imageHugsTitle: Bool { get set }
/Users/admin/builder/spi-builder-workspace/Sources/DSFToolbar/DSFToolbar.PopupButton.swift:53:41: warning: main actor-isolated property 'arrowPosition' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
51 | button.imagePosition = .imageOnly
52 | button.imageScaling = .scaleProportionallyDown
53 | (button.cell as? NSPopUpButtonCell)?.arrowPosition = .arrowAtBottom
| `- warning: main actor-isolated property 'arrowPosition' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
54 |
55 | button.menu = self._popupMenu
AppKit.NSPopUpButtonCell:78:25: note: mutation of this property is only permitted within the actor
76 | @available(swift, obsoleted: 3, renamed: "performClick(withFrame:in:)")
77 | open func performClickWithFrame(_ frame: NSRect, inView controlView: NSView)
78 | @MainActor open var arrowPosition: NSPopUpButton.ArrowPosition { get set }
| `- note: mutation of this property is only permitted within the actor
79 | public convenience init(textCell string: String)
80 | public convenience init(imageCell image: NSImage?)
/Users/admin/builder/spi-builder-workspace/Sources/DSFToolbar/DSFToolbar.PopupButton.swift:53:12: warning: main actor-isolated property 'cell' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
51 | button.imagePosition = .imageOnly
52 | button.imageScaling = .scaleProportionallyDown
53 | (button.cell as? NSPopUpButtonCell)?.arrowPosition = .arrowAtBottom
| `- warning: main actor-isolated property 'cell' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
54 |
55 | button.menu = self._popupMenu
AppKit.NSControl:5:25: note: property declared here
3 | open func setFloatingPointFormat(_ autoRange: Bool, left leftDigits: Int, right rightDigits: Int)
4 | open class var cellClass: AnyClass? { get set }
5 | @MainActor open var cell: NSCell? { get set }
| `- note: property declared here
6 | open func selectedCell() -> NSCell?
7 | open func selectedTag() -> Int
/Users/admin/builder/spi-builder-workspace/Sources/DSFToolbar/DSFToolbar.PopupButton.swift:55:11: warning: main actor-isolated property 'menu' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
53 | (button.cell as? NSPopUpButtonCell)?.arrowPosition = .arrowAtBottom
54 |
55 | button.menu = self._popupMenu
| `- warning: main actor-isolated property 'menu' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
56 |
57 | let a = NSToolbarItem(itemIdentifier: self.identifier)
AppKit.NSPopUpButton:23:25: note: mutation of this property is only permitted within the actor
21 | open class func __pullDownButtonWithTitle(_ title: String, image: NSImage, menu: NSMenu) -> Self
22 | @MainActor public init(frame buttonFrame: NSRect, pullsDown flag: Bool)
23 | @MainActor open var menu: NSMenu? { get set }
| `- note: mutation of this property is only permitted within the actor
24 | open var pullsDown: Bool { get set }
25 | open var autoenablesItems: Bool { get set }
/Users/admin/builder/spi-builder-workspace/Sources/DSFToolbar/DSFToolbar.PopupButton.swift:57:12: warning: call to main actor-isolated initializer 'init(itemIdentifier:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
55 | button.menu = self._popupMenu
56 |
57 | let a = NSToolbarItem(itemIdentifier: self.identifier)
| `- warning: call to main actor-isolated initializer 'init(itemIdentifier:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
58 | a.view = self._popupButton
59 | a.target = self
AppKit.NSToolbarItem:2:23: note: calls to initializer 'init(itemIdentifier:)' from outside of its actor context are implicitly asynchronous
1 | @MainActor open class NSToolbarItem : NSObject, NSCopying {
2 | @MainActor public init(itemIdentifier: NSToolbarItem.Identifier)
| `- note: calls to initializer 'init(itemIdentifier:)' from outside of its actor context are implicitly asynchronous
3 | open var itemIdentifier: NSToolbarItem.Identifier { get }
4 | weak open var toolbar: NSToolbar? { get }
/Users/admin/builder/spi-builder-workspace/Sources/DSFToolbar/DSFToolbar.PopupButton.swift:58:6: warning: main actor-isolated property 'view' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
56 |
57 | let a = NSToolbarItem(itemIdentifier: self.identifier)
58 | a.view = self._popupButton
| `- warning: main actor-isolated property 'view' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
59 | a.target = self
60 | a.action = #selector(self.dummyTargetSelector(_:))
AppKit.NSToolbarItem:30:14: note: mutation of this property is only permitted within the actor
28 | @available(swift, obsoleted: 3, renamed: "isNavigational")
29 | open var navigational: Bool { get set }
30 | open var view: NSView? { get set }
| `- note: mutation of this property is only permitted within the actor
31 | @available(macOS 12.0, *)
32 | open var isVisible: Bool { get }
/Users/admin/builder/spi-builder-workspace/Sources/DSFToolbar/DSFToolbar.PopupButton.swift:59:6: warning: main actor-isolated property 'target' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
57 | let a = NSToolbarItem(itemIdentifier: self.identifier)
58 | a.view = self._popupButton
59 | a.target = self
| `- warning: main actor-isolated property 'target' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
60 | a.action = #selector(self.dummyTargetSelector(_:))
61 | self._popupButtonItem = a
AppKit.NSToolbarItem:12:19: note: mutation of this property is only permitted within the actor
10 | open var menuFormRepresentation: NSMenuItem? { get set }
11 | open var tag: Int { get set }
12 | weak open var target: AnyObject? { get set }
| `- note: mutation of this property is only permitted within the actor
13 | open var action: Selector? { get set }
14 | open var isEnabled: Bool { get set }
/Users/admin/builder/spi-builder-workspace/Sources/DSFToolbar/DSFToolbar.PopupButton.swift:60:6: warning: main actor-isolated property 'action' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
58 | a.view = self._popupButton
59 | a.target = self
60 | a.action = #selector(self.dummyTargetSelector(_:))
| `- warning: main actor-isolated property 'action' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
61 | self._popupButtonItem = a
62 |
AppKit.NSToolbarItem:13:14: note: mutation of this property is only permitted within the actor
11 | open var tag: Int { get set }
12 | weak open var target: AnyObject? { get set }
13 | open var action: Selector? { get set }
| `- note: mutation of this property is only permitted within the actor
14 | open var isEnabled: Bool { get set }
15 | @available(swift, obsoleted: 3, renamed: "isEnabled")
/Users/admin/builder/spi-builder-workspace/Sources/DSFToolbar/DSFToolbar.PopupButton.swift:85:27: warning: main actor-isolated property 'isEnabled' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
83 |
84 | override func isEnabledDidChange(to state: Bool) {
85 | self._popupButtonItem?.isEnabled = state
| `- warning: main actor-isolated property 'isEnabled' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
86 | self._popupButton.isEnabled = state
87 | }
AppKit.NSToolbarItem:14:14: note: mutation of this property is only permitted within the actor
12 | weak open var target: AnyObject? { get set }
13 | open var action: Selector? { get set }
14 | open var isEnabled: Bool { get set }
| `- note: mutation of this property is only permitted within the actor
15 | @available(swift, obsoleted: 3, renamed: "isEnabled")
16 | open var enabled: Bool { get set }
/Users/admin/builder/spi-builder-workspace/Sources/DSFToolbar/DSFToolbar.PopupButton.swift:86:22: warning: main actor-isolated property 'isEnabled' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
84 | override func isEnabledDidChange(to state: Bool) {
85 | self._popupButtonItem?.isEnabled = state
86 | self._popupButton.isEnabled = state
| `- warning: main actor-isolated property 'isEnabled' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
87 | }
88 |
AppKit.NSControl:11:14: note: mutation of this property is only permitted within the actor
9 | @available(swift, obsoleted: 3, renamed: "isContinuous")
10 | open var continuous: Bool { get set }
11 | open var isEnabled: Bool { get set }
| `- note: mutation of this property is only permitted within the actor
12 | @available(swift, obsoleted: 3, renamed: "isEnabled")
13 | open var enabled: Bool { get set }
/Users/admin/builder/spi-builder-workspace/Sources/DSFToolbar/DSFToolbar.PopupButton.swift:102:17: warning: main actor-isolated property 'translatesAutoresizingMaskIntoConstraints' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
100 | override func changeToUseLegacySizing() {
101 | // If we're using legacy sizing, we have to remove the constraints first
102 | _popupButton.translatesAutoresizingMaskIntoConstraints = true
| `- warning: main actor-isolated property 'translatesAutoresizingMaskIntoConstraints' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
103 | _popupButton.removeConstraints(_popupButton.constraints)
104 | }
AppKit.NSView:3:25: note: mutation of this property is only permitted within the actor
1 | extension NSView {
2 | @available(macOS 10.7, *)
3 | @MainActor open var translatesAutoresizingMaskIntoConstraints: Bool { get set }
| `- note: mutation of this property is only permitted within the actor
4 | @available(macOS 10.7, *)
5 | open class var requiresConstraintBasedLayout: Bool { get }
/Users/admin/builder/spi-builder-workspace/Sources/DSFToolbar/DSFToolbar.PopupButton.swift:103:17: warning: call to main actor-isolated instance method 'removeConstraints' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
101 | // If we're using legacy sizing, we have to remove the constraints first
102 | _popupButton.translatesAutoresizingMaskIntoConstraints = true
103 | _popupButton.removeConstraints(_popupButton.constraints)
| `- warning: call to main actor-isolated instance method 'removeConstraints' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
104 | }
105 |
AppKit.NSView:35:26: note: calls to instance method 'removeConstraints' from outside of its actor context are implicitly asynchronous
33 | open func removeConstraint(_ constraint: NSLayoutConstraint)
34 | @available(macOS 10.7, *)
35 | @MainActor open func removeConstraints(_ constraints: [NSLayoutConstraint])
| `- note: calls to instance method 'removeConstraints' from outside of its actor context are implicitly asynchronous
36 | }
/Users/admin/builder/spi-builder-workspace/Sources/DSFToolbar/DSFToolbar.PopupButton.swift:103:48: warning: main actor-isolated property 'constraints' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
101 | // If we're using legacy sizing, we have to remove the constraints first
102 | _popupButton.translatesAutoresizingMaskIntoConstraints = true
103 | _popupButton.removeConstraints(_popupButton.constraints)
| `- warning: main actor-isolated property 'constraints' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
104 | }
105 |
AppKit.NSView:27:14: note: property declared here
25 | open var lastBaselineAnchor: NSLayoutYAxisAnchor { get }
26 | @available(macOS 10.7, *)
27 | open var constraints: [NSLayoutConstraint] { get }
| `- note: property declared here
28 | @available(macOS 10.7, *)
29 | open func addConstraint(_ constraint: NSLayoutConstraint)
/Users/admin/builder/spi-builder-workspace/Sources/DSFToolbar/DSFToolbar.PopupButton.swift:165:22: warning: main actor-isolated property 'imagePosition' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
147 |
148 | extension DSFToolbar.PopupButton {
149 | private func updateDisplay() {
| `- note: add '@MainActor' to make instance method 'updateDisplay()' part of global actor 'MainActor'
150 | guard let p = self._popupMenu,
151 | p.items.count > 0,
:
163 | // If there's an image and no title, set the state to imageOnly
164 | if self._title.count == 0, self._image != nil {
165 | self._popupButton.imagePosition = .imageOnly
| `- warning: main actor-isolated property 'imagePosition' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
166 | }
167 | else if self._title.count > 0, self._image == nil {
AppKit.NSButton:58:14: note: mutation of this property is only permitted within the actor
56 | @MainActor open var image: NSImage? { get set }
57 | open var alternateImage: NSImage? { get set }
58 | open var imagePosition: NSControl.ImagePosition { get set }
| `- note: mutation of this property is only permitted within the actor
59 | @available(macOS 10.5, *)
60 | open var imageScaling: NSImageScaling { get set }
/Users/admin/builder/spi-builder-workspace/Sources/DSFToolbar/DSFToolbar.PopupButton.swift:168:22: warning: main actor-isolated property 'imagePosition' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
147 |
148 | extension DSFToolbar.PopupButton {
149 | private func updateDisplay() {
| `- note: add '@MainActor' to make instance method 'updateDisplay()' part of global actor 'MainActor'
150 | guard let p = self._popupMenu,
151 | p.items.count > 0,
:
166 | }
167 | else if self._title.count > 0, self._image == nil {
168 | self._popupButton.imagePosition = .noImage
| `- warning: main actor-isolated property 'imagePosition' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
169 | }
170 | else {
AppKit.NSButton:58:14: note: mutation of this property is only permitted within the actor
56 | @MainActor open var image: NSImage? { get set }
57 | open var alternateImage: NSImage? { get set }
58 | open var imagePosition: NSControl.ImagePosition { get set }
| `- note: mutation of this property is only permitted within the actor
59 | @available(macOS 10.5, *)
60 | open var imageScaling: NSImageScaling { get set }
/Users/admin/builder/spi-builder-workspace/Sources/DSFToolbar/DSFToolbar.PopupButton.swift:171:22: warning: main actor-isolated property 'imagePosition' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
147 |
148 | extension DSFToolbar.PopupButton {
149 | private func updateDisplay() {
| `- note: add '@MainActor' to make instance method 'updateDisplay()' part of global actor 'MainActor'
150 | guard let p = self._popupMenu,
151 | p.items.count > 0,
:
169 | }
170 | else {
171 | self._popupButton.imagePosition = self._imagePosition
| `- warning: main actor-isolated property 'imagePosition' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
172 | }
173 | }
AppKit.NSButton:58:14: note: mutation of this property is only permitted within the actor
56 | @MainActor open var image: NSImage? { get set }
57 | open var alternateImage: NSImage? { get set }
58 | open var imagePosition: NSControl.ImagePosition { get set }
| `- note: mutation of this property is only permitted within the actor
59 | @available(macOS 10.5, *)
60 | open var imageScaling: NSImageScaling { get set }
[27/37] Compiling DSFToolbar DSFToolbar.PopupButton.swift
/Users/admin/builder/spi-builder-workspace/Sources/DSFToolbar/DSFToolbar.PopoverButton.swift:67:17: warning: main actor-isolated property 'target' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
65 | }
66 |
67 | self.button?.target = self
| `- warning: main actor-isolated property 'target' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
68 | self.button?.action = #selector(self.action(_:))
69 |
AppKit.NSControl:4:30: note: mutation of this property is only permitted within the actor
2 | public init(frame frameRect: NSRect)
3 | public init?(coder: NSCoder)
4 | @MainActor weak open var target: AnyObject? { get set }
| `- note: mutation of this property is only permitted within the actor
5 | open var action: Selector? { get set }
6 | open var tag: Int { get set }
/Users/admin/builder/spi-builder-workspace/Sources/DSFToolbar/DSFToolbar.PopoverButton.swift:68:17: warning: main actor-isolated property 'action' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
66 |
67 | self.button?.target = self
68 | self.button?.action = #selector(self.action(_:))
| `- warning: main actor-isolated property 'action' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
69 |
70 | let a = NSToolbarItem(itemIdentifier: self.identifier)
AppKit.NSControl:5:14: note: mutation of this property is only permitted within the actor
3 | public init?(coder: NSCoder)
4 | @MainActor weak open var target: AnyObject? { get set }
5 | open var action: Selector? { get set }
| `- note: mutation of this property is only permitted within the actor
6 | open var tag: Int { get set }
7 | open var ignoresMultiClick: Bool { get set }
/Users/admin/builder/spi-builder-workspace/Sources/DSFToolbar/DSFToolbar.PopoverButton.swift:70:12: warning: call to main actor-isolated initializer 'init(itemIdentifier:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
68 | self.button?.action = #selector(self.action(_:))
69 |
70 | let a = NSToolbarItem(itemIdentifier: self.identifier)
| `- warning: call to main actor-isolated initializer 'init(itemIdentifier:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
71 | a.view = self.button
72 | a.label = "fish"
AppKit.NSToolbarItem:2:23: note: calls to initializer 'init(itemIdentifier:)' from outside of its actor context are implicitly asynchronous
1 | @MainActor open class NSToolbarItem : NSObject, NSCopying {
2 | @MainActor public init(itemIdentifier: NSToolbarItem.Identifier)
| `- note: calls to initializer 'init(itemIdentifier:)' from outside of its actor context are implicitly asynchronous
3 | open var itemIdentifier: NSToolbarItem.Identifier { get }
4 | weak open var toolbar: NSToolbar? { get }
/Users/admin/builder/spi-builder-workspace/Sources/DSFToolbar/DSFToolbar.PopoverButton.swift:71:6: warning: main actor-isolated property 'view' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
69 |
70 | let a = NSToolbarItem(itemIdentifier: self.identifier)
71 | a.view = self.button
| `- warning: main actor-isolated property 'view' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
72 | a.label = "fish"
73 | self.buttonToolbarItem = a
AppKit.NSToolbarItem:30:14: note: mutation of this property is only permitted within the actor
28 | @available(swift, obsoleted: 3, renamed: "isNavigational")
29 | open var navigational: Bool { get set }
30 | open var view: NSView? { get set }
| `- note: mutation of this property is only permitted within the actor
31 | @available(macOS 12.0, *)
32 | open var isVisible: Bool { get }
/Users/admin/builder/spi-builder-workspace/Sources/DSFToolbar/DSFToolbar.PopoverButton.swift:72:6: warning: main actor-isolated property 'label' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
70 | let a = NSToolbarItem(itemIdentifier: self.identifier)
71 | a.view = self.button
72 | a.label = "fish"
| `- warning: main actor-isolated property 'label' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
73 | self.buttonToolbarItem = a
74 | }
AppKit.NSToolbarItem:5:14: note: mutation of this property is only permitted within the actor
3 | open var itemIdentifier: NSToolbarItem.Identifier { get }
4 | weak open var toolbar: NSToolbar? { get }
5 | open var label: String { get set }
| `- note: mutation of this property is only permitted within the actor
6 | open var paletteLabel: String { get set }
7 | @available(macOS 13.0, *)
/Users/admin/builder/spi-builder-workspace/Sources/DSFToolbar/DSFToolbar.PopoverButton.swift:90:19: warning: call to main actor-isolated instance method 'close()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
88 | override public func close() {
89 | // Make sure the popover is closed
90 | self._popover?.close()
| `- warning: call to main actor-isolated instance method 'close()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
91 | self._popover = nil
92 |
AppKit.NSPopover:34:26: note: calls to instance method 'close()' from outside of its actor context are implicitly asynchronous
32 | open func showRelativeToToolbarItem(_ toolbarItem: NSToolbarItem)
33 | @IBAction open func performClose(_ sender: Any?)
34 | @MainActor open func close()
| `- note: calls to instance method 'close()' from outside of its actor context are implicitly asynchronous
35 | @available(macOS 10.7, *)
36 | open func accessibilityFrame() -> NSRect
/Users/admin/builder/spi-builder-workspace/Sources/DSFToolbar/DSFToolbar.PopoverButton.swift:93:17: warning: main actor-isolated property 'target' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
91 | self._popover = nil
92 |
93 | self.button?.target = nil
| `- warning: main actor-isolated property 'target' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
94 | self.button = nil
95 |
AppKit.NSControl:4:30: note: mutation of this property is only permitted within the actor
2 | public init(frame frameRect: NSRect)
3 | public init?(coder: NSCoder)
4 | @MainActor weak open var target: AnyObject? { get set }
| `- note: mutation of this property is only permitted within the actor
5 | open var action: Selector? { get set }
6 | open var tag: Int { get set }
/Users/admin/builder/spi-builder-workspace/Sources/DSFToolbar/DSFToolbar.PopoverButton.swift:96:28: warning: main actor-isolated property 'view' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
94 | self.button = nil
95 |
96 | self.buttonToolbarItem?.view = nil
| `- warning: main actor-isolated property 'view' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
97 | self.buttonToolbarItem = nil
98 |
AppKit.NSToolbarItem:30:14: note: mutation of this property is only permitted within the actor
28 | @available(swift, obsoleted: 3, renamed: "isNavigational")
29 | open var navigational: Bool { get set }
30 | open var view: NSView? { get set }
| `- note: mutation of this property is only permitted within the actor
31 | @available(macOS 12.0, *)
32 | open var isVisible: Bool { get }
/Users/admin/builder/spi-builder-workspace/Sources/DSFToolbar/DSFToolbar.PopoverButton.swift:118:17: warning: main actor-isolated property 'image' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
114 | /// - Returns: self
115 | @discardableResult
116 | public func image(_ image: NSImage) -> Self {
| `- note: add '@MainActor' to make instance method 'image' part of global actor 'MainActor'
117 | self._image = image
118 | self.button?.image = image
| `- warning: main actor-isolated property 'image' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
119 | return self
120 | }
AppKit.NSButton:56:25: note: mutation of this property is only permitted within the actor
54 | @available(macOS 10.14, *)
55 | @NSCopying open var contentTintColor: NSColor? { get set }
56 | @MainActor open var image: NSImage? { get set }
| `- note: mutation of this property is only permitted within the actor
57 | open var alternateImage: NSImage? { get set }
58 | open var imagePosition: NSControl.ImagePosition { get set }
/Users/admin/builder/spi-builder-workspace/Sources/DSFToolbar/DSFToolbar.PopoverButton.swift:128:7: warning: call to main actor-isolated instance method 'close()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
124 | }
125 |
126 | private func showPopover() {
| `- note: add '@MainActor' to make instance method 'showPopover()' part of global actor 'MainActor'
127 | if let p = _popover {
128 | p.close()
| `- warning: call to main actor-isolated instance method 'close()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
129 | self._popover = nil
130 | }
AppKit.NSPopover:34:26: note: calls to instance method 'close()' from outside of its actor context are implicitly asynchronous
32 | open func showRelativeToToolbarItem(_ toolbarItem: NSToolbarItem)
33 | @IBAction open func performClose(_ sender: Any?)
34 | @MainActor open func close()
| `- note: calls to instance method 'close()' from outside of its actor context are implicitly asynchronous
35 | @available(macOS 10.7, *)
36 | open func accessibilityFrame() -> NSRect
/Users/admin/builder/spi-builder-workspace/Sources/DSFToolbar/DSFToolbar.PopoverButton.swift:132:12: warning: call to main actor-isolated initializer 'init()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
124 | }
125 |
126 | private func showPopover() {
| `- note: add '@MainActor' to make instance method 'showPopover()' part of global actor 'MainActor'
127 | if let p = _popover {
128 | p.close()
:
130 | }
131 |
132 | let p = NSPopover()
| `- warning: call to main actor-isolated initializer 'init()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
133 | p.contentViewController = self._controller
134 | p.behavior = .transient
AppKit.NSPopover:3:12: note: calls to initializer 'init()' from outside of its actor context are implicitly asynchronous
1 | @available(macOS 10.7, *)
2 | @MainActor open class NSPopover : NSResponder, NSAppearanceCustomization, NSAccessibilityElementProtocol, NSAccessibilityProtocol {
3 | public init()
| `- note: calls to initializer 'init()' from outside of its actor context are implicitly asynchronous
4 | public init?(coder: NSCoder)
5 | @IBOutlet weak open var delegate: (any NSPopoverDelegate)? { get set }
/Users/admin/builder/spi-builder-workspace/Sources/DSFToolbar/DSFToolbar.PopoverButton.swift:133:6: warning: main actor-isolated property 'contentViewController' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
124 | }
125 |
126 | private func showPopover() {
| `- note: add '@MainActor' to make instance method 'showPopover()' part of global actor 'MainActor'
127 | if let p = _popover {
128 | p.close()
:
131 |
132 | let p = NSPopover()
133 | p.contentViewController = self._controller
| `- warning: main actor-isolated property 'contentViewController' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
134 | p.behavior = .transient
135 | p.delegate = self
AppKit.NSPopover:12:24: note: mutation of this property is only permitted within the actor
10 | open var behavior: NSPopover.Behavior { get set }
11 | open var animates: Bool { get set }
12 | @IBOutlet open var contentViewController: NSViewController? { get set }
| `- note: mutation of this property is only permitted within the actor
13 | open var contentSize: NSSize { get set }
14 | open var isShown: Bool { get }
/Users/admin/builder/spi-builder-workspace/Sources/DSFToolbar/DSFToolbar.PopoverButton.swift:134:6: warning: main actor-isolated property 'behavior' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
124 | }
125 |
126 | private func showPopover() {
| `- note: add '@MainActor' to make instance method 'showPopover()' part of global actor 'MainActor'
127 | if let p = _popover {
128 | p.close()
:
132 | let p = NSPopover()
133 | p.contentViewController = self._controller
134 | p.behavior = .transient
| `- warning: main actor-isolated property 'behavior' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
135 | p.delegate = self
136 |
AppKit.NSPopover:10:14: note: mutation of this property is only permitted within the actor
8 | @available(macOS 10.10, *)
9 | open var effectiveAppearance: NSAppearance { get }
10 | open var behavior: NSPopover.Behavior { get set }
| `- note: mutation of this property is only permitted within the actor
11 | open var animates: Bool { get set }
12 | @IBOutlet open var contentViewController: NSViewController? { get set }
/Users/admin/builder/spi-builder-workspace/Sources/DSFToolbar/DSFToolbar.PopoverButton.swift:135:6: warning: main actor-isolated property 'delegate' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
124 | }
125 |
126 | private func showPopover() {
| `- note: add '@MainActor' to make instance method 'showPopover()' part of global actor 'MainActor'
127 | if let p = _popover {
128 | p.close()
:
133 | p.contentViewController = self._controller
134 | p.behavior = .transient
135 | p.delegate = self
| `- warning: main actor-isolated property 'delegate' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
136 |
137 | p.show(relativeTo: self.button!.bounds, of: self.button!, preferredEdge: .maxY)
AppKit.NSPopover:5:29: note: mutation of this property is only permitted within the actor
3 | public init()
4 | public init?(coder: NSCoder)
5 | @IBOutlet weak open var delegate: (any NSPopoverDelegate)? { get set }
| `- note: mutation of this property is only permitted within the actor
6 | @available(macOS 10.10, *)
7 | open var appearance: NSAppearance? { get set }
/Users/admin/builder/spi-builder-workspace/Sources/DSFToolbar/DSFToolbar.PopoverButton.swift:137:6: warning: call to main actor-isolated instance method 'show(relativeTo:of:preferredEdge:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
124 | }
125 |
126 | private func showPopover() {
| `- note: add '@MainActor' to make instance method 'showPopover()' part of global actor 'MainActor'
127 | if let p = _popover {
128 | p.close()
:
135 | p.delegate = self
136 |
137 | p.show(relativeTo: self.button!.bounds, of: self.button!, preferredEdge: .maxY)
| `- warning: call to main actor-isolated instance method 'show(relativeTo:of:preferredEdge:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
138 | }
139 | }
AppKit.NSPopover:25:15: note: calls to instance method 'show(relativeTo:of:preferredEdge:)' from outside of its actor context are implicitly asynchronous
23 | @available(macOS 14.0, *)
24 | open var hasFullSizeContent: Bool { get set }
25 | open func show(relativeTo positioningRect: NSRect, of positioningView: NSView, preferredEdge: NSRectEdge)
| `- note: calls to instance method 'show(relativeTo:of:preferredEdge:)' from outside of its actor context are implicitly asynchronous
26 | @available(swift, obsoleted: 3, renamed: "show(relativeTo:of:preferredEdge:)")
27 | open func showRelativeToRect(_ positioningRect: NSRect, ofView positioningView: NSView, preferredEdge: NSRectEdge)
/Users/admin/builder/spi-builder-workspace/Sources/DSFToolbar/DSFToolbar.PopoverButton.swift:137:36: warning: main actor-isolated property 'bounds' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
124 | }
125 |
126 | private func showPopover() {
| `- note: add '@MainActor' to make instance method 'showPopover()' part of global actor 'MainActor'
127 | if let p = _popover {
128 | p.close()
:
135 | p.delegate = self
136 |
137 | p.show(relativeTo: self.button!.bounds, of: self.button!, preferredEdge: .maxY)
| `- warning: main actor-isolated property 'bounds' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
138 | }
139 | }
AppKit.NSView:76:25: note: property declared here
74 | @available(swift, obsoleted: 3, renamed: "rotate(byDegrees:)")
75 | open func rotateByAngle(_ angle: CGFloat)
76 | @MainActor open var bounds: NSRect { get set }
| `- note: property declared here
77 | open var isFlipped: Bool { get }
78 | @available(swift, obsoleted: 3, renamed: "isFlipped")
/Users/admin/builder/spi-builder-workspace/Sources/DSFToolbar/DSFToolbar.PopoverButton.swift:144:11: warning: call to main actor-isolated initializer 'init(frame:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
141 |
142 | extension DSFToolbar.PopoverButton {
143 | private func buildButton(type: NSButton.ButtonType) -> NSButton {
| `- note: add '@MainActor' to make instance method 'buildButton(type:)' part of global actor 'MainActor'
144 | let b = NSButton(frame: .zero)
| `- warning: call to main actor-isolated initializer 'init(frame:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
145 | b.translatesAutoresizingMaskIntoConstraints = false
146 | b.bezelStyle = .regularSquare // .texturedRounded
AppKit.NSButton:86:12: note: calls to initializer 'init(frame:)' from outside of its actor context are implicitly asynchronous
84 | @available(macOS 10.13, *)
85 | @NSCopying open var activeCompressionOptions: NSUserInterfaceCompressionOptions { get }
86 | public init(frame frameRect: NSRect)
| `- note: calls to initializer 'init(frame:)' from outside of its actor context are implicitly asynchronous
87 | public init?(coder: NSCoder)
88 | public convenience init()
/Users/admin/builder/spi-builder-workspace/Sources/DSFToolbar/DSFToolbar.PopoverButton.swift:145:5: warning: main actor-isolated property 'translatesAutoresizingMaskIntoConstraints' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
141 |
142 | extension DSFToolbar.PopoverButton {
143 | private func buildButton(type: NSButton.ButtonType) -> NSButton {
| `- note: add '@MainActor' to make instance method 'buildButton(type:)' part of global actor 'MainActor'
144 | let b = NSButton(frame: .zero)
145 | b.translatesAutoresizingMaskIntoConstraints = false
| `- warning: main actor-isolated property 'translatesAutoresizingMaskIntoConstraints' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
146 | b.bezelStyle = .regularSquare // .texturedRounded
147 | b.setButtonType(type)
AppKit.NSView:3:25: note: mutation of this property is only permitted within the actor
1 | extension NSView {
2 | @available(macOS 10.7, *)
3 | @MainActor open var translatesAutoresizingMaskIntoConstraints: Bool { get set }
| `- note: mutation of this property is only permitted within the actor
4 | @available(macOS 10.7, *)
5 | open class var requiresConstraintBasedLayout: Bool { get }
/Users/admin/builder/spi-builder-workspace/Sources/DSFToolbar/DSFToolbar.PopoverButton.swift:146:5: warning: main actor-isolated property 'bezelStyle' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
141 |
142 | extension DSFToolbar.PopoverButton {
143 | private func buildButton(type: NSButton.ButtonType) -> NSButton {
| `- note: add '@MainActor' to make instance method 'buildButton(type:)' part of global actor 'MainActor'
144 | let b = NSButton(frame: .zero)
145 | b.translatesAutoresizingMaskIntoConstraints = false
146 | b.bezelStyle = .regularSquare // .texturedRounded
| `- warning: main actor-isolated property 'bezelStyle' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
147 | b.setButtonType(type)
148 | return b
AppKit.NSButton:44:14: note: mutation of this property is only permitted within the actor
42 | open func setPeriodicDelay(_ delay: Float, interval: Float)
43 | open func getPeriodicDelay(_ delay: UnsafeMutablePointer<Float>, interval: UnsafeMutablePointer<Float>)
44 | open var bezelStyle: NSButton.BezelStyle { get set }
| `- note: mutation of this property is only permitted within the actor
45 | open var isBordered: Bool { get set }
46 | @available(swift, obsoleted: 3, renamed: "isBordered")
/Users/admin/builder/spi-builder-workspace/Sources/DSFToolbar/DSFToolbar.PopoverButton.swift:147:5: warning: call to main actor-isolated instance method 'setButtonType' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
141 |
142 | extension DSFToolbar.PopoverButton {
143 | private func buildButton(type: NSButton.ButtonType) -> NSButton {
| `- note: add '@MainActor' to make instance method 'buildButton(type:)' part of global actor 'MainActor'
144 | let b = NSButton(frame: .zero)
145 | b.translatesAutoresizingMaskIntoConstraints = false
146 | b.bezelStyle = .regularSquare // .texturedRounded
147 | b.setButtonType(type)
| `- warning: call to main actor-isolated instance method 'setButtonType' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
148 | return b
149 | }
AppKit.NSButton:27:15: note: calls to instance method 'setButtonType' from outside of its actor context are implicitly asynchronous
25 | @available(swift, obsoleted: 3, renamed: "init(radioButtonWithTitle:target:action:)")
26 | open class func radioButtonWithTitle(_ title: String, target: Any?, action: Selector?) -> Self
27 | open func setButtonType(_ type: NSButton.ButtonType)
| `- note: calls to instance method 'setButtonType' from outside of its actor context are implicitly asynchronous
28 | open var title: String { get set }
29 | @NSCopying open var attributedTitle: NSAttributedString { get set }
/Users/admin/builder/spi-builder-workspace/Sources/DSFToolbar/DSFToolbar.PopoverButton.swift:165:5: warning: main actor-isolated property 'translatesAutoresizingMaskIntoConstraints' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
163 | fatalError()
164 | }
165 | b.translatesAutoresizingMaskIntoConstraints = true
| `- warning: main actor-isolated property 'translatesAutoresizingMaskIntoConstraints' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
166 | b.removeConstraints(b.constraints)
167 | }
AppKit.NSView:3:25: note: mutation of this property is only permitted within the actor
1 | extension NSView {
2 | @available(macOS 10.7, *)
3 | @MainActor open var translatesAutoresizingMaskIntoConstraints: Bool { get set }
| `- note: mutation of this property is only permitted within the actor
4 | @available(macOS 10.7, *)
5 | open class var requiresConstraintBasedLayout: Bool { get }
/Users/admin/builder/spi-builder-workspace/Sources/DSFToolbar/DSFToolbar.PopoverButton.swift:166:5: warning: call to main actor-isolated instance method 'removeConstraints' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
164 | }
165 | b.translatesAutoresizingMaskIntoConstraints = true
166 | b.removeConstraints(b.constraints)
| `- warning: call to main actor-isolated instance method 'removeConstraints' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
167 | }
168 | }
AppKit.NSView:35:26: note: calls to instance method 'removeConstraints' from outside of its actor context are implicitly asynchronous
33 | open func removeConstraint(_ constraint: NSLayoutConstraint)
34 | @available(macOS 10.7, *)
35 | @MainActor open func removeConstraints(_ constraints: [NSLayoutConstraint])
| `- note: calls to instance method 'removeConstraints' from outside of its actor context are implicitly asynchronous
36 | }
/Users/admin/builder/spi-builder-workspace/Sources/DSFToolbar/DSFToolbar.PopoverButton.swift:166:25: warning: main actor-isolated property 'constraints' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
164 | }
165 | b.translatesAutoresizingMaskIntoConstraints = true
166 | b.removeConstraints(b.constraints)
| `- warning: main actor-isolated property 'constraints' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
167 | }
168 | }
AppKit.NSView:27:14: note: property declared here
25 | open var lastBaselineAnchor: NSLayoutYAxisAnchor { get }
26 | @available(macOS 10.7, *)
27 | open var constraints: [NSLayoutConstraint] { get }
| `- note: property declared here
28 | @available(macOS 10.7, *)
29 | open func addConstraint(_ constraint: NSLayoutConstraint)
/Users/admin/builder/spi-builder-workspace/Sources/DSFToolbar/DSFToolbar.PopupButton.swift:76:15: warning: main actor-isolated default value in a nonisolated context; this is an error in the Swift 6 language mode
74 | // Private
75 |
76 | private var _popupButton = NSPopUpButton(frame: .zero, pullsDown: true)
| `- warning: main actor-isolated default value in a nonisolated context; this is an error in the Swift 6 language mode
77 | private var _popupMenu: NSMenu?
78 | private var _popupButtonItem: NSToolbarItem?
/Users/admin/builder/spi-builder-workspace/Sources/DSFToolbar/DSFToolbar.PopupButton.swift:48:11: warning: main actor-isolated property 'translatesAutoresizingMaskIntoConstraints' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
46 |
47 | let button = self._popupButton
48 | button.translatesAutoresizingMaskIntoConstraints = true
| `- warning: main actor-isolated property 'translatesAutoresizingMaskIntoConstraints' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
49 | button.bezelStyle = .texturedRounded
50 |
AppKit.NSView:3:25: note: mutation of this property is only permitted within the actor
1 | extension NSView {
2 | @available(macOS 10.7, *)
3 | @MainActor open var translatesAutoresizingMaskIntoConstraints: Bool { get set }
| `- note: mutation of this property is only permitted within the actor
4 | @available(macOS 10.7, *)
5 | open class var requiresConstraintBasedLayout: Bool { get }
/Users/admin/builder/spi-builder-workspace/Sources/DSFToolbar/DSFToolbar.PopupButton.swift:49:11: warning: main actor-isolated property 'bezelStyle' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
47 | let button = self._popupButton
48 | button.translatesAutoresizingMaskIntoConstraints = true
49 | button.bezelStyle = .texturedRounded
| `- warning: main actor-isolated property 'bezelStyle' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
50 |
51 | button.imagePosition = .imageOnly
AppKit.NSButton:44:14: note: mutation of this property is only permitted within the actor
42 | open func setPeriodicDelay(_ delay: Float, interval: Float)
43 | open func getPeriodicDelay(_ delay: UnsafeMutablePointer<Float>, interval: UnsafeMutablePointer<Float>)
44 | open var bezelStyle: NSButton.BezelStyle { get set }
| `- note: mutation of this property is only permitted within the actor
45 | open var isBordered: Bool { get set }
46 | @available(swift, obsoleted: 3, renamed: "isBordered")
/Users/admin/builder/spi-builder-workspace/Sources/DSFToolbar/DSFToolbar.PopupButton.swift:51:11: warning: main actor-isolated property 'imagePosition' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
49 | button.bezelStyle = .texturedRounded
50 |
51 | button.imagePosition = .imageOnly
| `- warning: main actor-isolated property 'imagePosition' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
52 | button.imageScaling = .scaleProportionallyDown
53 | (button.cell as? NSPopUpButtonCell)?.arrowPosition = .arrowAtBottom
AppKit.NSButton:58:14: note: mutation of this property is only permitted within the actor
56 | @MainActor open var image: NSImage? { get set }
57 | open var alternateImage: NSImage? { get set }
58 | open var imagePosition: NSControl.ImagePosition { get set }
| `- note: mutation of this property is only permitted within the actor
59 | @available(macOS 10.5, *)
60 | open var imageScaling: NSImageScaling { get set }
/Users/admin/builder/spi-builder-workspace/Sources/DSFToolbar/DSFToolbar.PopupButton.swift:52:11: warning: main actor-isolated property 'imageScaling' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
50 |
51 | button.imagePosition = .imageOnly
52 | button.imageScaling = .scaleProportionallyDown
| `- warning: main actor-isolated property 'imageScaling' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
53 | (button.cell as? NSPopUpButtonCell)?.arrowPosition = .arrowAtBottom
54 |
AppKit.NSButton:60:14: note: mutation of this property is only permitted within the actor
58 | open var imagePosition: NSControl.ImagePosition { get set }
59 | @available(macOS 10.5, *)
60 | open var imageScaling: NSImageScaling { get set }
| `- note: mutation of this property is only permitted within the actor
61 | @available(macOS 10.12, *)
62 | open var imageHugsTitle: Bool { get set }
/Users/admin/builder/spi-builder-workspace/Sources/DSFToolbar/DSFToolbar.PopupButton.swift:53:41: warning: main actor-isolated property 'arrowPosition' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
51 | button.imagePosition = .imageOnly
52 | button.imageScaling = .scaleProportionallyDown
53 | (button.cell as? NSPopUpButtonCell)?.arrowPosition = .arrowAtBottom
| `- warning: main actor-isolated property 'arrowPosition' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
54 |
55 | button.menu = self._popupMenu
AppKit.NSPopUpButtonCell:78:25: note: mutation of this property is only permitted within the actor
76 | @available(swift, obsoleted: 3, renamed: "performClick(withFrame:in:)")
77 | open func performClickWithFrame(_ frame: NSRect, inView controlView: NSView)
78 | @MainActor open var arrowPosition: NSPopUpButton.ArrowPosition { get set }
| `- note: mutation of this property is only permitted within the actor
79 | public convenience init(textCell string: String)
80 | public convenience init(imageCell image: NSImage?)
/Users/admin/builder/spi-builder-workspace/Sources/DSFToolbar/DSFToolbar.PopupButton.swift:53:12: warning: main actor-isolated property 'cell' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
51 | button.imagePosition = .imageOnly
52 | button.imageScaling = .scaleProportionallyDown
53 | (button.cell as? NSPopUpButtonCell)?.arrowPosition = .arrowAtBottom
| `- warning: main actor-isolated property 'cell' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
54 |
55 | button.menu = self._popupMenu
AppKit.NSControl:5:25: note: property declared here
3 | open func setFloatingPointFormat(_ autoRange: Bool, left leftDigits: Int, right rightDigits: Int)
4 | open class var cellClass: AnyClass? { get set }
5 | @MainActor open var cell: NSCell? { get set }
| `- note: property declared here
6 | open func selectedCell() -> NSCell?
7 | open func selectedTag() -> Int
/Users/admin/builder/spi-builder-workspace/Sources/DSFToolbar/DSFToolbar.PopupButton.swift:55:11: warning: main actor-isolated property 'menu' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
53 | (button.cell as? NSPopUpButtonCell)?.arrowPosition = .arrowAtBottom
54 |
55 | button.menu = self._popupMenu
| `- warning: main actor-isolated property 'menu' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
56 |
57 | let a = NSToolbarItem(itemIdentifier: self.identifier)
AppKit.NSPopUpButton:23:25: note: mutation of this property is only permitted within the actor
21 | open class func __pullDownButtonWithTitle(_ title: String, image: NSImage, menu: NSMenu) -> Self
22 | @MainActor public init(frame buttonFrame: NSRect, pullsDown flag: Bool)
23 | @MainActor open var menu: NSMenu? { get set }
| `- note: mutation of this property is only permitted within the actor
24 | open var pullsDown: Bool { get set }
25 | open var autoenablesItems: Bool { get set }
/Users/admin/builder/spi-builder-workspace/Sources/DSFToolbar/DSFToolbar.PopupButton.swift:57:12: warning: call to main actor-isolated initializer 'init(itemIdentifier:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
55 | button.menu = self._popupMenu
56 |
57 | let a = NSToolbarItem(itemIdentifier: self.identifier)
| `- warning: call to main actor-isolated initializer 'init(itemIdentifier:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
58 | a.view = self._popupButton
59 | a.target = self
AppKit.NSToolbarItem:2:23: note: calls to initializer 'init(itemIdentifier:)' from outside of its actor context are implicitly asynchronous
1 | @MainActor open class NSToolbarItem : NSObject, NSCopying {
2 | @MainActor public init(itemIdentifier: NSToolbarItem.Identifier)
| `- note: calls to initializer 'init(itemIdentifier:)' from outside of its actor context are implicitly asynchronous
3 | open var itemIdentifier: NSToolbarItem.Identifier { get }
4 | weak open var toolbar: NSToolbar? { get }
/Users/admin/builder/spi-builder-workspace/Sources/DSFToolbar/DSFToolbar.PopupButton.swift:58:6: warning: main actor-isolated property 'view' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
56 |
57 | let a = NSToolbarItem(itemIdentifier: self.identifier)
58 | a.view = self._popupButton
| `- warning: main actor-isolated property 'view' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
59 | a.target = self
60 | a.action = #selector(self.dummyTargetSelector(_:))
AppKit.NSToolbarItem:30:14: note: mutation of this property is only permitted within the actor
28 | @available(swift, obsoleted: 3, renamed: "isNavigational")
29 | open var navigational: Bool { get set }
30 | open var view: NSView? { get set }
| `- note: mutation of this property is only permitted within the actor
31 | @available(macOS 12.0, *)
32 | open var isVisible: Bool { get }
/Users/admin/builder/spi-builder-workspace/Sources/DSFToolbar/DSFToolbar.PopupButton.swift:59:6: warning: main actor-isolated property 'target' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
57 | let a = NSToolbarItem(itemIdentifier: self.identifier)
58 | a.view = self._popupButton
59 | a.target = self
| `- warning: main actor-isolated property 'target' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
60 | a.action = #selector(self.dummyTargetSelector(_:))
61 | self._popupButtonItem = a
AppKit.NSToolbarItem:12:19: note: mutation of this property is only permitted within the actor
10 | open var menuFormRepresentation: NSMenuItem? { get set }
11 | open var tag: Int { get set }
12 | weak open var target: AnyObject? { get set }
| `- note: mutation of this property is only permitted within the actor
13 | open var action: Selector? { get set }
14 | open var isEnabled: Bool { get set }
/Users/admin/builder/spi-builder-workspace/Sources/DSFToolbar/DSFToolbar.PopupButton.swift:60:6: warning: main actor-isolated property 'action' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
58 | a.view = self._popupButton
59 | a.target = self
60 | a.action = #selector(self.dummyTargetSelector(_:))
| `- warning: main actor-isolated property 'action' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
61 | self._popupButtonItem = a
62 |
AppKit.NSToolbarItem:13:14: note: mutation of this property is only permitted within the actor
11 | open var tag: Int { get set }
12 | weak open var target: AnyObject? { get set }
13 | open var action: Selector? { get set }
| `- note: mutation of this property is only permitted within the actor
14 | open var isEnabled: Bool { get set }
15 | @available(swift, obsoleted: 3, renamed: "isEnabled")
/Users/admin/builder/spi-builder-workspace/Sources/DSFToolbar/DSFToolbar.PopupButton.swift:85:27: warning: main actor-isolated property 'isEnabled' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
83 |
84 | override func isEnabledDidChange(to state: Bool) {
85 | self._popupButtonItem?.isEnabled = state
| `- warning: main actor-isolated property 'isEnabled' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
86 | self._popupButton.isEnabled = state
87 | }
AppKit.NSToolbarItem:14:14: note: mutation of this property is only permitted within the actor
12 | weak open var target: AnyObject? { get set }
13 | open var action: Selector? { get set }
14 | open var isEnabled: Bool { get set }
| `- note: mutation of this property is only permitted within the actor
15 | @available(swift, obsoleted: 3, renamed: "isEnabled")
16 | open var enabled: Bool { get set }
/Users/admin/builder/spi-builder-workspace/Sources/DSFToolbar/DSFToolbar.PopupButton.swift:86:22: warning: main actor-isolated property 'isEnabled' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
84 | override func isEnabledDidChange(to state: Bool) {
85 | self._popupButtonItem?.isEnabled = state
86 | self._popupButton.isEnabled = state
| `- warning: main actor-isolated property 'isEnabled' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
87 | }
88 |
AppKit.NSControl:11:14: note: mutation of this property is only permitted within the actor
9 | @available(swift, obsoleted: 3, renamed: "isContinuous")
10 | open var continuous: Bool { get set }
11 | open var isEnabled: Bool { get set }
| `- note: mutation of this property is only permitted within the actor
12 | @available(swift, obsoleted: 3, renamed: "isEnabled")
13 | open var enabled: Bool { get set }
/Users/admin/builder/spi-builder-workspace/Sources/DSFToolbar/DSFToolbar.PopupButton.swift:102:17: warning: main actor-isolated property 'translatesAutoresizingMaskIntoConstraints' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
100 | override func changeToUseLegacySizing() {
101 | // If we're using legacy sizing, we have to remove the constraints first
102 | _popupButton.translatesAutoresizingMaskIntoConstraints = true
| `- warning: main actor-isolated property 'translatesAutoresizingMaskIntoConstraints' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
103 | _popupButton.removeConstraints(_popupButton.constraints)
104 | }
AppKit.NSView:3:25: note: mutation of this property is only permitted within the actor
1 | extension NSView {
2 | @available(macOS 10.7, *)
3 | @MainActor open var translatesAutoresizingMaskIntoConstraints: Bool { get set }
| `- note: mutation of this property is only permitted within the actor
4 | @available(macOS 10.7, *)
5 | open class var requiresConstraintBasedLayout: Bool { get }
/Users/admin/builder/spi-builder-workspace/Sources/DSFToolbar/DSFToolbar.PopupButton.swift:103:17: warning: call to main actor-isolated instance method 'removeConstraints' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
101 | // If we're using legacy sizing, we have to remove the constraints first
102 | _popupButton.translatesAutoresizingMaskIntoConstraints = true
103 | _popupButton.removeConstraints(_popupButton.constraints)
| `- warning: call to main actor-isolated instance method 'removeConstraints' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
104 | }
105 |
AppKit.NSView:35:26: note: calls to instance method 'removeConstraints' from outside of its actor context are implicitly asynchronous
33 | open func removeConstraint(_ constraint: NSLayoutConstraint)
34 | @available(macOS 10.7, *)
35 | @MainActor open func removeConstraints(_ constraints: [NSLayoutConstraint])
| `- note: calls to instance method 'removeConstraints' from outside of its actor context are implicitly asynchronous
36 | }
/Users/admin/builder/spi-builder-workspace/Sources/DSFToolbar/DSFToolbar.PopupButton.swift:103:48: warning: main actor-isolated property 'constraints' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
101 | // If we're using legacy sizing, we have to remove the constraints first
102 | _popupButton.translatesAutoresizingMaskIntoConstraints = true
103 | _popupButton.removeConstraints(_popupButton.constraints)
| `- warning: main actor-isolated property 'constraints' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
104 | }
105 |
AppKit.NSView:27:14: note: property declared here
25 | open var lastBaselineAnchor: NSLayoutYAxisAnchor { get }
26 | @available(macOS 10.7, *)
27 | open var constraints: [NSLayoutConstraint] { get }
| `- note: property declared here
28 | @available(macOS 10.7, *)
29 | open func addConstraint(_ constraint: NSLayoutConstraint)
/Users/admin/builder/spi-builder-workspace/Sources/DSFToolbar/DSFToolbar.PopupButton.swift:165:22: warning: main actor-isolated property 'imagePosition' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
147 |
148 | extension DSFToolbar.PopupButton {
149 | private func updateDisplay() {
| `- note: add '@MainActor' to make instance method 'updateDisplay()' part of global actor 'MainActor'
150 | guard let p = self._popupMenu,
151 | p.items.count > 0,
:
163 | // If there's an image and no title, set the state to imageOnly
164 | if self._title.count == 0, self._image != nil {
165 | self._popupButton.imagePosition = .imageOnly
| `- warning: main actor-isolated property 'imagePosition' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
166 | }
167 | else if self._title.count > 0, self._image == nil {
AppKit.NSButton:58:14: note: mutation of this property is only permitted within the actor
56 | @MainActor open var image: NSImage? { get set }
57 | open var alternateImage: NSImage? { get set }
58 | open var imagePosition: NSControl.ImagePosition { get set }
| `- note: mutation of this property is only permitted within the actor
59 | @available(macOS 10.5, *)
60 | open var imageScaling: NSImageScaling { get set }
/Users/admin/builder/spi-builder-workspace/Sources/DSFToolbar/DSFToolbar.PopupButton.swift:168:22: warning: main actor-isolated property 'imagePosition' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
147 |
148 | extension DSFToolbar.PopupButton {
149 | private func updateDisplay() {
| `- note: add '@MainActor' to make instance method 'updateDisplay()' part of global actor 'MainActor'
150 | guard let p = self._popupMenu,
151 | p.items.count > 0,
:
166 | }
167 | else if self._title.count > 0, self._image == nil {
168 | self._popupButton.imagePosition = .noImage
| `- warning: main actor-isolated property 'imagePosition' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
169 | }
170 | else {
AppKit.NSButton:58:14: note: mutation of this property is only permitted within the actor
56 | @MainActor open var image: NSImage? { get set }
57 | open var alternateImage: NSImage? { get set }
58 | open var imagePosition: NSControl.ImagePosition { get set }
| `- note: mutation of this property is only permitted within the actor
59 | @available(macOS 10.5, *)
60 | open var imageScaling: NSImageScaling { get set }
/Users/admin/builder/spi-builder-workspace/Sources/DSFToolbar/DSFToolbar.PopupButton.swift:171:22: warning: main actor-isolated property 'imagePosition' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
147 |
148 | extension DSFToolbar.PopupButton {
149 | private func updateDisplay() {
| `- note: add '@MainActor' to make instance method 'updateDisplay()' part of global actor 'MainActor'
150 | guard let p = self._popupMenu,
151 | p.items.count > 0,
:
169 | }
170 | else {
171 | self._popupButton.imagePosition = self._imagePosition
| `- warning: main actor-isolated property 'imagePosition' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
172 | }
173 | }
AppKit.NSButton:58:14: note: mutation of this property is only permitted within the actor
56 | @MainActor open var image: NSImage? { get set }
57 | open var alternateImage: NSImage? { get set }
58 | open var imagePosition: NSControl.ImagePosition { get set }
| `- note: mutation of this property is only permitted within the actor
59 | @available(macOS 10.5, *)
60 | open var imageScaling: NSImageScaling { get set }
[28/37] Emitting module DSFToolbar
/Users/admin/builder/spi-builder-workspace/Sources/DSFToolbar/DSFToolbar.Core.swift:38:12: warning: main actor-isolated default value in a nonisolated context; this is an error in the Swift 6 language mode
36 | }
37 |
38 | lazy var rootItem = NSToolbarItem(itemIdentifier: self.identifier)
| `- warning: main actor-isolated default value in a nonisolated context; this is an error in the Swift 6 language mode
39 |
40 | var toolbarItem: NSToolbarItem? {
/Users/admin/builder/spi-builder-workspace/Sources/DSFToolbar/DSFToolbar.Group.swift:164:12: warning: main actor-isolated default value in a nonisolated context; this is an error in the Swift 6 language mode
162 | }
163 |
164 | lazy var groupToolbarItem: NSToolbarItemGroup = AppKit.NSToolbarItemGroup(itemIdentifier: self.identifier)
| `- warning: main actor-isolated default value in a nonisolated context; this is an error in the Swift 6 language mode
165 |
166 | private func mapGroupMode(selectionMode: SelectionMode) {
/Users/admin/builder/spi-builder-workspace/Sources/DSFToolbar/DSFToolbar.Item.swift:79:12: warning: main actor-isolated default value in a nonisolated context; this is an error in the Swift 6 language mode
77 | private var _imageBinder: ValueBinder<DSFImage>?
78 |
79 | lazy var imageToolbarItem: NSToolbarItem = {
| `- warning: main actor-isolated default value in a nonisolated context; this is an error in the Swift 6 language mode
80 | NSToolbarItem(itemIdentifier: self.identifier)
81 | }()
/Users/admin/builder/spi-builder-workspace/Sources/DSFToolbar/DSFToolbar.PopupButton.swift:76:15: warning: main actor-isolated default value in a nonisolated context; this is an error in the Swift 6 language mode
74 | // Private
75 |
76 | private var _popupButton = NSPopUpButton(frame: .zero, pullsDown: true)
| `- warning: main actor-isolated default value in a nonisolated context; this is an error in the Swift 6 language mode
77 | private var _popupMenu: NSMenu?
78 | private var _popupButtonItem: NSToolbarItem?
/Users/admin/builder/spi-builder-workspace/Sources/DSFToolbar/DSFToolbar.PopupMenu.swift:68:15: warning: main actor-isolated default value in a nonisolated context; this is an error in the Swift 6 language mode
66 | // Private
67 |
68 | private let _popupButton = NSPopUpButton(frame: .zero, pullsDown: false)
| `- warning: main actor-isolated default value in a nonisolated context; this is an error in the Swift 6 language mode
69 | private let _popupMenu: NSMenu
70 | private var _popupButtonItem: NSToolbarItem?
/Users/admin/builder/spi-builder-workspace/Sources/DSFToolbar/DSFToolbar.Search.swift:87:15: warning: main actor-isolated default value in a nonisolated context; this is an error in the Swift 6 language mode
85 | private let maxWidth: CGFloat
86 | private weak var _delegate: NSSearchFieldDelegate?
87 | private var _searchField = NSSearchField()
| `- warning: main actor-isolated default value in a nonisolated context; this is an error in the Swift 6 language mode
88 |
89 | private var _searchChange: ((NSSearchField, String) -> Void)?
/Users/admin/builder/spi-builder-workspace/Sources/DSFToolbar/DSFToolbar.Segmented.swift:173:15: warning: main actor-isolated default value in a nonisolated context; this is an error in the Swift 6 language mode
171 | override var toolbarItem: NSToolbarItem? { self.segmentedItem }
172 |
173 | private let segmented = NSSegmentedControl(frame: .zero)
| `- warning: main actor-isolated default value in a nonisolated context; this is an error in the Swift 6 language mode
174 | private var segmentedItem: NSToolbarItem?
175 |
/Users/admin/builder/spi-builder-workspace/Sources/DSFToolbar/DSFToolbar.Standard.swift:32:21: warning: static property '_showColors' is not concurrency-safe because non-'Sendable' type 'DSFToolbar.Core' may have shared mutable state; this is an error in the Swift 6 language mode
30 | public extension DSFToolbar {
31 | /// An item to display the standard color palette
32 | private static let _showColors: Core = { Core(.showColors) }()
| |- warning: static property '_showColors' is not concurrency-safe because non-'Sendable' type 'DSFToolbar.Core' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate '_showColors' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
33 | static func ShowColors() -> Core { return DSFToolbar._showColors }
34 |
/Users/admin/builder/spi-builder-workspace/Sources/DSFToolbar/DSFToolbar.Core.swift:32:8: note: class 'Core' does not conform to the 'Sendable' protocol
30 | public extension DSFToolbar {
31 | /// The common base for all toolbar items
32 | class Core: NSObject {
| `- note: class 'Core' does not conform to the 'Sendable' protocol
33 | let identifier: NSToolbarItem.Identifier
34 | internal init(_ identifier: NSToolbarItem.Identifier) {
/Users/admin/builder/spi-builder-workspace/Sources/DSFToolbar/DSFToolbar.Standard.swift:36:21: warning: static property '_fixedSpace' is not concurrency-safe because non-'Sendable' type 'DSFToolbar.Core' may have shared mutable state; this is an error in the Swift 6 language mode
34 |
35 | /// A fixed space toolbar item
36 | private static let _fixedSpace: Core = { Core(.space) }()
| |- warning: static property '_fixedSpace' is not concurrency-safe because non-'Sendable' type 'DSFToolbar.Core' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate '_fixedSpace' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
37 | static func FixedSpace() -> Core { return DSFToolbar._fixedSpace }
38 |
/Users/admin/builder/spi-builder-workspace/Sources/DSFToolbar/DSFToolbar.Core.swift:32:8: note: class 'Core' does not conform to the 'Sendable' protocol
30 | public extension DSFToolbar {
31 | /// The common base for all toolbar items
32 | class Core: NSObject {
| `- note: class 'Core' does not conform to the 'Sendable' protocol
33 | let identifier: NSToolbarItem.Identifier
34 | internal init(_ identifier: NSToolbarItem.Identifier) {
/Users/admin/builder/spi-builder-workspace/Sources/DSFToolbar/DSFToolbar.Standard.swift:40:21: warning: static property '_flexibleSpace' is not concurrency-safe because non-'Sendable' type 'DSFToolbar.Core' may have shared mutable state; this is an error in the Swift 6 language mode
38 |
39 | /// A flexible space toolbar item
40 | private static let _flexibleSpace: Core = { Core(.flexibleSpace) }()
| |- warning: static property '_flexibleSpace' is not concurrency-safe because non-'Sendable' type 'DSFToolbar.Core' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate '_flexibleSpace' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
41 | static func FlexibleSpace() -> Core { return DSFToolbar._flexibleSpace }
42 |
/Users/admin/builder/spi-builder-workspace/Sources/DSFToolbar/DSFToolbar.Core.swift:32:8: note: class 'Core' does not conform to the 'Sendable' protocol
30 | public extension DSFToolbar {
31 | /// The common base for all toolbar items
32 | class Core: NSObject {
| `- note: class 'Core' does not conform to the 'Sendable' protocol
33 | let identifier: NSToolbarItem.Identifier
34 | internal init(_ identifier: NSToolbarItem.Identifier) {
/Users/admin/builder/spi-builder-workspace/Sources/DSFToolbar/DSFToolbar.Standard.swift:44:21: warning: static property '_print' is not concurrency-safe because non-'Sendable' type 'DSFToolbar.Core' may have shared mutable state; this is an error in the Swift 6 language mode
42 |
43 | /// Print
44 | private static let _print: Core = { Core(.print) }()
| |- warning: static property '_print' is not concurrency-safe because non-'Sendable' type 'DSFToolbar.Core' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate '_print' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
45 | static func Print() -> Core { return DSFToolbar._print }
46 | }
/Users/admin/builder/spi-builder-workspace/Sources/DSFToolbar/DSFToolbar.Core.swift:32:8: note: class 'Core' does not conform to the 'Sendable' protocol
30 | public extension DSFToolbar {
31 | /// The common base for all toolbar items
32 | class Core: NSObject {
| `- note: class 'Core' does not conform to the 'Sendable' protocol
33 | let identifier: NSToolbarItem.Identifier
34 | internal init(_ identifier: NSToolbarItem.Identifier) {
/Users/admin/builder/spi-builder-workspace/Sources/DSFToolbar/DSFToolbar.swift:35:20: warning: main actor-isolated default value in a nonisolated context; this is an error in the Swift 6 language mode
33 |
34 | /// The created NSToolbar.
35 | internal lazy var toolbar: NSToolbar = {
| `- warning: main actor-isolated default value in a nonisolated context; this is an error in the Swift 6 language mode
36 | let tb: NSToolbar
37 | tb = NSToolbar(identifier: self.identifier)
/Users/admin/builder/spi-builder-workspace/Sources/DSFToolbar/DSFToolbar.swift:98:20: warning: main actor-isolated property 'toolbar' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
96 | if let attachedWindow = self.attachedWindow {
97 | // Hook in our toolbar
98 | attachedWindow.toolbar = self.toolbar
| `- warning: main actor-isolated property 'toolbar' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
99 | }
100 | }
AppKit.NSWindow:386:25: note: mutation of this property is only permitted within the actor
384 | open var autorecalculatesKeyViewLoop: Bool { get set }
385 | open func recalculateKeyViewLoop()
386 | @MainActor open var toolbar: NSToolbar? { get set }
| `- note: mutation of this property is only permitted within the actor
387 | open func toggleToolbarShown(_ sender: Any?)
388 | open func runToolbarCustomizationPalette(_ sender: Any?)
/Users/admin/builder/spi-builder-workspace/Sources/DSFToolbar/DSFToolbar.swift:269:19: warning: main actor-isolated default value in a nonisolated context; this is an error in the Swift 6 language mode
267 |
268 | // A binder for the selectedItemIdentifier of the control's toolbar
269 | private lazy var _selectionBinding = try! KeyPathBinder(self.toolbar, keyPath: \.selectedItemIdentifier)
| `- warning: main actor-isolated default value in a nonisolated context; this is an error in the Swift 6 language mode
270 |
271 | /// Supply a callback block to be called when the selection state of the toolbar changes
/Users/admin/builder/spi-builder-workspace/Sources/DSFToolbar/logging.swift:27:21: warning: static property 'subsystem' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
25 |
26 | extension OSLog {
27 | private static var subsystem = Bundle.main.bundleIdentifier!
| |- warning: static property 'subsystem' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'subsystem' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'subsystem' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
28 | @available(macOS 10.12, iOS 10.0, *)
29 | static let memoryAlloc = OSLog(subsystem: subsystem, category: "memory")
[29/37] Compiling DSFToolbar DSFToolbar.Group.swift
/Users/admin/builder/spi-builder-workspace/Sources/DSFToolbar/DSFToolbar.Group.swift:164:12: warning: main actor-isolated default value in a nonisolated context; this is an error in the Swift 6 language mode
162 | }
163 |
164 | lazy var groupToolbarItem: NSToolbarItemGroup = AppKit.NSToolbarItemGroup(itemIdentifier: self.identifier)
| `- warning: main actor-isolated default value in a nonisolated context; this is an error in the Swift 6 language mode
165 |
166 | private func mapGroupMode(selectionMode: SelectionMode) {
/Users/admin/builder/spi-builder-workspace/Sources/DSFToolbar/DSFToolbar.Group.swift:89:26: warning: main actor-isolated property 'subitems' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
87 | self.items = children
88 | let its = self.items.compactMap { $0.toolbarItem }
89 | self.groupToolbarItem.subitems = its
| `- warning: main actor-isolated property 'subitems' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
90 | self.mapGroupMode(selectionMode: selectionMode)
91 | }
AppKit.NSToolbarItemGroup:13:25: note: mutation of this property is only permitted within the actor
11 | @available(*, unavailable, renamed: "init(itemIdentifier:images:selectionMode:labels:target:action:)", message: "Not available in Swift")
12 | open class func groupWithItemIdentifier(_ itemIdentifier: NSToolbarItem.Identifier, images: [NSImage], selectionMode: NSToolbarItemGroup.SelectionMode, labels: [String]?, target: Any?, action: Selector?) -> Self
13 | @MainActor open var subitems: [NSToolbarItem] { get set }
| `- note: mutation of this property is only permitted within the actor
14 | @available(macOS 10.15, *)
15 | open var controlRepresentation: NSToolbarItemGroup.ControlRepresentation { get set }
/Users/admin/builder/spi-builder-workspace/Sources/DSFToolbar/DSFToolbar.Group.swift:174:27: warning: main actor-isolated property 'selectionMode' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
164 | lazy var groupToolbarItem: NSToolbarItemGroup = AppKit.NSToolbarItemGroup(itemIdentifier: self.identifier)
165 |
166 | private func mapGroupMode(selectionMode: SelectionMode) {
| `- note: add '@MainActor' to make instance method 'mapGroupMode(selectionMode:)' part of global actor 'MainActor'
167 | if #available(OSX 10.15, *) {
168 | let mode: NSToolbarItemGroup.SelectionMode
:
172 | case .momentary: mode = .momentary
173 | }
174 | self.groupToolbarItem.selectionMode = mode
| `- warning: main actor-isolated property 'selectionMode' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
175 | }
176 | }
AppKit.NSToolbarItemGroup:17:14: note: mutation of this property is only permitted within the actor
15 | open var controlRepresentation: NSToolbarItemGroup.ControlRepresentation { get set }
16 | @available(macOS 10.15, *)
17 | open var selectionMode: NSToolbarItemGroup.SelectionMode { get set }
| `- note: mutation of this property is only permitted within the actor
18 | @available(macOS 10.15, *)
19 | open var selectedIndex: Int { get set }
/Users/admin/builder/spi-builder-workspace/Sources/DSFToolbar/DSFToolbar.Item.swift:79:12: warning: main actor-isolated default value in a nonisolated context; this is an error in the Swift 6 language mode
77 | private var _imageBinder: ValueBinder<DSFImage>?
78 |
79 | lazy var imageToolbarItem: NSToolbarItem = {
| `- warning: main actor-isolated default value in a nonisolated context; this is an error in the Swift 6 language mode
80 | NSToolbarItem(itemIdentifier: self.identifier)
81 | }()
/Users/admin/builder/spi-builder-workspace/Sources/DSFToolbar/DSFToolbar.Item.swift:103:22: warning: main actor-isolated property 'title' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
99 | /// - Returns: self
100 | @discardableResult
101 | public func title(_ title: String) -> Self {
| `- note: add '@MainActor' to make instance method 'title' part of global actor 'MainActor'
102 | if #available(macOS 10.15, *) {
103 | self.toolbarItem?.title = title
| `- warning: main actor-isolated property 'title' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
104 | }
105 | return self
AppKit.NSToolbarItem:19:25: note: mutation of this property is only permitted within the actor
17 | open var image: NSImage? { get set }
18 | @available(macOS 10.15, *)
19 | @MainActor open var title: String { get set }
| `- note: mutation of this property is only permitted within the actor
20 | @available(macOS 10.15, *)
21 | open var isBordered: Bool { get set }
/Users/admin/builder/spi-builder-workspace/Sources/DSFToolbar/DSFToolbar.Item.swift:113:21: warning: main actor-isolated property 'image' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
110 | /// - Returns: self
111 | @discardableResult
112 | public func image(_ image: DSFImage) -> Self {
| `- note: add '@MainActor' to make instance method 'image' part of global actor 'MainActor'
113 | self.toolbarItem?.image = image
| `- warning: main actor-isolated property 'image' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
114 | return self
115 | }
AppKit.NSToolbarItem:17:14: note: mutation of this property is only permitted within the actor
15 | @available(swift, obsoleted: 3, renamed: "isEnabled")
16 | open var enabled: Bool { get set }
17 | open var image: NSImage? { get set }
| `- note: mutation of this property is only permitted within the actor
18 | @available(macOS 10.15, *)
19 | @MainActor open var title: String { get set }
/Users/admin/builder/spi-builder-workspace/Sources/DSFToolbar/DSFToolbar.Item.swift:128:23: warning: main actor-isolated property 'image' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
126 | self._imageBinder = imageBinder
127 | imageBinder.register(self) { [weak self] newImage in
128 | self?.toolbarItem?.image = newImage
| `- warning: main actor-isolated property 'image' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
129 | }
130 | return self
AppKit.NSToolbarItem:17:14: note: mutation of this property is only permitted within the actor
15 | @available(swift, obsoleted: 3, renamed: "isEnabled")
16 | open var enabled: Bool { get set }
17 | open var image: NSImage? { get set }
| `- note: mutation of this property is only permitted within the actor
18 | @available(macOS 10.15, *)
19 | @MainActor open var title: String { get set }
/Users/admin/builder/spi-builder-workspace/Sources/DSFToolbar/DSFToolbar.Item.swift:142:21: warning: main actor-isolated property 'target' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
138 | /// - Parameter action: The action block to call
139 | /// - Returns: self
140 | public func action(_ action: @escaping (DSFToolbar.Item) -> Void) -> Self {
| `- note: add '@MainActor' to make instance method 'action' part of global actor 'MainActor'
141 | self._actionBlock = action
142 | self.toolbarItem?.target = self
| `- warning: main actor-isolated property 'target' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
143 | self.toolbarItem?.action = #selector(itemPressed(_:))
144 | return self
AppKit.NSToolbarItem:12:19: note: mutation of this property is only permitted within the actor
10 | open var menuFormRepresentation: NSMenuItem? { get set }
11 | open var tag: Int { get set }
12 | weak open var target: AnyObject? { get set }
| `- note: mutation of this property is only permitted within the actor
13 | open var action: Selector? { get set }
14 | open var isEnabled: Bool { get set }
/Users/admin/builder/spi-builder-workspace/Sources/DSFToolbar/DSFToolbar.Item.swift:143:21: warning: main actor-isolated property 'action' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
138 | /// - Parameter action: The action block to call
139 | /// - Returns: self
140 | public func action(_ action: @escaping (DSFToolbar.Item) -> Void) -> Self {
| `- note: add '@MainActor' to make instance method 'action' part of global actor 'MainActor'
141 | self._actionBlock = action
142 | self.toolbarItem?.target = self
143 | self.toolbarItem?.action = #selector(itemPressed(_:))
| `- warning: main actor-isolated property 'action' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
144 | return self
145 | }
AppKit.NSToolbarItem:13:14: note: mutation of this property is only permitted within the actor
11 | open var tag: Int { get set }
12 | weak open var target: AnyObject? { get set }
13 | open var action: Selector? { get set }
| `- note: mutation of this property is only permitted within the actor
14 | open var isEnabled: Bool { get set }
15 | @available(swift, obsoleted: 3, renamed: "isEnabled")
[30/37] Compiling DSFToolbar DSFToolbar.Item.swift
/Users/admin/builder/spi-builder-workspace/Sources/DSFToolbar/DSFToolbar.Group.swift:164:12: warning: main actor-isolated default value in a nonisolated context; this is an error in the Swift 6 language mode
162 | }
163 |
164 | lazy var groupToolbarItem: NSToolbarItemGroup = AppKit.NSToolbarItemGroup(itemIdentifier: self.identifier)
| `- warning: main actor-isolated default value in a nonisolated context; this is an error in the Swift 6 language mode
165 |
166 | private func mapGroupMode(selectionMode: SelectionMode) {
/Users/admin/builder/spi-builder-workspace/Sources/DSFToolbar/DSFToolbar.Group.swift:89:26: warning: main actor-isolated property 'subitems' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
87 | self.items = children
88 | let its = self.items.compactMap { $0.toolbarItem }
89 | self.groupToolbarItem.subitems = its
| `- warning: main actor-isolated property 'subitems' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
90 | self.mapGroupMode(selectionMode: selectionMode)
91 | }
AppKit.NSToolbarItemGroup:13:25: note: mutation of this property is only permitted within the actor
11 | @available(*, unavailable, renamed: "init(itemIdentifier:images:selectionMode:labels:target:action:)", message: "Not available in Swift")
12 | open class func groupWithItemIdentifier(_ itemIdentifier: NSToolbarItem.Identifier, images: [NSImage], selectionMode: NSToolbarItemGroup.SelectionMode, labels: [String]?, target: Any?, action: Selector?) -> Self
13 | @MainActor open var subitems: [NSToolbarItem] { get set }
| `- note: mutation of this property is only permitted within the actor
14 | @available(macOS 10.15, *)
15 | open var controlRepresentation: NSToolbarItemGroup.ControlRepresentation { get set }
/Users/admin/builder/spi-builder-workspace/Sources/DSFToolbar/DSFToolbar.Group.swift:174:27: warning: main actor-isolated property 'selectionMode' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
164 | lazy var groupToolbarItem: NSToolbarItemGroup = AppKit.NSToolbarItemGroup(itemIdentifier: self.identifier)
165 |
166 | private func mapGroupMode(selectionMode: SelectionMode) {
| `- note: add '@MainActor' to make instance method 'mapGroupMode(selectionMode:)' part of global actor 'MainActor'
167 | if #available(OSX 10.15, *) {
168 | let mode: NSToolbarItemGroup.SelectionMode
:
172 | case .momentary: mode = .momentary
173 | }
174 | self.groupToolbarItem.selectionMode = mode
| `- warning: main actor-isolated property 'selectionMode' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
175 | }
176 | }
AppKit.NSToolbarItemGroup:17:14: note: mutation of this property is only permitted within the actor
15 | open var controlRepresentation: NSToolbarItemGroup.ControlRepresentation { get set }
16 | @available(macOS 10.15, *)
17 | open var selectionMode: NSToolbarItemGroup.SelectionMode { get set }
| `- note: mutation of this property is only permitted within the actor
18 | @available(macOS 10.15, *)
19 | open var selectedIndex: Int { get set }
/Users/admin/builder/spi-builder-workspace/Sources/DSFToolbar/DSFToolbar.Item.swift:79:12: warning: main actor-isolated default value in a nonisolated context; this is an error in the Swift 6 language mode
77 | private var _imageBinder: ValueBinder<DSFImage>?
78 |
79 | lazy var imageToolbarItem: NSToolbarItem = {
| `- warning: main actor-isolated default value in a nonisolated context; this is an error in the Swift 6 language mode
80 | NSToolbarItem(itemIdentifier: self.identifier)
81 | }()
/Users/admin/builder/spi-builder-workspace/Sources/DSFToolbar/DSFToolbar.Item.swift:103:22: warning: main actor-isolated property 'title' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
99 | /// - Returns: self
100 | @discardableResult
101 | public func title(_ title: String) -> Self {
| `- note: add '@MainActor' to make instance method 'title' part of global actor 'MainActor'
102 | if #available(macOS 10.15, *) {
103 | self.toolbarItem?.title = title
| `- warning: main actor-isolated property 'title' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
104 | }
105 | return self
AppKit.NSToolbarItem:19:25: note: mutation of this property is only permitted within the actor
17 | open var image: NSImage? { get set }
18 | @available(macOS 10.15, *)
19 | @MainActor open var title: String { get set }
| `- note: mutation of this property is only permitted within the actor
20 | @available(macOS 10.15, *)
21 | open var isBordered: Bool { get set }
/Users/admin/builder/spi-builder-workspace/Sources/DSFToolbar/DSFToolbar.Item.swift:113:21: warning: main actor-isolated property 'image' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
110 | /// - Returns: self
111 | @discardableResult
112 | public func image(_ image: DSFImage) -> Self {
| `- note: add '@MainActor' to make instance method 'image' part of global actor 'MainActor'
113 | self.toolbarItem?.image = image
| `- warning: main actor-isolated property 'image' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
114 | return self
115 | }
AppKit.NSToolbarItem:17:14: note: mutation of this property is only permitted within the actor
15 | @available(swift, obsoleted: 3, renamed: "isEnabled")
16 | open var enabled: Bool { get set }
17 | open var image: NSImage? { get set }
| `- note: mutation of this property is only permitted within the actor
18 | @available(macOS 10.15, *)
19 | @MainActor open var title: String { get set }
/Users/admin/builder/spi-builder-workspace/Sources/DSFToolbar/DSFToolbar.Item.swift:128:23: warning: main actor-isolated property 'image' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
126 | self._imageBinder = imageBinder
127 | imageBinder.register(self) { [weak self] newImage in
128 | self?.toolbarItem?.image = newImage
| `- warning: main actor-isolated property 'image' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
129 | }
130 | return self
AppKit.NSToolbarItem:17:14: note: mutation of this property is only permitted within the actor
15 | @available(swift, obsoleted: 3, renamed: "isEnabled")
16 | open var enabled: Bool { get set }
17 | open var image: NSImage? { get set }
| `- note: mutation of this property is only permitted within the actor
18 | @available(macOS 10.15, *)
19 | @MainActor open var title: String { get set }
/Users/admin/builder/spi-builder-workspace/Sources/DSFToolbar/DSFToolbar.Item.swift:142:21: warning: main actor-isolated property 'target' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
138 | /// - Parameter action: The action block to call
139 | /// - Returns: self
140 | public func action(_ action: @escaping (DSFToolbar.Item) -> Void) -> Self {
| `- note: add '@MainActor' to make instance method 'action' part of global actor 'MainActor'
141 | self._actionBlock = action
142 | self.toolbarItem?.target = self
| `- warning: main actor-isolated property 'target' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
143 | self.toolbarItem?.action = #selector(itemPressed(_:))
144 | return self
AppKit.NSToolbarItem:12:19: note: mutation of this property is only permitted within the actor
10 | open var menuFormRepresentation: NSMenuItem? { get set }
11 | open var tag: Int { get set }
12 | weak open var target: AnyObject? { get set }
| `- note: mutation of this property is only permitted within the actor
13 | open var action: Selector? { get set }
14 | open var isEnabled: Bool { get set }
/Users/admin/builder/spi-builder-workspace/Sources/DSFToolbar/DSFToolbar.Item.swift:143:21: warning: main actor-isolated property 'action' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
138 | /// - Parameter action: The action block to call
139 | /// - Returns: self
140 | public func action(_ action: @escaping (DSFToolbar.Item) -> Void) -> Self {
| `- note: add '@MainActor' to make instance method 'action' part of global actor 'MainActor'
141 | self._actionBlock = action
142 | self.toolbarItem?.target = self
143 | self.toolbarItem?.action = #selector(itemPressed(_:))
| `- warning: main actor-isolated property 'action' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
144 | return self
145 | }
AppKit.NSToolbarItem:13:14: note: mutation of this property is only permitted within the actor
11 | open var tag: Int { get set }
12 | weak open var target: AnyObject? { get set }
13 | open var action: Selector? { get set }
| `- note: mutation of this property is only permitted within the actor
14 | open var isEnabled: Bool { get set }
15 | @available(swift, obsoleted: 3, renamed: "isEnabled")
[31/37] Compiling DSFToolbar DSFToolbar.Segmented.swift
/Users/admin/builder/spi-builder-workspace/Sources/DSFToolbar/DSFToolbar.Segmented.swift:173:15: warning: main actor-isolated default value in a nonisolated context; this is an error in the Swift 6 language mode
171 | override var toolbarItem: NSToolbarItem? { self.segmentedItem }
172 |
173 | private let segmented = NSSegmentedControl(frame: .zero)
| `- warning: main actor-isolated default value in a nonisolated context; this is an error in the Swift 6 language mode
174 | private var segmentedItem: NSToolbarItem?
175 |
/Users/admin/builder/spi-builder-workspace/Sources/DSFToolbar/DSFToolbar.Segmented.swift:113:6: warning: main actor-isolated property 'translatesAutoresizingMaskIntoConstraints' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
111 |
112 | let s = self.segmented
113 | s.translatesAutoresizingMaskIntoConstraints = false
| `- warning: main actor-isolated property 'translatesAutoresizingMaskIntoConstraints' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
114 | s.setContentHuggingPriority(.defaultHigh, for: .horizontal)
115 | s.trackingMode = switching
AppKit.NSView:3:25: note: mutation of this property is only permitted within the actor
1 | extension NSView {
2 | @available(macOS 10.7, *)
3 | @MainActor open var translatesAutoresizingMaskIntoConstraints: Bool { get set }
| `- note: mutation of this property is only permitted within the actor
4 | @available(macOS 10.7, *)
5 | open class var requiresConstraintBasedLayout: Bool { get }
/Users/admin/builder/spi-builder-workspace/Sources/DSFToolbar/DSFToolbar.Segmented.swift:114:6: warning: call to main actor-isolated instance method 'setContentHuggingPriority(_:for:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
112 | let s = self.segmented
113 | s.translatesAutoresizingMaskIntoConstraints = false
114 | s.setContentHuggingPriority(.defaultHigh, for: .horizontal)
| `- warning: call to main actor-isolated instance method 'setContentHuggingPriority(_:for:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
115 | s.trackingMode = switching
116 | s.segmentDistribution = .fillEqually
AppKit.NSView:30:26: note: calls to instance method 'setContentHuggingPriority(_:for:)' from outside of its actor context are implicitly asynchronous
28 | open func contentHuggingPriorityForOrientation(_ orientation: NSLayoutConstraint.Orientation) -> NSLayoutConstraint.Priority
29 | @available(macOS 10.7, *)
30 | @MainActor open func setContentHuggingPriority(_ priority: NSLayoutConstraint.Priority, for orientation: NSLayoutConstraint.Orientation)
| `- note: calls to instance method 'setContentHuggingPriority(_:for:)' from outside of its actor context are implicitly asynchronous
31 | @available(macOS 10.7, *)
32 | @available(swift, obsoleted: 3, renamed: "setContentHuggingPriority(_:for:)")
/Users/admin/builder/spi-builder-workspace/Sources/DSFToolbar/DSFToolbar.Segmented.swift:115:6: warning: main actor-isolated property 'trackingMode' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
113 | s.translatesAutoresizingMaskIntoConstraints = false
114 | s.setContentHuggingPriority(.defaultHigh, for: .horizontal)
115 | s.trackingMode = switching
| `- warning: main actor-isolated property 'trackingMode' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
116 | s.segmentDistribution = .fillEqually
117 | s.segmentStyle = {
AppKit.NSSegmentedControl:67:25: note: mutation of this property is only permitted within the actor
65 | open var springLoaded: Bool { get set }
66 | @available(macOS 10.10.3, *)
67 | @MainActor open var trackingMode: NSSegmentedControl.SwitchTracking { get set }
| `- note: mutation of this property is only permitted within the actor
68 | @available(macOS 10.10.3, *)
69 | open var doubleValueForSelectedSegment: Double { get }
/Users/admin/builder/spi-builder-workspace/Sources/DSFToolbar/DSFToolbar.Segmented.swift:116:6: warning: main actor-isolated property 'segmentDistribution' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
114 | s.setContentHuggingPriority(.defaultHigh, for: .horizontal)
115 | s.trackingMode = switching
116 | s.segmentDistribution = .fillEqually
| `- warning: main actor-isolated property 'segmentDistribution' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
117 | s.segmentStyle = {
118 | switch type {
AppKit.NSSegmentedControl:82:14: note: mutation of this property is only permitted within the actor
80 | open func alignmentForSegment(_ segment: Int) -> NSTextAlignment
81 | @available(macOS 10.13, *)
82 | open var segmentDistribution: NSSegmentedControl.Distribution { get set }
| `- note: mutation of this property is only permitted within the actor
83 | @available(macOS 10.13, *)
84 | open func compress(withPrioritizedCompressionOptions prioritizedOptions: [NSUserInterfaceCompressionOptions])
/Users/admin/builder/spi-builder-workspace/Sources/DSFToolbar/DSFToolbar.Segmented.swift:117:6: warning: main actor-isolated property 'segmentStyle' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
115 | s.trackingMode = switching
116 | s.segmentDistribution = .fillEqually
117 | s.segmentStyle = {
| `- warning: main actor-isolated property 'segmentStyle' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
118 | switch type {
119 | case .grouped: return .capsule
AppKit.NSSegmentedControl:60:14: note: mutation of this property is only permitted within the actor
58 | open func showsMenuIndicatorForSegment(_ segment: Int) -> Bool
59 | @available(macOS 10.5, *)
60 | open var segmentStyle: NSSegmentedControl.Style { get set }
| `- note: mutation of this property is only permitted within the actor
61 | @available(macOS 10.10.3, *)
62 | open var isSpringLoaded: Bool { get set }
/Users/admin/builder/spi-builder-workspace/Sources/DSFToolbar/DSFToolbar.Segmented.swift:125:6: warning: main actor-isolated property 'target' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
123 |
124 | // Hook ourselves up to receive actions so we can reflect through our bindings and actions
125 | s.target = self
| `- warning: main actor-isolated property 'target' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
126 | s.action = #selector(self.itemPressed(_:))
127 |
AppKit.NSControl:4:30: note: mutation of this property is only permitted within the actor
2 | @MainActor public init(frame frameRect: NSRect)
3 | public init?(coder: NSCoder)
4 | @MainActor weak open var target: AnyObject? { get set }
| `- note: mutation of this property is only permitted within the actor
5 | open var action: Selector? { get set }
6 | open var tag: Int { get set }
/Users/admin/builder/spi-builder-workspace/Sources/DSFToolbar/DSFToolbar.Segmented.swift:126:6: warning: main actor-isolated property 'action' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
124 | // Hook ourselves up to receive actions so we can reflect through our bindings and actions
125 | s.target = self
126 | s.action = #selector(self.itemPressed(_:))
| `- warning: main actor-isolated property 'action' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
127 |
128 | s.segmentCount = segments.count
AppKit.NSControl:5:14: note: mutation of this property is only permitted within the actor
3 | public init?(coder: NSCoder)
4 | @MainActor weak open var target: AnyObject? { get set }
5 | open var action: Selector? { get set }
| `- note: mutation of this property is only permitted within the actor
6 | open var tag: Int { get set }
7 | open var ignoresMultiClick: Bool { get set }
/Users/admin/builder/spi-builder-workspace/Sources/DSFToolbar/DSFToolbar.Segmented.swift:128:6: warning: main actor-isolated property 'segmentCount' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
126 | s.action = #selector(self.itemPressed(_:))
127 |
128 | s.segmentCount = segments.count
| `- warning: main actor-isolated property 'segmentCount' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
129 |
130 | // Initialize each segment
AppKit.NSSegmentedControl:2:14: note: mutation of this property is only permitted within the actor
1 | @MainActor open class NSSegmentedControl : NSControl, NSUserInterfaceCompression {
2 | open var segmentCount: Int { get set }
| `- note: mutation of this property is only permitted within the actor
3 | open var selectedSegment: Int { get set }
4 | open func selectSegment(withTag tag: Int) -> Bool
/Users/admin/builder/spi-builder-workspace/Sources/DSFToolbar/DSFToolbar.Segmented.swift:133:8: warning: call to main actor-isolated instance method 'setWidth(_:forSegment:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
131 | segments.enumerated().forEach { seg in
132 | if let w = segmentWidths {
133 | s.setWidth(w, forSegment: seg.offset)
| `- warning: call to main actor-isolated instance method 'setWidth(_:forSegment:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
134 | }
135 | seg.element.onCreate(parent: self, index: seg.offset)
AppKit.NSSegmentedControl:7:26: note: calls to instance method 'setWidth(_:forSegment:)' from outside of its actor context are implicitly asynchronous
5 | @available(swift, obsoleted: 3, renamed: "selectSegment(withTag:)")
6 | open func selectSegmentWithTag(_ tag: Int) -> Bool
7 | @MainActor open func setWidth(_ width: CGFloat, forSegment segment: Int)
| `- note: calls to instance method 'setWidth(_:forSegment:)' from outside of its actor context are implicitly asynchronous
8 | open func width(forSegment segment: Int) -> CGFloat
9 | @available(swift, obsoleted: 3, renamed: "width(forSegment:)")
/Users/admin/builder/spi-builder-workspace/Sources/DSFToolbar/DSFToolbar.Segmented.swift:138:12: warning: call to main actor-isolated initializer 'init(itemIdentifier:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
136 | }
137 |
138 | let a = NSToolbarItem(itemIdentifier: self.identifier)
| `- warning: call to main actor-isolated initializer 'init(itemIdentifier:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
139 | a.view = s
140 | self.segmentedItem = a
AppKit.NSToolbarItem:2:23: note: calls to initializer 'init(itemIdentifier:)' from outside of its actor context are implicitly asynchronous
1 | @MainActor open class NSToolbarItem : NSObject, NSCopying {
2 | @MainActor public init(itemIdentifier: NSToolbarItem.Identifier)
| `- note: calls to initializer 'init(itemIdentifier:)' from outside of its actor context are implicitly asynchronous
3 | open var itemIdentifier: NSToolbarItem.Identifier { get }
4 | weak open var toolbar: NSToolbar? { get }
/Users/admin/builder/spi-builder-workspace/Sources/DSFToolbar/DSFToolbar.Segmented.swift:139:6: warning: main actor-isolated property 'view' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
137 |
138 | let a = NSToolbarItem(itemIdentifier: self.identifier)
139 | a.view = s
| `- warning: main actor-isolated property 'view' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
140 | self.segmentedItem = a
141 | }
AppKit.NSToolbarItem:30:14: note: mutation of this property is only permitted within the actor
28 | @available(swift, obsoleted: 3, renamed: "isNavigational")
29 | open var navigational: Bool { get set }
30 | open var view: NSView? { get set }
| `- note: mutation of this property is only permitted within the actor
31 | @available(macOS 12.0, *)
32 | open var isVisible: Bool { get }
/Users/admin/builder/spi-builder-workspace/Sources/DSFToolbar/DSFToolbar.Segmented.swift:153:24: warning: main actor-isolated property 'view' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
151 | self._segmentEnabledBinding?.deregister(self)
152 |
153 | self.segmentedItem?.view = nil
| `- warning: main actor-isolated property 'view' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
154 | self.segmentedItem = nil
155 |
AppKit.NSToolbarItem:30:14: note: mutation of this property is only permitted within the actor
28 | @available(swift, obsoleted: 3, renamed: "isNavigational")
29 | open var navigational: Bool { get set }
30 | open var view: NSView? { get set }
| `- note: mutation of this property is only permitted within the actor
31 | @available(macOS 12.0, *)
32 | open var isVisible: Bool { get }
/Users/admin/builder/spi-builder-workspace/Sources/DSFToolbar/DSFToolbar.Segmented.swift:159:19: warning: main actor-isolated property 'target' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
157 | self.segments = []
158 |
159 | self.segmented.target = nil
| `- warning: main actor-isolated property 'target' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
160 | self.segmented.action = nil
161 |
AppKit.NSControl:4:30: note: mutation of this property is only permitted within the actor
2 | @MainActor public init(frame frameRect: NSRect)
3 | public init?(coder: NSCoder)
4 | @MainActor weak open var target: AnyObject? { get set }
| `- note: mutation of this property is only permitted within the actor
5 | open var action: Selector? { get set }
6 | open var tag: Int { get set }
/Users/admin/builder/spi-builder-workspace/Sources/DSFToolbar/DSFToolbar.Segmented.swift:160:19: warning: main actor-isolated property 'action' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
158 |
159 | self.segmented.target = nil
160 | self.segmented.action = nil
| `- warning: main actor-isolated property 'action' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
161 |
162 | super.close()
AppKit.NSControl:5:14: note: mutation of this property is only permitted within the actor
3 | public init?(coder: NSCoder)
4 | @MainActor weak open var target: AnyObject? { get set }
5 | open var action: Selector? { get set }
| `- note: mutation of this property is only permitted within the actor
6 | open var tag: Int { get set }
7 | open var ignoresMultiClick: Bool { get set }
/Users/admin/builder/spi-builder-workspace/Sources/DSFToolbar/DSFToolbar.Segmented.swift:200:22: warning: call to main actor-isolated instance method 'isSelected(forSegment:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
198 | @objc private func itemPressed(_ sender: Any) {
199 | let selected: [Int] = self.segments.enumerated().compactMap { segment in
200 | if self.segmented.isSelected(forSegment: segment.offset) {
| `- warning: call to main actor-isolated instance method 'isSelected(forSegment:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
201 | return segment.offset
202 | }
AppKit.NSSegmentedControl:31:15: note: calls to instance method 'isSelected(forSegment:)' from outside of its actor context are implicitly asynchronous
29 | open func menuForSegment(_ segment: Int) -> NSMenu?
30 | open func setSelected(_ selected: Bool, forSegment segment: Int)
31 | open func isSelected(forSegment segment: Int) -> Bool
| `- note: calls to instance method 'isSelected(forSegment:)' from outside of its actor context are implicitly asynchronous
32 | @available(swift, obsoleted: 3, renamed: "isSelected(forSegment:)")
33 | open func isSelectedForSegment(_ segment: Int) -> Bool
/Users/admin/builder/spi-builder-workspace/Sources/DSFToolbar/DSFToolbar.Segmented.swift:233:19: warning: call to main actor-isolated instance method 'setSelected(_:forSegment:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
231 | private func setSelection(selectedItems: IndexSet) {
232 | self.segments.enumerated().forEach { segment in
233 | self.segmented.setSelected(
| `- warning: call to main actor-isolated instance method 'setSelected(_:forSegment:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
234 | selectedItems.contains(segment.offset),
235 | forSegment: segment.offset
AppKit.NSSegmentedControl:30:15: note: calls to instance method 'setSelected(_:forSegment:)' from outside of its actor context are implicitly asynchronous
28 | @available(swift, obsoleted: 3, renamed: "menu(forSegment:)")
29 | open func menuForSegment(_ segment: Int) -> NSMenu?
30 | open func setSelected(_ selected: Bool, forSegment segment: Int)
| `- note: calls to instance method 'setSelected(_:forSegment:)' from outside of its actor context are implicitly asynchronous
31 | open func isSelected(forSegment segment: Int) -> Bool
32 | @available(swift, obsoleted: 3, renamed: "isSelected(forSegment:)")
/Users/admin/builder/spi-builder-workspace/Sources/DSFToolbar/DSFToolbar.Segmented.swift:258:19: warning: call to main actor-isolated instance method 'setEnabled(_:forSegment:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
256 | self.segments.enumerated().forEach { item in
257 | let newValue = which.contains(item.offset)
258 | self.segmented.setEnabled(newValue, forSegment: item.offset)
| `- warning: call to main actor-isolated instance method 'setEnabled(_:forSegment:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
259 | }
260 | }
AppKit.NSSegmentedControl:34:15: note: calls to instance method 'setEnabled(_:forSegment:)' from outside of its actor context are implicitly asynchronous
32 | @available(swift, obsoleted: 3, renamed: "isSelected(forSegment:)")
33 | open func isSelectedForSegment(_ segment: Int) -> Bool
34 | open func setEnabled(_ enabled: Bool, forSegment segment: Int)
| `- note: calls to instance method 'setEnabled(_:forSegment:)' from outside of its actor context are implicitly asynchronous
35 | open func isEnabled(forSegment segment: Int) -> Bool
36 | @available(swift, obsoleted: 3, renamed: "isEnabled(forSegment:)")
/Users/admin/builder/spi-builder-workspace/Sources/DSFToolbar/DSFToolbar.Segmented.swift:327:22: warning: call to main actor-isolated instance method 'setEnabled(_:forSegment:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
322 | }
323 |
324 | private func updateIsEnabled(_ newValue: Bool) {
| `- note: add '@MainActor' to make instance method 'updateIsEnabled' part of global actor 'MainActor'
325 | // This might be called before the parent is set.
326 | if let parent = self.parent {
327 | parent.segmented.setEnabled(newValue, forSegment: self.index)
| `- warning: call to main actor-isolated instance method 'setEnabled(_:forSegment:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
328 | }
329 | else {
AppKit.NSSegmentedControl:34:15: note: calls to instance method 'setEnabled(_:forSegment:)' from outside of its actor context are implicitly asynchronous
32 | @available(swift, obsoleted: 3, renamed: "isSelected(forSegment:)")
33 | open func isSelectedForSegment(_ segment: Int) -> Bool
34 | open func setEnabled(_ enabled: Bool, forSegment segment: Int)
| `- note: calls to instance method 'setEnabled(_:forSegment:)' from outside of its actor context are implicitly asynchronous
35 | open func isEnabled(forSegment segment: Int) -> Bool
36 | @available(swift, obsoleted: 3, renamed: "isEnabled(forSegment:)")
/Users/admin/builder/spi-builder-workspace/Sources/DSFToolbar/DSFToolbar.Segmented.swift:347:22: warning: call to main actor-isolated instance method 'setImage(_:forSegment:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
343 | }
344 |
345 | private func updateImage(_ image: DSFImage?) {
| `- note: add '@MainActor' to make instance method 'updateImage' part of global actor 'MainActor'
346 | if let parent = self.parent {
347 | parent.segmented.setImage(image, forSegment: self.index)
| `- warning: call to main actor-isolated instance method 'setImage(_:forSegment:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
348 | }
349 | else {
AppKit.NSSegmentedControl:11:15: note: calls to instance method 'setImage(_:forSegment:)' from outside of its actor context are implicitly asynchronous
9 | @available(swift, obsoleted: 3, renamed: "width(forSegment:)")
10 | open func widthForSegment(_ segment: Int) -> CGFloat
11 | open func setImage(_ image: NSImage?, forSegment segment: Int)
| `- note: calls to instance method 'setImage(_:forSegment:)' from outside of its actor context are implicitly asynchronous
12 | open func image(forSegment segment: Int) -> NSImage?
13 | @available(swift, obsoleted: 3, renamed: "image(forSegment:)")
/Users/admin/builder/spi-builder-workspace/Sources/DSFToolbar/DSFToolbar.Segmented.swift:374:15: warning: call to main actor-isolated instance method 'setLabel(_:forSegment:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
364 |
365 | // Called when the segmented control is created, and we know our segment index is
366 | internal func onCreate(parent: DSFToolbar.Segmented, index: Int) {
| `- note: add '@MainActor' to make instance method 'onCreate(parent:index:)' part of global actor 'MainActor'
367 | self.parent = parent
368 | self.index = index
:
372 | // Label
373 | if let title = self._title {
374 | segmented.setLabel(title, forSegment: index)
| `- warning: call to main actor-isolated instance method 'setLabel(_:forSegment:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
375 | }
376 |
AppKit.NSSegmentedControl:22:15: note: calls to instance method 'setLabel(_:forSegment:)' from outside of its actor context are implicitly asynchronous
20 | @available(swift, obsoleted: 3, renamed: "imageScaling(forSegment:)")
21 | open func imageScalingForSegment(_ segment: Int) -> NSImageScaling
22 | open func setLabel(_ label: String, forSegment segment: Int)
| `- note: calls to instance method 'setLabel(_:forSegment:)' from outside of its actor context are implicitly asynchronous
23 | open func label(forSegment segment: Int) -> String?
24 | @available(swift, obsoleted: 3, renamed: "label(forSegment:)")
/Users/admin/builder/spi-builder-workspace/Sources/DSFToolbar/DSFToolbar.Segmented.swift:378:14: warning: call to main actor-isolated instance method 'setImage(_:forSegment:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
364 |
365 | // Called when the segmented control is created, and we know our segment index is
366 | internal func onCreate(parent: DSFToolbar.Segmented, index: Int) {
| `- note: add '@MainActor' to make instance method 'onCreate(parent:index:)' part of global actor 'MainActor'
367 | self.parent = parent
368 | self.index = index
:
376 |
377 | // Image
378 | segmented.setImage(self._image, forSegment: index)
| `- warning: call to main actor-isolated instance method 'setImage(_:forSegment:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
379 | segmented.setImageScaling(self._imageScaling, forSegment: index)
380 |
AppKit.NSSegmentedControl:11:15: note: calls to instance method 'setImage(_:forSegment:)' from outside of its actor context are implicitly asynchronous
9 | @available(swift, obsoleted: 3, renamed: "width(forSegment:)")
10 | open func widthForSegment(_ segment: Int) -> CGFloat
11 | open func setImage(_ image: NSImage?, forSegment segment: Int)
| `- note: calls to instance method 'setImage(_:forSegment:)' from outside of its actor context are implicitly asynchronous
12 | open func image(forSegment segment: Int) -> NSImage?
13 | @available(swift, obsoleted: 3, renamed: "image(forSegment:)")
/Users/admin/builder/spi-builder-workspace/Sources/DSFToolbar/DSFToolbar.Segmented.swift:379:14: warning: call to main actor-isolated instance method 'setImageScaling(_:forSegment:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
364 |
365 | // Called when the segmented control is created, and we know our segment index is
366 | internal func onCreate(parent: DSFToolbar.Segmented, index: Int) {
| `- note: add '@MainActor' to make instance method 'onCreate(parent:index:)' part of global actor 'MainActor'
367 | self.parent = parent
368 | self.index = index
:
377 | // Image
378 | segmented.setImage(self._image, forSegment: index)
379 | segmented.setImageScaling(self._imageScaling, forSegment: index)
| `- warning: call to main actor-isolated instance method 'setImageScaling(_:forSegment:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
380 |
381 | segmented.alignment = .center
AppKit.NSSegmentedControl:16:15: note: calls to instance method 'setImageScaling(_:forSegment:)' from outside of its actor context are implicitly asynchronous
14 | open func imageForSegment(_ segment: Int) -> NSImage?
15 | @available(macOS 10.5, *)
16 | open func setImageScaling(_ scaling: NSImageScaling, forSegment segment: Int)
| `- note: calls to instance method 'setImageScaling(_:forSegment:)' from outside of its actor context are implicitly asynchronous
17 | @available(macOS 10.5, *)
18 | open func imageScaling(forSegment segment: Int) -> NSImageScaling
/Users/admin/builder/spi-builder-workspace/Sources/DSFToolbar/DSFToolbar.Segmented.swift:381:14: warning: main actor-isolated property 'alignment' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
364 |
365 | // Called when the segmented control is created, and we know our segment index is
366 | internal func onCreate(parent: DSFToolbar.Segmented, index: Int) {
| `- note: add '@MainActor' to make instance method 'onCreate(parent:index:)' part of global actor 'MainActor'
367 | self.parent = parent
368 | self.index = index
:
379 | segmented.setImageScaling(self._imageScaling, forSegment: index)
380 |
381 | segmented.alignment = .center
| `- warning: main actor-isolated property 'alignment' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
382 |
383 | // Tooltip
AppKit.NSControl:53:14: note: mutation of this property is only permitted within the actor
51 | @available(macOS 10.10, *)
52 | open var lineBreakMode: NSLineBreakMode { get set }
53 | open var alignment: NSTextAlignment { get set }
| `- note: mutation of this property is only permitted within the actor
54 | open var baseWritingDirection: NSWritingDirection { get set }
55 | @available(macOS 10.8, *)
/Users/admin/builder/spi-builder-workspace/Sources/DSFToolbar/DSFToolbar.Segmented.swift:385:15: warning: call to main actor-isolated instance method 'setToolTip(_:forSegment:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
364 |
365 | // Called when the segmented control is created, and we know our segment index is
366 | internal func onCreate(parent: DSFToolbar.Segmented, index: Int) {
| `- note: add '@MainActor' to make instance method 'onCreate(parent:index:)' part of global actor 'MainActor'
367 | self.parent = parent
368 | self.index = index
:
383 | // Tooltip
384 | if let t = self._tooltip {
385 | segmented.setToolTip(t, forSegment: index)
| `- warning: call to main actor-isolated instance method 'setToolTip(_:forSegment:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
386 | }
387 |
AppKit.NSSegmentedControl:39:15: note: calls to instance method 'setToolTip(_:forSegment:)' from outside of its actor context are implicitly asynchronous
37 | open func isEnabledForSegment(_ segment: Int) -> Bool
38 | @available(macOS 10.13, *)
39 | open func setToolTip(_ toolTip: String?, forSegment segment: Int)
| `- note: calls to instance method 'setToolTip(_:forSegment:)' from outside of its actor context are implicitly asynchronous
40 | @available(macOS 10.13, *)
41 | open func toolTip(forSegment segment: Int) -> String?
/Users/admin/builder/spi-builder-workspace/Sources/DSFToolbar/DSFToolbar.Segmented.swift:393:15: warning: call to main actor-isolated instance method 'setEnabled(_:forSegment:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
364 |
365 | // Called when the segmented control is created, and we know our segment index is
366 | internal func onCreate(parent: DSFToolbar.Segmented, index: Int) {
| `- note: add '@MainActor' to make instance method 'onCreate(parent:index:)' part of global actor 'MainActor'
367 | self.parent = parent
368 | self.index = index
:
391 | // to the control. If so, push the value through
392 | if let p = self.initialEnabledValue {
393 | segmented.setEnabled(p, forSegment: index)
| `- warning: call to main actor-isolated instance method 'setEnabled(_:forSegment:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
394 | self.initialEnabledValue = nil
395 | }
AppKit.NSSegmentedControl:34:15: note: calls to instance method 'setEnabled(_:forSegment:)' from outside of its actor context are implicitly asynchronous
32 | @available(swift, obsoleted: 3, renamed: "isSelected(forSegment:)")
33 | open func isSelectedForSegment(_ segment: Int) -> Bool
34 | open func setEnabled(_ enabled: Bool, forSegment segment: Int)
| `- note: calls to instance method 'setEnabled(_:forSegment:)' from outside of its actor context are implicitly asynchronous
35 | open func isEnabled(forSegment segment: Int) -> Bool
36 | @available(swift, obsoleted: 3, renamed: "isEnabled(forSegment:)")
/Users/admin/builder/spi-builder-workspace/Sources/DSFToolbar/DSFToolbar.Segmented.swift:398:15: warning: call to main actor-isolated instance method 'setImage(_:forSegment:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
364 |
365 | // Called when the segmented control is created, and we know our segment index is
366 | internal func onCreate(parent: DSFToolbar.Segmented, index: Int) {
| `- note: add '@MainActor' to make instance method 'onCreate(parent:index:)' part of global actor 'MainActor'
367 | self.parent = parent
368 | self.index = index
:
396 |
397 | if let p = self.initialImageValue {
398 | segmented.setImage(p, forSegment: index)
| `- warning: call to main actor-isolated instance method 'setImage(_:forSegment:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
399 | self.initialImageValue = nil
400 | }
AppKit.NSSegmentedControl:11:15: note: calls to instance method 'setImage(_:forSegment:)' from outside of its actor context are implicitly asynchronous
9 | @available(swift, obsoleted: 3, renamed: "width(forSegment:)")
10 | open func widthForSegment(_ segment: Int) -> CGFloat
11 | open func setImage(_ image: NSImage?, forSegment segment: Int)
| `- note: calls to instance method 'setImage(_:forSegment:)' from outside of its actor context are implicitly asynchronous
12 | open func image(forSegment segment: Int) -> NSImage?
13 | @available(swift, obsoleted: 3, renamed: "image(forSegment:)")
/Users/admin/builder/spi-builder-workspace/Sources/DSFToolbar/DSFToolbar.Segmented.swift:416:18: warning: main actor-isolated property 'translatesAutoresizingMaskIntoConstraints' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
414 | override func changeToUseLegacySizing() {
415 | // If we're using legacy sizing, we have to remove the constraints first
416 | self.segmented.translatesAutoresizingMaskIntoConstraints = true
| `- warning: main actor-isolated property 'translatesAutoresizingMaskIntoConstraints' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
417 | self.segmented.removeConstraints(self.segmented.constraints)
418 | }
AppKit.NSView:3:25: note: mutation of this property is only permitted within the actor
1 | extension NSView {
2 | @available(macOS 10.7, *)
3 | @MainActor open var translatesAutoresizingMaskIntoConstraints: Bool { get set }
| `- note: mutation of this property is only permitted within the actor
4 | @available(macOS 10.7, *)
5 | open class var requiresConstraintBasedLayout: Bool { get }
/Users/admin/builder/spi-builder-workspace/Sources/DSFToolbar/DSFToolbar.Segmented.swift:417:18: warning: call to main actor-isolated instance method 'removeConstraints' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
415 | // If we're using legacy sizing, we have to remove the constraints first
416 | self.segmented.translatesAutoresizingMaskIntoConstraints = true
417 | self.segmented.removeConstraints(self.segmented.constraints)
| `- warning: call to main actor-isolated instance method 'removeConstraints' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
418 | }
419 | }
AppKit.NSView:35:26: note: calls to instance method 'removeConstraints' from outside of its actor context are implicitly asynchronous
33 | open func removeConstraint(_ constraint: NSLayoutConstraint)
34 | @available(macOS 10.7, *)
35 | @MainActor open func removeConstraints(_ constraints: [NSLayoutConstraint])
| `- note: calls to instance method 'removeConstraints' from outside of its actor context are implicitly asynchronous
36 | }
/Users/admin/builder/spi-builder-workspace/Sources/DSFToolbar/DSFToolbar.Segmented.swift:417:51: warning: main actor-isolated property 'constraints' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
415 | // If we're using legacy sizing, we have to remove the constraints first
416 | self.segmented.translatesAutoresizingMaskIntoConstraints = true
417 | self.segmented.removeConstraints(self.segmented.constraints)
| `- warning: main actor-isolated property 'constraints' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
418 | }
419 | }
AppKit.NSView:27:14: note: property declared here
25 | open var lastBaselineAnchor: NSLayoutYAxisAnchor { get }
26 | @available(macOS 10.7, *)
27 | open var constraints: [NSLayoutConstraint] { get }
| `- note: property declared here
28 | @available(macOS 10.7, *)
29 | open func addConstraint(_ constraint: NSLayoutConstraint)
/Users/admin/builder/spi-builder-workspace/Sources/DSFToolbar/DSFToolbar.Separator.swift:48:33: warning: call to main actor-isolated initializer 'init(identifier:splitView:dividerIndex:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
46 | ) {
47 | if #available(macOS 11.0, *) {
48 | self.separatorToolbarItem = NSTrackingSeparatorToolbarItem(
| `- warning: call to main actor-isolated initializer 'init(identifier:splitView:dividerIndex:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
49 | identifier: identifier,
50 | splitView: splitView,
AppKit.NSTrackingSeparatorToolbarItem:3:35: note: calls to initializer 'init(identifier:splitView:dividerIndex:)' from outside of its actor context are implicitly asynchronous
1 | @available(macOS 11.0, *)
2 | @MainActor open class NSTrackingSeparatorToolbarItem : NSToolbarItem {
3 | @MainActor public convenience init(identifier: NSToolbarItem.Identifier, splitView: NSSplitView, dividerIndex: Int)
| `- note: calls to initializer 'init(identifier:splitView:dividerIndex:)' from outside of its actor context are implicitly asynchronous
4 | @available(*, unavailable, renamed: "init(identifier:splitView:dividerIndex:)", message: "Not available in Swift")
5 | open class func trackingSeparatorToolbarItemWithIdentifier(_ identifier: NSToolbarItem.Identifier, splitView: NSSplitView, dividerIndex: Int) -> Self
/Users/admin/builder/spi-builder-workspace/Sources/DSFToolbar/DSFToolbar.Segmented.swift:378:14: warning: sending 'self._image' risks causing data races; this is an error in the Swift 6 language mode
376 |
377 | // Image
378 | segmented.setImage(self._image, forSegment: index)
| |- warning: sending 'self._image' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'self._image' to main actor-isolated instance method 'setImage(_:forSegment:)' risks causing data races between main actor-isolated and task-isolated uses
379 | segmented.setImageScaling(self._imageScaling, forSegment: index)
380 |
/Users/admin/builder/spi-builder-workspace/Sources/DSFToolbar/DSFToolbar.Segmented.swift:398:15: warning: sending 'p.some' risks causing data races; this is an error in the Swift 6 language mode
396 |
397 | if let p = self.initialImageValue {
398 | segmented.setImage(p, forSegment: index)
| |- warning: sending 'p.some' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'p.some' to main actor-isolated instance method 'setImage(_:forSegment:)' risks causing data races between main actor-isolated and task-isolated uses
399 | self.initialImageValue = nil
400 | }
/Users/admin/builder/spi-builder-workspace/Sources/DSFToolbar/DSFToolbar.Segmented.swift:347:22: warning: sending 'image' risks causing data races; this is an error in the Swift 6 language mode
345 | private func updateImage(_ image: DSFImage?) {
346 | if let parent = self.parent {
347 | parent.segmented.setImage(image, forSegment: self.index)
| |- warning: sending 'image' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'image' to main actor-isolated instance method 'setImage(_:forSegment:)' risks causing data races between main actor-isolated and task-isolated uses
348 | }
349 | else {
[32/37] Compiling DSFToolbar DSFToolbar.Separator.swift
/Users/admin/builder/spi-builder-workspace/Sources/DSFToolbar/DSFToolbar.Segmented.swift:173:15: warning: main actor-isolated default value in a nonisolated context; this is an error in the Swift 6 language mode
171 | override var toolbarItem: NSToolbarItem? { self.segmentedItem }
172 |
173 | private let segmented = NSSegmentedControl(frame: .zero)
| `- warning: main actor-isolated default value in a nonisolated context; this is an error in the Swift 6 language mode
174 | private var segmentedItem: NSToolbarItem?
175 |
/Users/admin/builder/spi-builder-workspace/Sources/DSFToolbar/DSFToolbar.Segmented.swift:113:6: warning: main actor-isolated property 'translatesAutoresizingMaskIntoConstraints' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
111 |
112 | let s = self.segmented
113 | s.translatesAutoresizingMaskIntoConstraints = false
| `- warning: main actor-isolated property 'translatesAutoresizingMaskIntoConstraints' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
114 | s.setContentHuggingPriority(.defaultHigh, for: .horizontal)
115 | s.trackingMode = switching
AppKit.NSView:3:25: note: mutation of this property is only permitted within the actor
1 | extension NSView {
2 | @available(macOS 10.7, *)
3 | @MainActor open var translatesAutoresizingMaskIntoConstraints: Bool { get set }
| `- note: mutation of this property is only permitted within the actor
4 | @available(macOS 10.7, *)
5 | open class var requiresConstraintBasedLayout: Bool { get }
/Users/admin/builder/spi-builder-workspace/Sources/DSFToolbar/DSFToolbar.Segmented.swift:114:6: warning: call to main actor-isolated instance method 'setContentHuggingPriority(_:for:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
112 | let s = self.segmented
113 | s.translatesAutoresizingMaskIntoConstraints = false
114 | s.setContentHuggingPriority(.defaultHigh, for: .horizontal)
| `- warning: call to main actor-isolated instance method 'setContentHuggingPriority(_:for:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
115 | s.trackingMode = switching
116 | s.segmentDistribution = .fillEqually
AppKit.NSView:30:26: note: calls to instance method 'setContentHuggingPriority(_:for:)' from outside of its actor context are implicitly asynchronous
28 | open func contentHuggingPriorityForOrientation(_ orientation: NSLayoutConstraint.Orientation) -> NSLayoutConstraint.Priority
29 | @available(macOS 10.7, *)
30 | @MainActor open func setContentHuggingPriority(_ priority: NSLayoutConstraint.Priority, for orientation: NSLayoutConstraint.Orientation)
| `- note: calls to instance method 'setContentHuggingPriority(_:for:)' from outside of its actor context are implicitly asynchronous
31 | @available(macOS 10.7, *)
32 | @available(swift, obsoleted: 3, renamed: "setContentHuggingPriority(_:for:)")
/Users/admin/builder/spi-builder-workspace/Sources/DSFToolbar/DSFToolbar.Segmented.swift:115:6: warning: main actor-isolated property 'trackingMode' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
113 | s.translatesAutoresizingMaskIntoConstraints = false
114 | s.setContentHuggingPriority(.defaultHigh, for: .horizontal)
115 | s.trackingMode = switching
| `- warning: main actor-isolated property 'trackingMode' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
116 | s.segmentDistribution = .fillEqually
117 | s.segmentStyle = {
AppKit.NSSegmentedControl:67:25: note: mutation of this property is only permitted within the actor
65 | open var springLoaded: Bool { get set }
66 | @available(macOS 10.10.3, *)
67 | @MainActor open var trackingMode: NSSegmentedControl.SwitchTracking { get set }
| `- note: mutation of this property is only permitted within the actor
68 | @available(macOS 10.10.3, *)
69 | open var doubleValueForSelectedSegment: Double { get }
/Users/admin/builder/spi-builder-workspace/Sources/DSFToolbar/DSFToolbar.Segmented.swift:116:6: warning: main actor-isolated property 'segmentDistribution' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
114 | s.setContentHuggingPriority(.defaultHigh, for: .horizontal)
115 | s.trackingMode = switching
116 | s.segmentDistribution = .fillEqually
| `- warning: main actor-isolated property 'segmentDistribution' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
117 | s.segmentStyle = {
118 | switch type {
AppKit.NSSegmentedControl:82:14: note: mutation of this property is only permitted within the actor
80 | open func alignmentForSegment(_ segment: Int) -> NSTextAlignment
81 | @available(macOS 10.13, *)
82 | open var segmentDistribution: NSSegmentedControl.Distribution { get set }
| `- note: mutation of this property is only permitted within the actor
83 | @available(macOS 10.13, *)
84 | open func compress(withPrioritizedCompressionOptions prioritizedOptions: [NSUserInterfaceCompressionOptions])
/Users/admin/builder/spi-builder-workspace/Sources/DSFToolbar/DSFToolbar.Segmented.swift:117:6: warning: main actor-isolated property 'segmentStyle' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
115 | s.trackingMode = switching
116 | s.segmentDistribution = .fillEqually
117 | s.segmentStyle = {
| `- warning: main actor-isolated property 'segmentStyle' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
118 | switch type {
119 | case .grouped: return .capsule
AppKit.NSSegmentedControl:60:14: note: mutation of this property is only permitted within the actor
58 | open func showsMenuIndicatorForSegment(_ segment: Int) -> Bool
59 | @available(macOS 10.5, *)
60 | open var segmentStyle: NSSegmentedControl.Style { get set }
| `- note: mutation of this property is only permitted within the actor
61 | @available(macOS 10.10.3, *)
62 | open var isSpringLoaded: Bool { get set }
/Users/admin/builder/spi-builder-workspace/Sources/DSFToolbar/DSFToolbar.Segmented.swift:125:6: warning: main actor-isolated property 'target' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
123 |
124 | // Hook ourselves up to receive actions so we can reflect through our bindings and actions
125 | s.target = self
| `- warning: main actor-isolated property 'target' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
126 | s.action = #selector(self.itemPressed(_:))
127 |
AppKit.NSControl:4:30: note: mutation of this property is only permitted within the actor
2 | @MainActor public init(frame frameRect: NSRect)
3 | public init?(coder: NSCoder)
4 | @MainActor weak open var target: AnyObject? { get set }
| `- note: mutation of this property is only permitted within the actor
5 | open var action: Selector? { get set }
6 | open var tag: Int { get set }
/Users/admin/builder/spi-builder-workspace/Sources/DSFToolbar/DSFToolbar.Segmented.swift:126:6: warning: main actor-isolated property 'action' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
124 | // Hook ourselves up to receive actions so we can reflect through our bindings and actions
125 | s.target = self
126 | s.action = #selector(self.itemPressed(_:))
| `- warning: main actor-isolated property 'action' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
127 |
128 | s.segmentCount = segments.count
AppKit.NSControl:5:14: note: mutation of this property is only permitted within the actor
3 | public init?(coder: NSCoder)
4 | @MainActor weak open var target: AnyObject? { get set }
5 | open var action: Selector? { get set }
| `- note: mutation of this property is only permitted within the actor
6 | open var tag: Int { get set }
7 | open var ignoresMultiClick: Bool { get set }
/Users/admin/builder/spi-builder-workspace/Sources/DSFToolbar/DSFToolbar.Segmented.swift:128:6: warning: main actor-isolated property 'segmentCount' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
126 | s.action = #selector(self.itemPressed(_:))
127 |
128 | s.segmentCount = segments.count
| `- warning: main actor-isolated property 'segmentCount' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
129 |
130 | // Initialize each segment
AppKit.NSSegmentedControl:2:14: note: mutation of this property is only permitted within the actor
1 | @MainActor open class NSSegmentedControl : NSControl, NSUserInterfaceCompression {
2 | open var segmentCount: Int { get set }
| `- note: mutation of this property is only permitted within the actor
3 | open var selectedSegment: Int { get set }
4 | open func selectSegment(withTag tag: Int) -> Bool
/Users/admin/builder/spi-builder-workspace/Sources/DSFToolbar/DSFToolbar.Segmented.swift:133:8: warning: call to main actor-isolated instance method 'setWidth(_:forSegment:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
131 | segments.enumerated().forEach { seg in
132 | if let w = segmentWidths {
133 | s.setWidth(w, forSegment: seg.offset)
| `- warning: call to main actor-isolated instance method 'setWidth(_:forSegment:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
134 | }
135 | seg.element.onCreate(parent: self, index: seg.offset)
AppKit.NSSegmentedControl:7:26: note: calls to instance method 'setWidth(_:forSegment:)' from outside of its actor context are implicitly asynchronous
5 | @available(swift, obsoleted: 3, renamed: "selectSegment(withTag:)")
6 | open func selectSegmentWithTag(_ tag: Int) -> Bool
7 | @MainActor open func setWidth(_ width: CGFloat, forSegment segment: Int)
| `- note: calls to instance method 'setWidth(_:forSegment:)' from outside of its actor context are implicitly asynchronous
8 | open func width(forSegment segment: Int) -> CGFloat
9 | @available(swift, obsoleted: 3, renamed: "width(forSegment:)")
/Users/admin/builder/spi-builder-workspace/Sources/DSFToolbar/DSFToolbar.Segmented.swift:138:12: warning: call to main actor-isolated initializer 'init(itemIdentifier:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
136 | }
137 |
138 | let a = NSToolbarItem(itemIdentifier: self.identifier)
| `- warning: call to main actor-isolated initializer 'init(itemIdentifier:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
139 | a.view = s
140 | self.segmentedItem = a
AppKit.NSToolbarItem:2:23: note: calls to initializer 'init(itemIdentifier:)' from outside of its actor context are implicitly asynchronous
1 | @MainActor open class NSToolbarItem : NSObject, NSCopying {
2 | @MainActor public init(itemIdentifier: NSToolbarItem.Identifier)
| `- note: calls to initializer 'init(itemIdentifier:)' from outside of its actor context are implicitly asynchronous
3 | open var itemIdentifier: NSToolbarItem.Identifier { get }
4 | weak open var toolbar: NSToolbar? { get }
/Users/admin/builder/spi-builder-workspace/Sources/DSFToolbar/DSFToolbar.Segmented.swift:139:6: warning: main actor-isolated property 'view' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
137 |
138 | let a = NSToolbarItem(itemIdentifier: self.identifier)
139 | a.view = s
| `- warning: main actor-isolated property 'view' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
140 | self.segmentedItem = a
141 | }
AppKit.NSToolbarItem:30:14: note: mutation of this property is only permitted within the actor
28 | @available(swift, obsoleted: 3, renamed: "isNavigational")
29 | open var navigational: Bool { get set }
30 | open var view: NSView? { get set }
| `- note: mutation of this property is only permitted within the actor
31 | @available(macOS 12.0, *)
32 | open var isVisible: Bool { get }
/Users/admin/builder/spi-builder-workspace/Sources/DSFToolbar/DSFToolbar.Segmented.swift:153:24: warning: main actor-isolated property 'view' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
151 | self._segmentEnabledBinding?.deregister(self)
152 |
153 | self.segmentedItem?.view = nil
| `- warning: main actor-isolated property 'view' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
154 | self.segmentedItem = nil
155 |
AppKit.NSToolbarItem:30:14: note: mutation of this property is only permitted within the actor
28 | @available(swift, obsoleted: 3, renamed: "isNavigational")
29 | open var navigational: Bool { get set }
30 | open var view: NSView? { get set }
| `- note: mutation of this property is only permitted within the actor
31 | @available(macOS 12.0, *)
32 | open var isVisible: Bool { get }
/Users/admin/builder/spi-builder-workspace/Sources/DSFToolbar/DSFToolbar.Segmented.swift:159:19: warning: main actor-isolated property 'target' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
157 | self.segments = []
158 |
159 | self.segmented.target = nil
| `- warning: main actor-isolated property 'target' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
160 | self.segmented.action = nil
161 |
AppKit.NSControl:4:30: note: mutation of this property is only permitted within the actor
2 | @MainActor public init(frame frameRect: NSRect)
3 | public init?(coder: NSCoder)
4 | @MainActor weak open var target: AnyObject? { get set }
| `- note: mutation of this property is only permitted within the actor
5 | open var action: Selector? { get set }
6 | open var tag: Int { get set }
/Users/admin/builder/spi-builder-workspace/Sources/DSFToolbar/DSFToolbar.Segmented.swift:160:19: warning: main actor-isolated property 'action' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
158 |
159 | self.segmented.target = nil
160 | self.segmented.action = nil
| `- warning: main actor-isolated property 'action' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
161 |
162 | super.close()
AppKit.NSControl:5:14: note: mutation of this property is only permitted within the actor
3 | public init?(coder: NSCoder)
4 | @MainActor weak open var target: AnyObject? { get set }
5 | open var action: Selector? { get set }
| `- note: mutation of this property is only permitted within the actor
6 | open var tag: Int { get set }
7 | open var ignoresMultiClick: Bool { get set }
/Users/admin/builder/spi-builder-workspace/Sources/DSFToolbar/DSFToolbar.Segmented.swift:200:22: warning: call to main actor-isolated instance method 'isSelected(forSegment:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
198 | @objc private func itemPressed(_ sender: Any) {
199 | let selected: [Int] = self.segments.enumerated().compactMap { segment in
200 | if self.segmented.isSelected(forSegment: segment.offset) {
| `- warning: call to main actor-isolated instance method 'isSelected(forSegment:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
201 | return segment.offset
202 | }
AppKit.NSSegmentedControl:31:15: note: calls to instance method 'isSelected(forSegment:)' from outside of its actor context are implicitly asynchronous
29 | open func menuForSegment(_ segment: Int) -> NSMenu?
30 | open func setSelected(_ selected: Bool, forSegment segment: Int)
31 | open func isSelected(forSegment segment: Int) -> Bool
| `- note: calls to instance method 'isSelected(forSegment:)' from outside of its actor context are implicitly asynchronous
32 | @available(swift, obsoleted: 3, renamed: "isSelected(forSegment:)")
33 | open func isSelectedForSegment(_ segment: Int) -> Bool
/Users/admin/builder/spi-builder-workspace/Sources/DSFToolbar/DSFToolbar.Segmented.swift:233:19: warning: call to main actor-isolated instance method 'setSelected(_:forSegment:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
231 | private func setSelection(selectedItems: IndexSet) {
232 | self.segments.enumerated().forEach { segment in
233 | self.segmented.setSelected(
| `- warning: call to main actor-isolated instance method 'setSelected(_:forSegment:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
234 | selectedItems.contains(segment.offset),
235 | forSegment: segment.offset
AppKit.NSSegmentedControl:30:15: note: calls to instance method 'setSelected(_:forSegment:)' from outside of its actor context are implicitly asynchronous
28 | @available(swift, obsoleted: 3, renamed: "menu(forSegment:)")
29 | open func menuForSegment(_ segment: Int) -> NSMenu?
30 | open func setSelected(_ selected: Bool, forSegment segment: Int)
| `- note: calls to instance method 'setSelected(_:forSegment:)' from outside of its actor context are implicitly asynchronous
31 | open func isSelected(forSegment segment: Int) -> Bool
32 | @available(swift, obsoleted: 3, renamed: "isSelected(forSegment:)")
/Users/admin/builder/spi-builder-workspace/Sources/DSFToolbar/DSFToolbar.Segmented.swift:258:19: warning: call to main actor-isolated instance method 'setEnabled(_:forSegment:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
256 | self.segments.enumerated().forEach { item in
257 | let newValue = which.contains(item.offset)
258 | self.segmented.setEnabled(newValue, forSegment: item.offset)
| `- warning: call to main actor-isolated instance method 'setEnabled(_:forSegment:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
259 | }
260 | }
AppKit.NSSegmentedControl:34:15: note: calls to instance method 'setEnabled(_:forSegment:)' from outside of its actor context are implicitly asynchronous
32 | @available(swift, obsoleted: 3, renamed: "isSelected(forSegment:)")
33 | open func isSelectedForSegment(_ segment: Int) -> Bool
34 | open func setEnabled(_ enabled: Bool, forSegment segment: Int)
| `- note: calls to instance method 'setEnabled(_:forSegment:)' from outside of its actor context are implicitly asynchronous
35 | open func isEnabled(forSegment segment: Int) -> Bool
36 | @available(swift, obsoleted: 3, renamed: "isEnabled(forSegment:)")
/Users/admin/builder/spi-builder-workspace/Sources/DSFToolbar/DSFToolbar.Segmented.swift:327:22: warning: call to main actor-isolated instance method 'setEnabled(_:forSegment:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
322 | }
323 |
324 | private func updateIsEnabled(_ newValue: Bool) {
| `- note: add '@MainActor' to make instance method 'updateIsEnabled' part of global actor 'MainActor'
325 | // This might be called before the parent is set.
326 | if let parent = self.parent {
327 | parent.segmented.setEnabled(newValue, forSegment: self.index)
| `- warning: call to main actor-isolated instance method 'setEnabled(_:forSegment:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
328 | }
329 | else {
AppKit.NSSegmentedControl:34:15: note: calls to instance method 'setEnabled(_:forSegment:)' from outside of its actor context are implicitly asynchronous
32 | @available(swift, obsoleted: 3, renamed: "isSelected(forSegment:)")
33 | open func isSelectedForSegment(_ segment: Int) -> Bool
34 | open func setEnabled(_ enabled: Bool, forSegment segment: Int)
| `- note: calls to instance method 'setEnabled(_:forSegment:)' from outside of its actor context are implicitly asynchronous
35 | open func isEnabled(forSegment segment: Int) -> Bool
36 | @available(swift, obsoleted: 3, renamed: "isEnabled(forSegment:)")
/Users/admin/builder/spi-builder-workspace/Sources/DSFToolbar/DSFToolbar.Segmented.swift:347:22: warning: call to main actor-isolated instance method 'setImage(_:forSegment:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
343 | }
344 |
345 | private func updateImage(_ image: DSFImage?) {
| `- note: add '@MainActor' to make instance method 'updateImage' part of global actor 'MainActor'
346 | if let parent = self.parent {
347 | parent.segmented.setImage(image, forSegment: self.index)
| `- warning: call to main actor-isolated instance method 'setImage(_:forSegment:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
348 | }
349 | else {
AppKit.NSSegmentedControl:11:15: note: calls to instance method 'setImage(_:forSegment:)' from outside of its actor context are implicitly asynchronous
9 | @available(swift, obsoleted: 3, renamed: "width(forSegment:)")
10 | open func widthForSegment(_ segment: Int) -> CGFloat
11 | open func setImage(_ image: NSImage?, forSegment segment: Int)
| `- note: calls to instance method 'setImage(_:forSegment:)' from outside of its actor context are implicitly asynchronous
12 | open func image(forSegment segment: Int) -> NSImage?
13 | @available(swift, obsoleted: 3, renamed: "image(forSegment:)")
/Users/admin/builder/spi-builder-workspace/Sources/DSFToolbar/DSFToolbar.Segmented.swift:374:15: warning: call to main actor-isolated instance method 'setLabel(_:forSegment:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
364 |
365 | // Called when the segmented control is created, and we know our segment index is
366 | internal func onCreate(parent: DSFToolbar.Segmented, index: Int) {
| `- note: add '@MainActor' to make instance method 'onCreate(parent:index:)' part of global actor 'MainActor'
367 | self.parent = parent
368 | self.index = index
:
372 | // Label
373 | if let title = self._title {
374 | segmented.setLabel(title, forSegment: index)
| `- warning: call to main actor-isolated instance method 'setLabel(_:forSegment:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
375 | }
376 |
AppKit.NSSegmentedControl:22:15: note: calls to instance method 'setLabel(_:forSegment:)' from outside of its actor context are implicitly asynchronous
20 | @available(swift, obsoleted: 3, renamed: "imageScaling(forSegment:)")
21 | open func imageScalingForSegment(_ segment: Int) -> NSImageScaling
22 | open func setLabel(_ label: String, forSegment segment: Int)
| `- note: calls to instance method 'setLabel(_:forSegment:)' from outside of its actor context are implicitly asynchronous
23 | open func label(forSegment segment: Int) -> String?
24 | @available(swift, obsoleted: 3, renamed: "label(forSegment:)")
/Users/admin/builder/spi-builder-workspace/Sources/DSFToolbar/DSFToolbar.Segmented.swift:378:14: warning: call to main actor-isolated instance method 'setImage(_:forSegment:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
364 |
365 | // Called when the segmented control is created, and we know our segment index is
366 | internal func onCreate(parent: DSFToolbar.Segmented, index: Int) {
| `- note: add '@MainActor' to make instance method 'onCreate(parent:index:)' part of global actor 'MainActor'
367 | self.parent = parent
368 | self.index = index
:
376 |
377 | // Image
378 | segmented.setImage(self._image, forSegment: index)
| `- warning: call to main actor-isolated instance method 'setImage(_:forSegment:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
379 | segmented.setImageScaling(self._imageScaling, forSegment: index)
380 |
AppKit.NSSegmentedControl:11:15: note: calls to instance method 'setImage(_:forSegment:)' from outside of its actor context are implicitly asynchronous
9 | @available(swift, obsoleted: 3, renamed: "width(forSegment:)")
10 | open func widthForSegment(_ segment: Int) -> CGFloat
11 | open func setImage(_ image: NSImage?, forSegment segment: Int)
| `- note: calls to instance method 'setImage(_:forSegment:)' from outside of its actor context are implicitly asynchronous
12 | open func image(forSegment segment: Int) -> NSImage?
13 | @available(swift, obsoleted: 3, renamed: "image(forSegment:)")
/Users/admin/builder/spi-builder-workspace/Sources/DSFToolbar/DSFToolbar.Segmented.swift:379:14: warning: call to main actor-isolated instance method 'setImageScaling(_:forSegment:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
364 |
365 | // Called when the segmented control is created, and we know our segment index is
366 | internal func onCreate(parent: DSFToolbar.Segmented, index: Int) {
| `- note: add '@MainActor' to make instance method 'onCreate(parent:index:)' part of global actor 'MainActor'
367 | self.parent = parent
368 | self.index = index
:
377 | // Image
378 | segmented.setImage(self._image, forSegment: index)
379 | segmented.setImageScaling(self._imageScaling, forSegment: index)
| `- warning: call to main actor-isolated instance method 'setImageScaling(_:forSegment:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
380 |
381 | segmented.alignment = .center
AppKit.NSSegmentedControl:16:15: note: calls to instance method 'setImageScaling(_:forSegment:)' from outside of its actor context are implicitly asynchronous
14 | open func imageForSegment(_ segment: Int) -> NSImage?
15 | @available(macOS 10.5, *)
16 | open func setImageScaling(_ scaling: NSImageScaling, forSegment segment: Int)
| `- note: calls to instance method 'setImageScaling(_:forSegment:)' from outside of its actor context are implicitly asynchronous
17 | @available(macOS 10.5, *)
18 | open func imageScaling(forSegment segment: Int) -> NSImageScaling
/Users/admin/builder/spi-builder-workspace/Sources/DSFToolbar/DSFToolbar.Segmented.swift:381:14: warning: main actor-isolated property 'alignment' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
364 |
365 | // Called when the segmented control is created, and we know our segment index is
366 | internal func onCreate(parent: DSFToolbar.Segmented, index: Int) {
| `- note: add '@MainActor' to make instance method 'onCreate(parent:index:)' part of global actor 'MainActor'
367 | self.parent = parent
368 | self.index = index
:
379 | segmented.setImageScaling(self._imageScaling, forSegment: index)
380 |
381 | segmented.alignment = .center
| `- warning: main actor-isolated property 'alignment' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
382 |
383 | // Tooltip
AppKit.NSControl:53:14: note: mutation of this property is only permitted within the actor
51 | @available(macOS 10.10, *)
52 | open var lineBreakMode: NSLineBreakMode { get set }
53 | open var alignment: NSTextAlignment { get set }
| `- note: mutation of this property is only permitted within the actor
54 | open var baseWritingDirection: NSWritingDirection { get set }
55 | @available(macOS 10.8, *)
/Users/admin/builder/spi-builder-workspace/Sources/DSFToolbar/DSFToolbar.Segmented.swift:385:15: warning: call to main actor-isolated instance method 'setToolTip(_:forSegment:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
364 |
365 | // Called when the segmented control is created, and we know our segment index is
366 | internal func onCreate(parent: DSFToolbar.Segmented, index: Int) {
| `- note: add '@MainActor' to make instance method 'onCreate(parent:index:)' part of global actor 'MainActor'
367 | self.parent = parent
368 | self.index = index
:
383 | // Tooltip
384 | if let t = self._tooltip {
385 | segmented.setToolTip(t, forSegment: index)
| `- warning: call to main actor-isolated instance method 'setToolTip(_:forSegment:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
386 | }
387 |
AppKit.NSSegmentedControl:39:15: note: calls to instance method 'setToolTip(_:forSegment:)' from outside of its actor context are implicitly asynchronous
37 | open func isEnabledForSegment(_ segment: Int) -> Bool
38 | @available(macOS 10.13, *)
39 | open func setToolTip(_ toolTip: String?, forSegment segment: Int)
| `- note: calls to instance method 'setToolTip(_:forSegment:)' from outside of its actor context are implicitly asynchronous
40 | @available(macOS 10.13, *)
41 | open func toolTip(forSegment segment: Int) -> String?
/Users/admin/builder/spi-builder-workspace/Sources/DSFToolbar/DSFToolbar.Segmented.swift:393:15: warning: call to main actor-isolated instance method 'setEnabled(_:forSegment:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
364 |
365 | // Called when the segmented control is created, and we know our segment index is
366 | internal func onCreate(parent: DSFToolbar.Segmented, index: Int) {
| `- note: add '@MainActor' to make instance method 'onCreate(parent:index:)' part of global actor 'MainActor'
367 | self.parent = parent
368 | self.index = index
:
391 | // to the control. If so, push the value through
392 | if let p = self.initialEnabledValue {
393 | segmented.setEnabled(p, forSegment: index)
| `- warning: call to main actor-isolated instance method 'setEnabled(_:forSegment:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
394 | self.initialEnabledValue = nil
395 | }
AppKit.NSSegmentedControl:34:15: note: calls to instance method 'setEnabled(_:forSegment:)' from outside of its actor context are implicitly asynchronous
32 | @available(swift, obsoleted: 3, renamed: "isSelected(forSegment:)")
33 | open func isSelectedForSegment(_ segment: Int) -> Bool
34 | open func setEnabled(_ enabled: Bool, forSegment segment: Int)
| `- note: calls to instance method 'setEnabled(_:forSegment:)' from outside of its actor context are implicitly asynchronous
35 | open func isEnabled(forSegment segment: Int) -> Bool
36 | @available(swift, obsoleted: 3, renamed: "isEnabled(forSegment:)")
/Users/admin/builder/spi-builder-workspace/Sources/DSFToolbar/DSFToolbar.Segmented.swift:398:15: warning: call to main actor-isolated instance method 'setImage(_:forSegment:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
364 |
365 | // Called when the segmented control is created, and we know our segment index is
366 | internal func onCreate(parent: DSFToolbar.Segmented, index: Int) {
| `- note: add '@MainActor' to make instance method 'onCreate(parent:index:)' part of global actor 'MainActor'
367 | self.parent = parent
368 | self.index = index
:
396 |
397 | if let p = self.initialImageValue {
398 | segmented.setImage(p, forSegment: index)
| `- warning: call to main actor-isolated instance method 'setImage(_:forSegment:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
399 | self.initialImageValue = nil
400 | }
AppKit.NSSegmentedControl:11:15: note: calls to instance method 'setImage(_:forSegment:)' from outside of its actor context are implicitly asynchronous
9 | @available(swift, obsoleted: 3, renamed: "width(forSegment:)")
10 | open func widthForSegment(_ segment: Int) -> CGFloat
11 | open func setImage(_ image: NSImage?, forSegment segment: Int)
| `- note: calls to instance method 'setImage(_:forSegment:)' from outside of its actor context are implicitly asynchronous
12 | open func image(forSegment segment: Int) -> NSImage?
13 | @available(swift, obsoleted: 3, renamed: "image(forSegment:)")
/Users/admin/builder/spi-builder-workspace/Sources/DSFToolbar/DSFToolbar.Segmented.swift:416:18: warning: main actor-isolated property 'translatesAutoresizingMaskIntoConstraints' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
414 | override func changeToUseLegacySizing() {
415 | // If we're using legacy sizing, we have to remove the constraints first
416 | self.segmented.translatesAutoresizingMaskIntoConstraints = true
| `- warning: main actor-isolated property 'translatesAutoresizingMaskIntoConstraints' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
417 | self.segmented.removeConstraints(self.segmented.constraints)
418 | }
AppKit.NSView:3:25: note: mutation of this property is only permitted within the actor
1 | extension NSView {
2 | @available(macOS 10.7, *)
3 | @MainActor open var translatesAutoresizingMaskIntoConstraints: Bool { get set }
| `- note: mutation of this property is only permitted within the actor
4 | @available(macOS 10.7, *)
5 | open class var requiresConstraintBasedLayout: Bool { get }
/Users/admin/builder/spi-builder-workspace/Sources/DSFToolbar/DSFToolbar.Segmented.swift:417:18: warning: call to main actor-isolated instance method 'removeConstraints' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
415 | // If we're using legacy sizing, we have to remove the constraints first
416 | self.segmented.translatesAutoresizingMaskIntoConstraints = true
417 | self.segmented.removeConstraints(self.segmented.constraints)
| `- warning: call to main actor-isolated instance method 'removeConstraints' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
418 | }
419 | }
AppKit.NSView:35:26: note: calls to instance method 'removeConstraints' from outside of its actor context are implicitly asynchronous
33 | open func removeConstraint(_ constraint: NSLayoutConstraint)
34 | @available(macOS 10.7, *)
35 | @MainActor open func removeConstraints(_ constraints: [NSLayoutConstraint])
| `- note: calls to instance method 'removeConstraints' from outside of its actor context are implicitly asynchronous
36 | }
/Users/admin/builder/spi-builder-workspace/Sources/DSFToolbar/DSFToolbar.Segmented.swift:417:51: warning: main actor-isolated property 'constraints' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
415 | // If we're using legacy sizing, we have to remove the constraints first
416 | self.segmented.translatesAutoresizingMaskIntoConstraints = true
417 | self.segmented.removeConstraints(self.segmented.constraints)
| `- warning: main actor-isolated property 'constraints' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
418 | }
419 | }
AppKit.NSView:27:14: note: property declared here
25 | open var lastBaselineAnchor: NSLayoutYAxisAnchor { get }
26 | @available(macOS 10.7, *)
27 | open var constraints: [NSLayoutConstraint] { get }
| `- note: property declared here
28 | @available(macOS 10.7, *)
29 | open func addConstraint(_ constraint: NSLayoutConstraint)
/Users/admin/builder/spi-builder-workspace/Sources/DSFToolbar/DSFToolbar.Separator.swift:48:33: warning: call to main actor-isolated initializer 'init(identifier:splitView:dividerIndex:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
46 | ) {
47 | if #available(macOS 11.0, *) {
48 | self.separatorToolbarItem = NSTrackingSeparatorToolbarItem(
| `- warning: call to main actor-isolated initializer 'init(identifier:splitView:dividerIndex:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
49 | identifier: identifier,
50 | splitView: splitView,
AppKit.NSTrackingSeparatorToolbarItem:3:35: note: calls to initializer 'init(identifier:splitView:dividerIndex:)' from outside of its actor context are implicitly asynchronous
1 | @available(macOS 11.0, *)
2 | @MainActor open class NSTrackingSeparatorToolbarItem : NSToolbarItem {
3 | @MainActor public convenience init(identifier: NSToolbarItem.Identifier, splitView: NSSplitView, dividerIndex: Int)
| `- note: calls to initializer 'init(identifier:splitView:dividerIndex:)' from outside of its actor context are implicitly asynchronous
4 | @available(*, unavailable, renamed: "init(identifier:splitView:dividerIndex:)", message: "Not available in Swift")
5 | open class func trackingSeparatorToolbarItemWithIdentifier(_ identifier: NSToolbarItem.Identifier, splitView: NSSplitView, dividerIndex: Int) -> Self
/Users/admin/builder/spi-builder-workspace/Sources/DSFToolbar/DSFToolbar.Segmented.swift:378:14: warning: sending 'self._image' risks causing data races; this is an error in the Swift 6 language mode
376 |
377 | // Image
378 | segmented.setImage(self._image, forSegment: index)
| |- warning: sending 'self._image' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'self._image' to main actor-isolated instance method 'setImage(_:forSegment:)' risks causing data races between main actor-isolated and task-isolated uses
379 | segmented.setImageScaling(self._imageScaling, forSegment: index)
380 |
/Users/admin/builder/spi-builder-workspace/Sources/DSFToolbar/DSFToolbar.Segmented.swift:398:15: warning: sending 'p.some' risks causing data races; this is an error in the Swift 6 language mode
396 |
397 | if let p = self.initialImageValue {
398 | segmented.setImage(p, forSegment: index)
| |- warning: sending 'p.some' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'p.some' to main actor-isolated instance method 'setImage(_:forSegment:)' risks causing data races between main actor-isolated and task-isolated uses
399 | self.initialImageValue = nil
400 | }
/Users/admin/builder/spi-builder-workspace/Sources/DSFToolbar/DSFToolbar.Segmented.swift:347:22: warning: sending 'image' risks causing data races; this is an error in the Swift 6 language mode
345 | private func updateImage(_ image: DSFImage?) {
346 | if let parent = self.parent {
347 | parent.segmented.setImage(image, forSegment: self.index)
| |- warning: sending 'image' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'image' to main actor-isolated instance method 'setImage(_:forSegment:)' risks causing data races between main actor-isolated and task-isolated uses
348 | }
349 | else {
[33/37] Compiling DSFToolbar utilities.swift
[33/37] Write Objects.LinkFileList
[35/37] Archiving libDSFToolbar-static.a
[36/37] Linking libDSFToolbar-shared.dylib
Build complete! (20.93s)
Build complete.
{
"dependencies" : [
{
"identity" : "dsfvaluebinders",
"requirement" : {
"range" : [
{
"lower_bound" : "1.0.1",
"upper_bound" : "1.1.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/dagronf/DSFValueBinders"
}
],
"manifest_display_name" : "DSFToolbar",
"name" : "DSFToolbar",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
{
"name" : "macos",
"version" : "10.13"
}
],
"products" : [
{
"name" : "DSFToolbar",
"targets" : [
"DSFToolbar"
],
"type" : {
"library" : [
"automatic"
]
}
},
{
"name" : "DSFToolbar-static",
"targets" : [
"DSFToolbar"
],
"type" : {
"library" : [
"static"
]
}
},
{
"name" : "DSFToolbar-shared",
"targets" : [
"DSFToolbar"
],
"type" : {
"library" : [
"dynamic"
]
}
}
],
"targets" : [
{
"c99name" : "DSFToolbarTests",
"module_type" : "SwiftTarget",
"name" : "DSFToolbarTests",
"path" : "Tests/DSFToolbarTests",
"sources" : [
"DSFToolbarTests.swift",
"XCTestManifests.swift"
],
"target_dependencies" : [
"DSFToolbar"
],
"type" : "test"
},
{
"c99name" : "DSFToolbar",
"module_type" : "SwiftTarget",
"name" : "DSFToolbar",
"path" : "Sources/DSFToolbar",
"product_dependencies" : [
"DSFValueBinders"
],
"product_memberships" : [
"DSFToolbar",
"DSFToolbar-static",
"DSFToolbar-shared"
],
"sources" : [
"DSFToolbar.Button.swift",
"DSFToolbar.Core.swift",
"DSFToolbar.Group.swift",
"DSFToolbar.Item.swift",
"DSFToolbar.PopoverButton.swift",
"DSFToolbar.PopupButton.swift",
"DSFToolbar.PopupMenu.swift",
"DSFToolbar.ResultBuilders.swift",
"DSFToolbar.Search.swift",
"DSFToolbar.Segmented+catalyst.swift",
"DSFToolbar.Segmented.swift",
"DSFToolbar.Separator.swift",
"DSFToolbar.Standard.swift",
"DSFToolbar.View.swift",
"DSFToolbar.swift",
"logging.swift",
"utilities.swift"
],
"type" : "library"
}
],
"tools_version" : "5.4"
}
Done.