Build Information
Successful build of DSFToolbar, reference 5.1.0 (f486eb
), with Swift 6.0 for macOS (SPM) on 1 Dec 2024 12:55:58 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
351 |
352 | extension DSFToolbar.Button {
353 | private func buildButton(type: NSButton.ButtonType) -> NSButton {
| `- note: add '@MainActor' to make instance method 'buildButton(type:)' part of global actor 'MainActor'
354 | 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
355 | b.translatesAutoresizingMaskIntoConstraints = false
356 | b.bezelStyle = .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.Button.swift:355: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
351 |
352 | extension DSFToolbar.Button {
353 | private func buildButton(type: NSButton.ButtonType) -> NSButton {
| `- note: add '@MainActor' to make instance method 'buildButton(type:)' part of global actor 'MainActor'
354 | let b = NSButton(frame: .zero)
355 | 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
356 | b.bezelStyle = .texturedRounded
357 | b.title = self._title
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.Button.swift:356: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
351 |
352 | extension DSFToolbar.Button {
353 | private func buildButton(type: NSButton.ButtonType) -> NSButton {
| `- note: add '@MainActor' to make instance method 'buildButton(type:)' part of global actor 'MainActor'
354 | let b = NSButton(frame: .zero)
355 | b.translatesAutoresizingMaskIntoConstraints = false
356 | b.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
357 | b.title = self._title
358 | b.image = self._image
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.Button.swift:357:5: warning: main actor-isolated property 'title' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
351 |
352 | extension DSFToolbar.Button {
353 | private func buildButton(type: NSButton.ButtonType) -> NSButton {
| `- note: add '@MainActor' to make instance method 'buildButton(type:)' part of global actor 'MainActor'
354 | let b = NSButton(frame: .zero)
355 | b.translatesAutoresizingMaskIntoConstraints = false
356 | b.bezelStyle = .texturedRounded
357 | b.title = self._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
358 | b.image = self._image
359 | b.imagePosition = self._imagePosition
AppKit.NSButton:28:14: note: mutation of this property is only permitted within the actor
26 | open class func radioButtonWithTitle(_ title: String, target: Any?, action: Selector?) -> Self
27 | open func setButtonType(_ type: NSButton.ButtonType)
28 | open var title: String { get set }
| `- note: mutation of this property is only permitted within the actor
29 | @NSCopying open var attributedTitle: NSAttributedString { get set }
30 | open var alternateTitle: String { get set }
/Users/admin/builder/spi-builder-workspace/Sources/DSFToolbar/DSFToolbar.Button.swift:358:5: warning: main actor-isolated property 'image' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
351 |
352 | extension DSFToolbar.Button {
353 | private func buildButton(type: NSButton.ButtonType) -> NSButton {
| `- note: add '@MainActor' to make instance method 'buildButton(type:)' part of global actor 'MainActor'
354 | let b = NSButton(frame: .zero)
355 | b.translatesAutoresizingMaskIntoConstraints = false
356 | b.bezelStyle = .texturedRounded
357 | b.title = self._title
358 | b.image = self._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
359 | b.imagePosition = self._imagePosition
360 | b.setButtonType(type)
AppKit.NSButton:56:14: 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 | 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.Button.swift:359:5: warning: main actor-isolated property 'imagePosition' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
351 |
352 | extension DSFToolbar.Button {
353 | private func buildButton(type: NSButton.ButtonType) -> NSButton {
| `- note: add '@MainActor' to make instance method 'buildButton(type:)' part of global actor 'MainActor'
354 | let b = NSButton(frame: .zero)
355 | b.translatesAutoresizingMaskIntoConstraints = false
:
357 | b.title = self._title
358 | b.image = self._image
359 | b.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
360 | b.setButtonType(type)
361 | return b
AppKit.NSButton:58:14: note: mutation of this property is only permitted within the actor
56 | 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.Button.swift:360: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
351 |
352 | extension DSFToolbar.Button {
353 | private func buildButton(type: NSButton.ButtonType) -> NSButton {
| `- note: add '@MainActor' to make instance method 'buildButton(type:)' part of global actor 'MainActor'
354 | let b = NSButton(frame: .zero)
355 | b.translatesAutoresizingMaskIntoConstraints = false
:
358 | b.image = self._image
359 | b.imagePosition = self._imagePosition
360 | 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
361 | return b
362 | }
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.Button.swift:369: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
362 | }
363 |
364 | private func updateDisplay() {
| `- note: add '@MainActor' to make instance method 'updateDisplay()' part of global actor 'MainActor'
365 | guard let button = self.button else { fatalError() }
366 |
367 | // If there's an image and no title, set the state to imageOnly
368 | if self._title.count == 0, self._image != nil {
369 | 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
370 | }
371 | 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 | 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.Button.swift:372: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
362 | }
363 |
364 | private func updateDisplay() {
| `- note: add '@MainActor' to make instance method 'updateDisplay()' part of global actor 'MainActor'
365 | guard let button = self.button else { fatalError() }
366 |
:
370 | }
371 | else if self._title.count > 0, self._image == nil {
372 | button.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
373 | }
374 | else {
AppKit.NSButton:58:14: note: mutation of this property is only permitted within the actor
56 | 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.Button.swift:375: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
362 | }
363 |
364 | private func updateDisplay() {
| `- note: add '@MainActor' to make instance method 'updateDisplay()' part of global actor 'MainActor'
365 | guard let button = self.button else { fatalError() }
366 |
:
373 | }
374 | else {
375 | button.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
376 | button.imageScaling = self._imageScaling
377 | }
AppKit.NSButton:58:14: note: mutation of this property is only permitted within the actor
56 | 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.Button.swift:376: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
362 | }
363 |
364 | private func updateDisplay() {
| `- note: add '@MainActor' to make instance method 'updateDisplay()' part of global actor 'MainActor'
365 | guard let button = self.button else { fatalError() }
366 |
:
374 | else {
375 | button.imagePosition = self._imagePosition
376 | button.imageScaling = self._imageScaling
| `- warning: main actor-isolated property 'imageScaling' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
377 | }
378 |
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.Button.swift:379:10: warning: main actor-isolated property 'image' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
362 | }
363 |
364 | private func updateDisplay() {
| `- note: add '@MainActor' to make instance method 'updateDisplay()' part of global actor 'MainActor'
365 | guard let button = self.button else { fatalError() }
366 |
:
377 | }
378 |
379 | button.image = self._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
380 | button.alternateImage = self._alternateImage
381 | button.title = self._title
AppKit.NSButton:56:14: 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 | 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.Button.swift:380:10: warning: main actor-isolated property 'alternateImage' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
362 | }
363 |
364 | private func updateDisplay() {
| `- note: add '@MainActor' to make instance method 'updateDisplay()' part of global actor 'MainActor'
365 | guard let button = self.button else { fatalError() }
366 |
:
378 |
379 | button.image = self._image
380 | button.alternateImage = self._alternateImage
| `- warning: main actor-isolated property 'alternateImage' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
381 | button.title = self._title
382 | button.bezelStyle = self._bezelStyle
AppKit.NSButton:57:14: note: mutation of this property is only permitted within the actor
55 | @NSCopying open var contentTintColor: NSColor? { get set }
56 | open var image: NSImage? { get set }
57 | open var alternateImage: NSImage? { get set }
| `- note: mutation of this property is only permitted within the actor
58 | open var imagePosition: NSControl.ImagePosition { get set }
59 | @available(macOS 10.5, *)
/Users/admin/builder/spi-builder-workspace/Sources/DSFToolbar/DSFToolbar.Button.swift:381:10: warning: main actor-isolated property 'title' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
362 | }
363 |
364 | private func updateDisplay() {
| `- note: add '@MainActor' to make instance method 'updateDisplay()' part of global actor 'MainActor'
365 | guard let button = self.button else { fatalError() }
366 |
:
379 | button.image = self._image
380 | button.alternateImage = self._alternateImage
381 | button.title = self._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
382 | button.bezelStyle = self._bezelStyle
383 | }
AppKit.NSButton:28:14: note: mutation of this property is only permitted within the actor
26 | open class func radioButtonWithTitle(_ title: String, target: Any?, action: Selector?) -> Self
27 | open func setButtonType(_ type: NSButton.ButtonType)
28 | open var title: String { get set }
| `- note: mutation of this property is only permitted within the actor
29 | @NSCopying open var attributedTitle: NSAttributedString { get set }
30 | open var alternateTitle: String { get set }
/Users/admin/builder/spi-builder-workspace/Sources/DSFToolbar/DSFToolbar.Button.swift:382:10: warning: main actor-isolated property 'bezelStyle' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
362 | }
363 |
364 | private func updateDisplay() {
| `- note: add '@MainActor' to make instance method 'updateDisplay()' part of global actor 'MainActor'
365 | guard let button = self.button else { fatalError() }
366 |
:
380 | button.alternateImage = self._alternateImage
381 | button.title = self._title
382 | button.bezelStyle = self._bezelStyle
| `- warning: main actor-isolated property 'bezelStyle' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
383 | }
384 | }
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.Button.swift:395: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
393 |
394 | // If we're using legacy sizing, we have to remove the constraints first
395 | 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
396 | b.removeConstraints(b.constraints)
397 | }
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.Button.swift:396: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
394 | // If we're using legacy sizing, we have to remove the constraints first
395 | b.translatesAutoresizingMaskIntoConstraints = true
396 | 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
397 | }
398 | }
AppKit.NSView:35:15: 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 | 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.Button.swift:396: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
394 | // If we're using legacy sizing, we have to remove the constraints first
395 | b.translatesAutoresizingMaskIntoConstraints = true
396 | 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
397 | }
398 | }
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 | @MainActor open func addConstraint(_ constraint: NSLayoutConstraint)
/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.Core.swift:46:29: warning: main actor-isolated property 'label' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
44 | /// The label for the toolbar item
45 | public var label: String {
46 | return self.toolbarItem?.label ?? ""
| `- warning: main actor-isolated property 'label' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
47 | }
48 |
AppKit.NSToolbarItem:5:14: note: property declared here
3 | open var itemIdentifier: NSToolbarItem.Identifier { get }
4 | weak open var toolbar: NSToolbar? { get }
5 | open var label: String { get set }
| `- note: property declared here
6 | open var paletteLabel: String { get set }
7 | @available(macOS 13.0, *)
/Users/admin/builder/spi-builder-workspace/Sources/DSFToolbar/DSFToolbar.Core.swift:98:21: warning: main actor-isolated property 'toolTip' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
95 | /// - Returns: self
96 | @discardableResult
97 | public func tooltip(_ msg: String) -> Self {
| `- note: add '@MainActor' to make instance method 'tooltip' part of global actor 'MainActor'
98 | self.toolbarItem?.toolTip = msg
| `- warning: main actor-isolated property 'toolTip' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
99 | return self
100 | }
AppKit.NSToolbarItem:9:14: note: mutation of this property is only permitted within the actor
7 | @available(macOS 13.0, *)
8 | open var possibleLabels: Set<String> { get set }
9 | open var toolTip: String? { get set }
| `- 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 }
/Users/admin/builder/spi-builder-workspace/Sources/DSFToolbar/DSFToolbar.Core.swift:123: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
116 | /// set for the toolbar
117 | @discardableResult
118 | public func label(_ label: String) -> Self {
| `- note: add '@MainActor' to make instance method 'label' part of global actor 'MainActor'
119 | guard let ti = self.toolbarItem else {
120 | fatalError()
121 | }
122 |
123 | ti.label = label
| `- warning: main actor-isolated property 'label' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
124 |
125 | // If the user hasn't provided a palette label, set it to the label (older version support)
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.Core.swift:126:9: warning: main actor-isolated property 'paletteLabel' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
116 | /// set for the toolbar
117 | @discardableResult
118 | public func label(_ label: String) -> Self {
| `- note: add '@MainActor' to make instance method 'label' part of global actor 'MainActor'
119 | guard let ti = self.toolbarItem else {
120 | fatalError()
:
124 |
125 | // If the user hasn't provided a palette label, set it to the label (older version support)
126 | if ti.paletteLabel.count == 0 {
| `- warning: main actor-isolated property 'paletteLabel' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
127 | ti.paletteLabel = label
128 | }
AppKit.NSToolbarItem:6:14: note: property declared here
4 | weak open var toolbar: NSToolbar? { get }
5 | open var label: String { get set }
6 | open var paletteLabel: String { get set }
| `- note: property declared here
7 | @available(macOS 13.0, *)
8 | open var possibleLabels: Set<String> { get set }
/Users/admin/builder/spi-builder-workspace/Sources/DSFToolbar/DSFToolbar.Core.swift:127:7: warning: main actor-isolated property 'paletteLabel' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
116 | /// set for the toolbar
117 | @discardableResult
118 | public func label(_ label: String) -> Self {
| `- note: add '@MainActor' to make instance method 'label' part of global actor 'MainActor'
119 | guard let ti = self.toolbarItem else {
120 | fatalError()
:
125 | // If the user hasn't provided a palette label, set it to the label (older version support)
126 | if ti.paletteLabel.count == 0 {
127 | ti.paletteLabel = label
| `- warning: main actor-isolated property 'paletteLabel' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
128 | }
129 |
AppKit.NSToolbarItem:6:14: note: mutation of this property is only permitted within the actor
4 | weak open var toolbar: NSToolbar? { get }
5 | open var label: String { get set }
6 | open var paletteLabel: String { get set }
| `- note: mutation of this property is only permitted within the actor
7 | @available(macOS 13.0, *)
8 | open var possibleLabels: Set<String> { get set }
/Users/admin/builder/spi-builder-workspace/Sources/DSFToolbar/DSFToolbar.Core.swift:141:21: warning: main actor-isolated property 'paletteLabel' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
138 | /// more descriptive text than the 'label'
139 | @discardableResult
140 | public func paletteLabel(_ label: String) -> Self {
| `- note: add '@MainActor' to make instance method 'paletteLabel' part of global actor 'MainActor'
141 | self.toolbarItem?.paletteLabel = label
| `- warning: main actor-isolated property 'paletteLabel' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
142 | return self
143 | }
AppKit.NSToolbarItem:6:14: note: mutation of this property is only permitted within the actor
4 | weak open var toolbar: NSToolbar? { get }
5 | open var label: String { get set }
6 | open var paletteLabel: String { get set }
| `- note: mutation of this property is only permitted within the actor
7 | @available(macOS 13.0, *)
8 | open var possibleLabels: Set<String> { get set }
/Users/admin/builder/spi-builder-workspace/Sources/DSFToolbar/DSFToolbar.Core.swift:153:22: warning: main actor-isolated property 'isBordered' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
149 | /// Only available on 10.15 and later, however will silently be ignored on earlier versions to allow backwards
150 | /// compatibility
151 | @objc public func isBordered(_ state: Bool) -> Self {
| `- note: add '@MainActor' to make instance method 'isBordered' part of global actor 'MainActor'
152 | if #available(macOS 10.15, *) {
153 | self.toolbarItem?.isBordered = state
| `- warning: main actor-isolated property 'isBordered' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
154 | }
155 | return self
AppKit.NSToolbarItem:21:14: note: mutation of this property is only permitted within the actor
19 | open var title: String { get set }
20 | @available(macOS 10.15, *)
21 | open var isBordered: Bool { get set }
| `- note: mutation of this property is only permitted within the actor
22 | @available(macOS 10.15, *)
23 | @available(swift, obsoleted: 3, renamed: "isBordered")
/Users/admin/builder/spi-builder-workspace/Sources/DSFToolbar/DSFToolbar.Core.swift:163:21: warning: main actor-isolated property 'visibilityPriority' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
160 | /// - Returns: self
161 | @discardableResult
162 | public func visibilityPriority(_ priority: NSToolbarItem.VisibilityPriority) -> Self {
| `- note: add '@MainActor' to make instance method 'visibilityPriority' part of global actor 'MainActor'
163 | self.toolbarItem?.visibilityPriority = priority
| `- warning: main actor-isolated property 'visibilityPriority' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
164 | return self
165 | }
AppKit.NSToolbarItem:45:14: note: mutation of this property is only permitted within the actor
43 | @available(macOS, introduced: 10.0, deprecated: 12.0, message: "This property is no longer recommended. Instead, let the system automatically measure the size of the view using constraints.")
44 | open var maxSize: NSSize { get set }
45 | open var visibilityPriority: NSToolbarItem.VisibilityPriority { get set }
| `- note: mutation of this property is only permitted within the actor
46 | open func validate()
47 | open var autovalidates: Bool { get set }
/Users/admin/builder/spi-builder-workspace/Sources/DSFToolbar/DSFToolbar.Core.swift:202:23: warning: main actor-isolated property 'isEnabled' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
200 | self._isEnabledBinder = isEnabledBinder
201 | isEnabledBinder.register(self) { [weak self] newEnabledState in
202 | self?.toolbarItem?.isEnabled = newEnabledState
| `- warning: main actor-isolated property 'isEnabled' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
203 | self?.isEnabledDidChange(to: newEnabledState)
204 | }
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.Core.swift:251:22: warning: main actor-isolated property 'minSize' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
236 | /// Setting a legacy size will only affect layouts pre 10.13 (High Sierra) - newer systems
237 | /// will just ignore these if they are set.
238 | public func legacySizes(minSize: NSSize? = nil, maxSize: NSSize? = nil) -> Self {
| `- note: add '@MainActor' to make instance method 'legacySizes(minSize:maxSize:)' part of global actor 'MainActor'
239 | if #available(macOS 10.14, *) {
240 | return self
:
249 |
250 | if let s = minSize {
251 | self.toolbarItem?.minSize = s
| `- warning: main actor-isolated property 'minSize' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
252 | }
253 | if let s = maxSize {
AppKit.NSToolbarItem:42:14: note: mutation of this property is only permitted within the actor
40 | open var hidden: Bool { get set }
41 | @available(macOS, introduced: 10.0, deprecated: 12.0, message: "This property is no longer recommended. Instead, let the system automatically measure the size of the view using constraints.")
42 | open var minSize: NSSize { get set }
| `- note: mutation of this property is only permitted within the actor
43 | @available(macOS, introduced: 10.0, deprecated: 12.0, message: "This property is no longer recommended. Instead, let the system automatically measure the size of the view using constraints.")
44 | open var maxSize: NSSize { get set }
/Users/admin/builder/spi-builder-workspace/Sources/DSFToolbar/DSFToolbar.Core.swift:254:22: warning: main actor-isolated property 'maxSize' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
236 | /// Setting a legacy size will only affect layouts pre 10.13 (High Sierra) - newer systems
237 | /// will just ignore these if they are set.
238 | public func legacySizes(minSize: NSSize? = nil, maxSize: NSSize? = nil) -> Self {
| `- note: add '@MainActor' to make instance method 'legacySizes(minSize:maxSize:)' part of global actor 'MainActor'
239 | if #available(macOS 10.14, *) {
240 | return self
:
252 | }
253 | if let s = maxSize {
254 | self.toolbarItem?.maxSize = s
| `- warning: main actor-isolated property 'maxSize' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
255 | }
256 | return self
AppKit.NSToolbarItem:44:14: note: mutation of this property is only permitted within the actor
42 | open var minSize: NSSize { get set }
43 | @available(macOS, introduced: 10.0, deprecated: 12.0, message: "This property is no longer recommended. Instead, let the system automatically measure the size of the view using constraints.")
44 | open var maxSize: NSSize { get set }
| `- note: mutation of this property is only permitted within the actor
45 | open var visibilityPriority: NSToolbarItem.VisibilityPriority { get set }
46 | open func validate()
/Users/admin/builder/spi-builder-workspace/Sources/DSFToolbar/DSFToolbar.Button.swift:290:7: warning: sending 'self.minWidth' risks causing data races; this is an error in the Swift 6 language mode
288 | multiplier: 1, constant: 0
289 | )
290 | b.addConstraint(self.minWidth!)
| |- warning: sending 'self.minWidth' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'self.minWidth' to main actor-isolated instance method 'addConstraint' risks causing data races between main actor-isolated and task-isolated uses
291 | }
292 | if let w = self.minWidth {
/Users/admin/builder/spi-builder-workspace/Sources/DSFToolbar/DSFToolbar.Button.swift:305:7: warning: sending 'self.maxWidth' risks causing data races; this is an error in the Swift 6 language mode
303 | multiplier: 1, constant: 0
304 | )
305 | b.addConstraint(self.maxWidth!)
| |- warning: sending 'self.maxWidth' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'self.maxWidth' to main actor-isolated instance method 'addConstraint' risks causing data races between main actor-isolated and task-isolated uses
306 | }
307 | if let w = self.maxWidth {
[30/36] Compiling DSFToolbar DSFToolbar.Core.swift
/Users/admin/builder/spi-builder-workspace/Sources/DSFToolbar/DSFToolbar.Button.swift:48: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
46 |
47 | let button = buildButton(type: buttonType)
48 | 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
49 | a.view = button
50 | self.buttonToolbarItem = 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.Button.swift:49: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
47 | let button = buildButton(type: buttonType)
48 | let a = NSToolbarItem(itemIdentifier: self.identifier)
49 | a.view = 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
50 | self.buttonToolbarItem = a
51 |
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.Button.swift:52:11: warning: main actor-isolated property 'target' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
50 | self.buttonToolbarItem = a
51 |
52 | 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
53 | button.action = #selector(itemPressed(_:))
54 |
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.Button.swift:53:11: warning: main actor-isolated property 'action' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
51 |
52 | button.target = self
53 | button.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
54 |
55 | self.button = button
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.Button.swift:74: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
72 |
73 | self.button = button
74 | 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
75 | a.view = self.button
76 | self.buttonToolbarItem = 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.Button.swift:75: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
73 | self.button = button
74 | let a = NSToolbarItem(itemIdentifier: self.identifier)
75 | 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
76 | self.buttonToolbarItem = a
77 | }
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.Button.swift:91: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
89 | /// Cleanup
90 | override public func close() {
91 | 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
92 | self.button = nil
93 | self._titleBinding = nil
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.Button.swift:100: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
98 | self._image = nil
99 | self._alternateImage = nil
100 | 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
101 | self.buttonToolbarItem = nil
102 |
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.Button.swift:170:16: warning: main actor-isolated property 'target' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
167 | /// - Returns: self
168 | @discardableResult
169 | func bindState(_ stateBinder: ValueBinder<NSControl.StateValue>) -> Self {
| `- note: add '@MainActor' to make instance method 'bindState' part of global actor 'MainActor'
170 | 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
171 | self.button?.action = #selector(itemPressed(_:))
172 |
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.Button.swift:171:16: warning: main actor-isolated property 'action' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
167 | /// - Returns: self
168 | @discardableResult
169 | func bindState(_ stateBinder: ValueBinder<NSControl.StateValue>) -> Self {
| `- note: add '@MainActor' to make instance method 'bindState' part of global actor 'MainActor'
170 | self.button?.target = self
171 | self.button?.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
172 |
173 | _stateBinder = stateBinder
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.Button.swift:175:18: warning: main actor-isolated property 'state' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
173 | _stateBinder = stateBinder
174 | stateBinder.register(self) { [weak self] newValue in
175 | self?.button?.state = newValue
| `- warning: main actor-isolated property 'state' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
176 | }
177 | return self
AppKit.NSButton:65:25: note: mutation of this property is only permitted within the actor
63 | @available(macOS 11.0, *)
64 | @NSCopying open var symbolConfiguration: NSImage.SymbolConfiguration? { get set }
65 | @MainActor open var state: NSControl.StateValue { get set }
| `- note: mutation of this property is only permitted within the actor
66 | open var allowsMixedState: Bool { get set }
67 | open func setNextState()
/Users/admin/builder/spi-builder-workspace/Sources/DSFToolbar/DSFToolbar.Button.swift:186:16: warning: main actor-isolated property 'target' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
183 | /// - Returns: self
184 | @discardableResult
185 | func bindOnOffState(_ stateOnOffBinder: ValueBinder<Bool>) -> Self {
| `- note: add '@MainActor' to make instance method 'bindOnOffState' part of global actor 'MainActor'
186 | 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
187 | self.button?.action = #selector(itemPressed(_:))
188 |
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.Button.swift:187:16: warning: main actor-isolated property 'action' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
183 | /// - Returns: self
184 | @discardableResult
185 | func bindOnOffState(_ stateOnOffBinder: ValueBinder<Bool>) -> Self {
| `- note: add '@MainActor' to make instance method 'bindOnOffState' part of global actor 'MainActor'
186 | self.button?.target = self
187 | self.button?.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
188 |
189 | _stateOnOffBinder = stateOnOffBinder
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.Button.swift:191:18: warning: main actor-isolated property 'state' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
189 | _stateOnOffBinder = stateOnOffBinder
190 | stateOnOffBinder.register(self) { [weak self] newValue in
191 | self?.button?.state = newValue ? .on : .off
| `- warning: main actor-isolated property 'state' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
192 | }
193 | return self
AppKit.NSButton:65:25: note: mutation of this property is only permitted within the actor
63 | @available(macOS 11.0, *)
64 | @NSCopying open var symbolConfiguration: NSImage.SymbolConfiguration? { get set }
65 | @MainActor open var state: NSControl.StateValue { get set }
| `- note: mutation of this property is only permitted within the actor
66 | open var allowsMixedState: Bool { get set }
67 | open func setNextState()
/Users/admin/builder/spi-builder-workspace/Sources/DSFToolbar/DSFToolbar.Button.swift:221:16: warning: call to main actor-isolated instance method 'setButtonType' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
218 | /// - Returns: self
219 | @discardableResult
220 | func buttonType(_ type: NSButton.ButtonType) -> Self {
| `- note: add '@MainActor' to make instance method 'buttonType' part of global actor 'MainActor'
221 | self.button?.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
222 | return self
223 | }
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.Button.swift:290:7: warning: call to main actor-isolated instance method 'addConstraint' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
277 | /// - Returns: self
278 | @discardableResult
279 | func width(minVal: CGFloat? = nil, maxVal: CGFloat? = nil) -> Self {
| `- note: add '@MainActor' to make instance method 'width(minVal:maxVal:)' part of global actor 'MainActor'
280 | guard let b = self.button else { fatalError() }
281 |
:
288 | multiplier: 1, constant: 0
289 | )
290 | b.addConstraint(self.minWidth!)
| `- warning: call to main actor-isolated instance method 'addConstraint' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
291 | }
292 | if let w = self.minWidth {
AppKit.NSView:29:26: note: calls to instance method 'addConstraint' from outside of its actor context are implicitly asynchronous
27 | open var constraints: [NSLayoutConstraint] { get }
28 | @available(macOS 10.7, *)
29 | @MainActor open func addConstraint(_ constraint: NSLayoutConstraint)
| `- note: calls to instance method 'addConstraint' from outside of its actor context are implicitly asynchronous
30 | @available(macOS 10.7, *)
31 | open func addConstraints(_ constraints: [NSLayoutConstraint])
/Users/admin/builder/spi-builder-workspace/Sources/DSFToolbar/DSFToolbar.Button.swift:305:7: warning: call to main actor-isolated instance method 'addConstraint' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
277 | /// - Returns: self
278 | @discardableResult
279 | func width(minVal: CGFloat? = nil, maxVal: CGFloat? = nil) -> Self {
| `- note: add '@MainActor' to make instance method 'width(minVal:maxVal:)' part of global actor 'MainActor'
280 | guard let b = self.button else { fatalError() }
281 |
:
303 | multiplier: 1, constant: 0
304 | )
305 | b.addConstraint(self.maxWidth!)
| `- warning: call to main actor-isolated instance method 'addConstraint' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
306 | }
307 | if let w = self.maxWidth {
AppKit.NSView:29:26: note: calls to instance method 'addConstraint' from outside of its actor context are implicitly asynchronous
27 | open var constraints: [NSLayoutConstraint] { get }
28 | @available(macOS 10.7, *)
29 | @MainActor open func addConstraint(_ constraint: NSLayoutConstraint)
| `- note: calls to instance method 'addConstraint' from outside of its actor context are implicitly asynchronous
30 | @available(macOS 10.7, *)
31 | open func addConstraints(_ constraints: [NSLayoutConstraint])
/Users/admin/builder/spi-builder-workspace/Sources/DSFToolbar/DSFToolbar.Button.swift:312:5: warning: main actor-isolated property 'needsUpdateConstraints' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
277 | /// - Returns: self
278 | @discardableResult
279 | func width(minVal: CGFloat? = nil, maxVal: CGFloat? = nil) -> Self {
| `- note: add '@MainActor' to make instance method 'width(minVal:maxVal:)' part of global actor 'MainActor'
280 | guard let b = self.button else { fatalError() }
281 |
:
310 | }
311 |
312 | b.needsUpdateConstraints = true
| `- warning: main actor-isolated property 'needsUpdateConstraints' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
313 | return self
314 | }
AppKit.NSView:7:25: note: mutation of this property is only permitted within the actor
5 | open func updateConstraints()
6 | @available(macOS 10.7, *)
7 | @MainActor open var needsUpdateConstraints: Bool { get set }
| `- note: mutation of this property is only permitted within the actor
8 | }
/Users/admin/builder/spi-builder-workspace/Sources/DSFToolbar/DSFToolbar.Button.swift:342:40: warning: main actor-isolated property 'state' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
338 | }
339 |
340 | @objc private func itemPressed(_: Any) {
| `- note: add '@MainActor' to make instance method 'itemPressed' part of global actor 'MainActor'
341 | if let b = self.button {
342 | self._stateBinder?.wrappedValue = b.state
| `- warning: main actor-isolated property 'state' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
343 | self._stateOnOffBinder?.wrappedValue = (b.state != .off)
344 | self._actionBlock?(b)
AppKit.NSButton:65:25: note: property declared here
63 | @available(macOS 11.0, *)
64 | @NSCopying open var symbolConfiguration: NSImage.SymbolConfiguration? { get set }
65 | @MainActor open var state: NSControl.StateValue { get set }
| `- note: property declared here
66 | open var allowsMixedState: Bool { get set }
67 | open func setNextState()
/Users/admin/builder/spi-builder-workspace/Sources/DSFToolbar/DSFToolbar.Button.swift:343:46: warning: main actor-isolated property 'state' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
338 | }
339 |
340 | @objc private func itemPressed(_: Any) {
| `- note: add '@MainActor' to make instance method 'itemPressed' part of global actor 'MainActor'
341 | if let b = self.button {
342 | self._stateBinder?.wrappedValue = b.state
343 | self._stateOnOffBinder?.wrappedValue = (b.state != .off)
| `- warning: main actor-isolated property 'state' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
344 | self._actionBlock?(b)
345 | if let custom = _targetAction {
AppKit.NSButton:65:25: note: property declared here
63 | @available(macOS 11.0, *)
64 | @NSCopying open var symbolConfiguration: NSImage.SymbolConfiguration? { get set }
65 | @MainActor open var state: NSControl.StateValue { get set }
| `- note: property declared here
66 | open var allowsMixedState: Bool { get set }
67 | open func setNextState()
/Users/admin/builder/spi-builder-workspace/Sources/DSFToolbar/DSFToolbar.Button.swift:354: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
351 |
352 | extension DSFToolbar.Button {
353 | private func buildButton(type: NSButton.ButtonType) -> NSButton {
| `- note: add '@MainActor' to make instance method 'buildButton(type:)' part of global actor 'MainActor'
354 | 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
355 | b.translatesAutoresizingMaskIntoConstraints = false
356 | b.bezelStyle = .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.Button.swift:355: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
351 |
352 | extension DSFToolbar.Button {
353 | private func buildButton(type: NSButton.ButtonType) -> NSButton {
| `- note: add '@MainActor' to make instance method 'buildButton(type:)' part of global actor 'MainActor'
354 | let b = NSButton(frame: .zero)
355 | 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
356 | b.bezelStyle = .texturedRounded
357 | b.title = self._title
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.Button.swift:356: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
351 |
352 | extension DSFToolbar.Button {
353 | private func buildButton(type: NSButton.ButtonType) -> NSButton {
| `- note: add '@MainActor' to make instance method 'buildButton(type:)' part of global actor 'MainActor'
354 | let b = NSButton(frame: .zero)
355 | b.translatesAutoresizingMaskIntoConstraints = false
356 | b.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
357 | b.title = self._title
358 | b.image = self._image
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.Button.swift:357:5: warning: main actor-isolated property 'title' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
351 |
352 | extension DSFToolbar.Button {
353 | private func buildButton(type: NSButton.ButtonType) -> NSButton {
| `- note: add '@MainActor' to make instance method 'buildButton(type:)' part of global actor 'MainActor'
354 | let b = NSButton(frame: .zero)
355 | b.translatesAutoresizingMaskIntoConstraints = false
356 | b.bezelStyle = .texturedRounded
357 | b.title = self._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
358 | b.image = self._image
359 | b.imagePosition = self._imagePosition
AppKit.NSButton:28:14: note: mutation of this property is only permitted within the actor
26 | open class func radioButtonWithTitle(_ title: String, target: Any?, action: Selector?) -> Self
27 | open func setButtonType(_ type: NSButton.ButtonType)
28 | open var title: String { get set }
| `- note: mutation of this property is only permitted within the actor
29 | @NSCopying open var attributedTitle: NSAttributedString { get set }
30 | open var alternateTitle: String { get set }
/Users/admin/builder/spi-builder-workspace/Sources/DSFToolbar/DSFToolbar.Button.swift:358:5: warning: main actor-isolated property 'image' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
351 |
352 | extension DSFToolbar.Button {
353 | private func buildButton(type: NSButton.ButtonType) -> NSButton {
| `- note: add '@MainActor' to make instance method 'buildButton(type:)' part of global actor 'MainActor'
354 | let b = NSButton(frame: .zero)
355 | b.translatesAutoresizingMaskIntoConstraints = false
356 | b.bezelStyle = .texturedRounded
357 | b.title = self._title
358 | b.image = self._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
359 | b.imagePosition = self._imagePosition
360 | b.setButtonType(type)
AppKit.NSButton:56:14: 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 | 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.Button.swift:359:5: warning: main actor-isolated property 'imagePosition' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
351 |
352 | extension DSFToolbar.Button {
353 | private func buildButton(type: NSButton.ButtonType) -> NSButton {
| `- note: add '@MainActor' to make instance method 'buildButton(type:)' part of global actor 'MainActor'
354 | let b = NSButton(frame: .zero)
355 | b.translatesAutoresizingMaskIntoConstraints = false
:
357 | b.title = self._title
358 | b.image = self._image
359 | b.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
360 | b.setButtonType(type)
361 | return b
AppKit.NSButton:58:14: note: mutation of this property is only permitted within the actor
56 | 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.Button.swift:360: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
351 |
352 | extension DSFToolbar.Button {
353 | private func buildButton(type: NSButton.ButtonType) -> NSButton {
| `- note: add '@MainActor' to make instance method 'buildButton(type:)' part of global actor 'MainActor'
354 | let b = NSButton(frame: .zero)
355 | b.translatesAutoresizingMaskIntoConstraints = false
:
358 | b.image = self._image
359 | b.imagePosition = self._imagePosition
360 | 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
361 | return b
362 | }
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.Button.swift:369: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
362 | }
363 |
364 | private func updateDisplay() {
| `- note: add '@MainActor' to make instance method 'updateDisplay()' part of global actor 'MainActor'
365 | guard let button = self.button else { fatalError() }
366 |
367 | // If there's an image and no title, set the state to imageOnly
368 | if self._title.count == 0, self._image != nil {
369 | 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
370 | }
371 | 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 | 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.Button.swift:372: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
362 | }
363 |
364 | private func updateDisplay() {
| `- note: add '@MainActor' to make instance method 'updateDisplay()' part of global actor 'MainActor'
365 | guard let button = self.button else { fatalError() }
366 |
:
370 | }
371 | else if self._title.count > 0, self._image == nil {
372 | button.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
373 | }
374 | else {
AppKit.NSButton:58:14: note: mutation of this property is only permitted within the actor
56 | 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.Button.swift:375: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
362 | }
363 |
364 | private func updateDisplay() {
| `- note: add '@MainActor' to make instance method 'updateDisplay()' part of global actor 'MainActor'
365 | guard let button = self.button else { fatalError() }
366 |
:
373 | }
374 | else {
375 | button.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
376 | button.imageScaling = self._imageScaling
377 | }
AppKit.NSButton:58:14: note: mutation of this property is only permitted within the actor
56 | 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.Button.swift:376: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
362 | }
363 |
364 | private func updateDisplay() {
| `- note: add '@MainActor' to make instance method 'updateDisplay()' part of global actor 'MainActor'
365 | guard let button = self.button else { fatalError() }
366 |
:
374 | else {
375 | button.imagePosition = self._imagePosition
376 | button.imageScaling = self._imageScaling
| `- warning: main actor-isolated property 'imageScaling' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
377 | }
378 |
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.Button.swift:379:10: warning: main actor-isolated property 'image' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
362 | }
363 |
364 | private func updateDisplay() {
| `- note: add '@MainActor' to make instance method 'updateDisplay()' part of global actor 'MainActor'
365 | guard let button = self.button else { fatalError() }
366 |
:
377 | }
378 |
379 | button.image = self._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
380 | button.alternateImage = self._alternateImage
381 | button.title = self._title
AppKit.NSButton:56:14: 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 | 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.Button.swift:380:10: warning: main actor-isolated property 'alternateImage' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
362 | }
363 |
364 | private func updateDisplay() {
| `- note: add '@MainActor' to make instance method 'updateDisplay()' part of global actor 'MainActor'
365 | guard let button = self.button else { fatalError() }
366 |
:
378 |
379 | button.image = self._image
380 | button.alternateImage = self._alternateImage
| `- warning: main actor-isolated property 'alternateImage' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
381 | button.title = self._title
382 | button.bezelStyle = self._bezelStyle
AppKit.NSButton:57:14: note: mutation of this property is only permitted within the actor
55 | @NSCopying open var contentTintColor: NSColor? { get set }
56 | open var image: NSImage? { get set }
57 | open var alternateImage: NSImage? { get set }
| `- note: mutation of this property is only permitted within the actor
58 | open var imagePosition: NSControl.ImagePosition { get set }
59 | @available(macOS 10.5, *)
/Users/admin/builder/spi-builder-workspace/Sources/DSFToolbar/DSFToolbar.Button.swift:381:10: warning: main actor-isolated property 'title' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
362 | }
363 |
364 | private func updateDisplay() {
| `- note: add '@MainActor' to make instance method 'updateDisplay()' part of global actor 'MainActor'
365 | guard let button = self.button else { fatalError() }
366 |
:
379 | button.image = self._image
380 | button.alternateImage = self._alternateImage
381 | button.title = self._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
382 | button.bezelStyle = self._bezelStyle
383 | }
AppKit.NSButton:28:14: note: mutation of this property is only permitted within the actor
26 | open class func radioButtonWithTitle(_ title: String, target: Any?, action: Selector?) -> Self
27 | open func setButtonType(_ type: NSButton.ButtonType)
28 | open var title: String { get set }
| `- note: mutation of this property is only permitted within the actor
29 | @NSCopying open var attributedTitle: NSAttributedString { get set }
30 | open var alternateTitle: String { get set }
/Users/admin/builder/spi-builder-workspace/Sources/DSFToolbar/DSFToolbar.Button.swift:382:10: warning: main actor-isolated property 'bezelStyle' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
362 | }
363 |
364 | private func updateDisplay() {
| `- note: add '@MainActor' to make instance method 'updateDisplay()' part of global actor 'MainActor'
365 | guard let button = self.button else { fatalError() }
366 |
:
380 | button.alternateImage = self._alternateImage
381 | button.title = self._title
382 | button.bezelStyle = self._bezelStyle
| `- warning: main actor-isolated property 'bezelStyle' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
383 | }
384 | }
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.Button.swift:395: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
393 |
394 | // If we're using legacy sizing, we have to remove the constraints first
395 | 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
396 | b.removeConstraints(b.constraints)
397 | }
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.Button.swift:396: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
394 | // If we're using legacy sizing, we have to remove the constraints first
395 | b.translatesAutoresizingMaskIntoConstraints = true
396 | 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
397 | }
398 | }
AppKit.NSView:35:15: 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 | 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.Button.swift:396: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
394 | // If we're using legacy sizing, we have to remove the constraints first
395 | b.translatesAutoresizingMaskIntoConstraints = true
396 | 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
397 | }
398 | }
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 | @MainActor open func addConstraint(_ constraint: NSLayoutConstraint)
/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.Core.swift:46:29: warning: main actor-isolated property 'label' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
44 | /// The label for the toolbar item
45 | public var label: String {
46 | return self.toolbarItem?.label ?? ""
| `- warning: main actor-isolated property 'label' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
47 | }
48 |
AppKit.NSToolbarItem:5:14: note: property declared here
3 | open var itemIdentifier: NSToolbarItem.Identifier { get }
4 | weak open var toolbar: NSToolbar? { get }
5 | open var label: String { get set }
| `- note: property declared here
6 | open var paletteLabel: String { get set }
7 | @available(macOS 13.0, *)
/Users/admin/builder/spi-builder-workspace/Sources/DSFToolbar/DSFToolbar.Core.swift:98:21: warning: main actor-isolated property 'toolTip' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
95 | /// - Returns: self
96 | @discardableResult
97 | public func tooltip(_ msg: String) -> Self {
| `- note: add '@MainActor' to make instance method 'tooltip' part of global actor 'MainActor'
98 | self.toolbarItem?.toolTip = msg
| `- warning: main actor-isolated property 'toolTip' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
99 | return self
100 | }
AppKit.NSToolbarItem:9:14: note: mutation of this property is only permitted within the actor
7 | @available(macOS 13.0, *)
8 | open var possibleLabels: Set<String> { get set }
9 | open var toolTip: String? { get set }
| `- 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 }
/Users/admin/builder/spi-builder-workspace/Sources/DSFToolbar/DSFToolbar.Core.swift:123: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
116 | /// set for the toolbar
117 | @discardableResult
118 | public func label(_ label: String) -> Self {
| `- note: add '@MainActor' to make instance method 'label' part of global actor 'MainActor'
119 | guard let ti = self.toolbarItem else {
120 | fatalError()
121 | }
122 |
123 | ti.label = label
| `- warning: main actor-isolated property 'label' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
124 |
125 | // If the user hasn't provided a palette label, set it to the label (older version support)
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.Core.swift:126:9: warning: main actor-isolated property 'paletteLabel' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
116 | /// set for the toolbar
117 | @discardableResult
118 | public func label(_ label: String) -> Self {
| `- note: add '@MainActor' to make instance method 'label' part of global actor 'MainActor'
119 | guard let ti = self.toolbarItem else {
120 | fatalError()
:
124 |
125 | // If the user hasn't provided a palette label, set it to the label (older version support)
126 | if ti.paletteLabel.count == 0 {
| `- warning: main actor-isolated property 'paletteLabel' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
127 | ti.paletteLabel = label
128 | }
AppKit.NSToolbarItem:6:14: note: property declared here
4 | weak open var toolbar: NSToolbar? { get }
5 | open var label: String { get set }
6 | open var paletteLabel: String { get set }
| `- note: property declared here
7 | @available(macOS 13.0, *)
8 | open var possibleLabels: Set<String> { get set }
/Users/admin/builder/spi-builder-workspace/Sources/DSFToolbar/DSFToolbar.Core.swift:127:7: warning: main actor-isolated property 'paletteLabel' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
116 | /// set for the toolbar
117 | @discardableResult
118 | public func label(_ label: String) -> Self {
| `- note: add '@MainActor' to make instance method 'label' part of global actor 'MainActor'
119 | guard let ti = self.toolbarItem else {
120 | fatalError()
:
125 | // If the user hasn't provided a palette label, set it to the label (older version support)
126 | if ti.paletteLabel.count == 0 {
127 | ti.paletteLabel = label
| `- warning: main actor-isolated property 'paletteLabel' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
128 | }
129 |
AppKit.NSToolbarItem:6:14: note: mutation of this property is only permitted within the actor
4 | weak open var toolbar: NSToolbar? { get }
5 | open var label: String { get set }
6 | open var paletteLabel: String { get set }
| `- note: mutation of this property is only permitted within the actor
7 | @available(macOS 13.0, *)
8 | open var possibleLabels: Set<String> { get set }
/Users/admin/builder/spi-builder-workspace/Sources/DSFToolbar/DSFToolbar.Core.swift:141:21: warning: main actor-isolated property 'paletteLabel' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
138 | /// more descriptive text than the 'label'
139 | @discardableResult
140 | public func paletteLabel(_ label: String) -> Self {
| `- note: add '@MainActor' to make instance method 'paletteLabel' part of global actor 'MainActor'
141 | self.toolbarItem?.paletteLabel = label
| `- warning: main actor-isolated property 'paletteLabel' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
142 | return self
143 | }
AppKit.NSToolbarItem:6:14: note: mutation of this property is only permitted within the actor
4 | weak open var toolbar: NSToolbar? { get }
5 | open var label: String { get set }
6 | open var paletteLabel: String { get set }
| `- note: mutation of this property is only permitted within the actor
7 | @available(macOS 13.0, *)
8 | open var possibleLabels: Set<String> { get set }
/Users/admin/builder/spi-builder-workspace/Sources/DSFToolbar/DSFToolbar.Core.swift:153:22: warning: main actor-isolated property 'isBordered' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
149 | /// Only available on 10.15 and later, however will silently be ignored on earlier versions to allow backwards
150 | /// compatibility
151 | @objc public func isBordered(_ state: Bool) -> Self {
| `- note: add '@MainActor' to make instance method 'isBordered' part of global actor 'MainActor'
152 | if #available(macOS 10.15, *) {
153 | self.toolbarItem?.isBordered = state
| `- warning: main actor-isolated property 'isBordered' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
154 | }
155 | return self
AppKit.NSToolbarItem:21:14: note: mutation of this property is only permitted within the actor
19 | open var title: String { get set }
20 | @available(macOS 10.15, *)
21 | open var isBordered: Bool { get set }
| `- note: mutation of this property is only permitted within the actor
22 | @available(macOS 10.15, *)
23 | @available(swift, obsoleted: 3, renamed: "isBordered")
/Users/admin/builder/spi-builder-workspace/Sources/DSFToolbar/DSFToolbar.Core.swift:163:21: warning: main actor-isolated property 'visibilityPriority' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
160 | /// - Returns: self
161 | @discardableResult
162 | public func visibilityPriority(_ priority: NSToolbarItem.VisibilityPriority) -> Self {
| `- note: add '@MainActor' to make instance method 'visibilityPriority' part of global actor 'MainActor'
163 | self.toolbarItem?.visibilityPriority = priority
| `- warning: main actor-isolated property 'visibilityPriority' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
164 | return self
165 | }
AppKit.NSToolbarItem:45:14: note: mutation of this property is only permitted within the actor
43 | @available(macOS, introduced: 10.0, deprecated: 12.0, message: "This property is no longer recommended. Instead, let the system automatically measure the size of the view using constraints.")
44 | open var maxSize: NSSize { get set }
45 | open var visibilityPriority: NSToolbarItem.VisibilityPriority { get set }
| `- note: mutation of this property is only permitted within the actor
46 | open func validate()
47 | open var autovalidates: Bool { get set }
/Users/admin/builder/spi-builder-workspace/Sources/DSFToolbar/DSFToolbar.Core.swift:202:23: warning: main actor-isolated property 'isEnabled' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
200 | self._isEnabledBinder = isEnabledBinder
201 | isEnabledBinder.register(self) { [weak self] newEnabledState in
202 | self?.toolbarItem?.isEnabled = newEnabledState
| `- warning: main actor-isolated property 'isEnabled' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
203 | self?.isEnabledDidChange(to: newEnabledState)
204 | }
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.Core.swift:251:22: warning: main actor-isolated property 'minSize' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
236 | /// Setting a legacy size will only affect layouts pre 10.13 (High Sierra) - newer systems
237 | /// will just ignore these if they are set.
238 | public func legacySizes(minSize: NSSize? = nil, maxSize: NSSize? = nil) -> Self {
| `- note: add '@MainActor' to make instance method 'legacySizes(minSize:maxSize:)' part of global actor 'MainActor'
239 | if #available(macOS 10.14, *) {
240 | return self
:
249 |
250 | if let s = minSize {
251 | self.toolbarItem?.minSize = s
| `- warning: main actor-isolated property 'minSize' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
252 | }
253 | if let s = maxSize {
AppKit.NSToolbarItem:42:14: note: mutation of this property is only permitted within the actor
40 | open var hidden: Bool { get set }
41 | @available(macOS, introduced: 10.0, deprecated: 12.0, message: "This property is no longer recommended. Instead, let the system automatically measure the size of the view using constraints.")
42 | open var minSize: NSSize { get set }
| `- note: mutation of this property is only permitted within the actor
43 | @available(macOS, introduced: 10.0, deprecated: 12.0, message: "This property is no longer recommended. Instead, let the system automatically measure the size of the view using constraints.")
44 | open var maxSize: NSSize { get set }
/Users/admin/builder/spi-builder-workspace/Sources/DSFToolbar/DSFToolbar.Core.swift:254:22: warning: main actor-isolated property 'maxSize' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
236 | /// Setting a legacy size will only affect layouts pre 10.13 (High Sierra) - newer systems
237 | /// will just ignore these if they are set.
238 | public func legacySizes(minSize: NSSize? = nil, maxSize: NSSize? = nil) -> Self {
| `- note: add '@MainActor' to make instance method 'legacySizes(minSize:maxSize:)' part of global actor 'MainActor'
239 | if #available(macOS 10.14, *) {
240 | return self
:
252 | }
253 | if let s = maxSize {
254 | self.toolbarItem?.maxSize = s
| `- warning: main actor-isolated property 'maxSize' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
255 | }
256 | return self
AppKit.NSToolbarItem:44:14: note: mutation of this property is only permitted within the actor
42 | open var minSize: NSSize { get set }
43 | @available(macOS, introduced: 10.0, deprecated: 12.0, message: "This property is no longer recommended. Instead, let the system automatically measure the size of the view using constraints.")
44 | open var maxSize: NSSize { get set }
| `- note: mutation of this property is only permitted within the actor
45 | open var visibilityPriority: NSToolbarItem.VisibilityPriority { get set }
46 | open func validate()
/Users/admin/builder/spi-builder-workspace/Sources/DSFToolbar/DSFToolbar.Button.swift:290:7: warning: sending 'self.minWidth' risks causing data races; this is an error in the Swift 6 language mode
288 | multiplier: 1, constant: 0
289 | )
290 | b.addConstraint(self.minWidth!)
| |- warning: sending 'self.minWidth' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'self.minWidth' to main actor-isolated instance method 'addConstraint' risks causing data races between main actor-isolated and task-isolated uses
291 | }
292 | if let w = self.minWidth {
/Users/admin/builder/spi-builder-workspace/Sources/DSFToolbar/DSFToolbar.Button.swift:305:7: warning: sending 'self.maxWidth' risks causing data races; this is an error in the Swift 6 language mode
303 | multiplier: 1, constant: 0
304 | )
305 | b.addConstraint(self.maxWidth!)
| |- warning: sending 'self.maxWidth' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'self.maxWidth' to main actor-isolated instance method 'addConstraint' risks causing data races between main actor-isolated and task-isolated uses
306 | }
307 | if let w = self.maxWidth {
[31/36] Compiling DSFToolbar DSFToolbar.PopoverButton.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 }
[32/36] 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 }
[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! (19.88s)
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.