This commit is contained in:
Peter Steinberger 2025-05-25 14:49:43 +02:00
parent 3780c3a167
commit 203f50d95b
4 changed files with 6 additions and 20 deletions

View File

@ -56,11 +56,10 @@ public class AXorcist {
// - handleCollectAll: AXorcist+ActionHandlers.swift
// - handleBatchCommands: AXorcist+BatchHandler.swift
// handleExtractText method is implemented in AXorcist+ActionHandlers.swift
// handleBatchCommands method is implemented in AXorcist+BatchHandler.swift
// handleCollectAll method is implemented in AXorcist+ActionHandlers.swift
// Handler methods are implemented in extension files:
// - handleExtractText: AXorcist+ActionHandlers.swift
// - handleBatchCommands: AXorcist+BatchHandler.swift
// - handleCollectAll: AXorcist+CollectAllHandler.swift
// MARK: - Path Navigation

View File

@ -236,15 +236,6 @@ public class AXObserverCenter {
}
}
// Old addObserver and removeObserver are effectively replaced by subscribe/unsubscribe and internal setup/cleanup.
// They are removed to avoid confusion.
/*
/// Add a notification observer for a specific process and notification key
public func addObserver(pid: pid_t, notification: AXNotification) -> AXError { ... }
/// Remove a notification observer
public func removeObserver(pid: pid_t, notification: AXNotification) -> AXError { ... }
*/
/// Remove all observers and all subscriptions.
@MainActor
public func removeAllObservers() {

View File

@ -211,11 +211,6 @@ public struct Element: Equatable, Hashable {
// (e.g., children, parameterizedAttribute, briefDescription, generatePathString, static factories)
// Action methods have been moved to Element+Actions.swift
// @MainActor public var children: [Element]? { ... }
// @MainActor
// public func generatePathString() -> String { ... }
// MARK: - Attribute Settability Check
@MainActor
public func isAttributeSettable(named attributeName: String) -> Bool {

View File

@ -125,8 +125,9 @@ public enum AXPermissions {
continuation.yield(currentStatus)
}
}
// Ensure the timer is added to the main run loop
if let strongTimer = Self.axPermissionTimer {
RunLoop.main.add(strongTimer, forMode: .common) // Use RunLoop.main
RunLoop.main.add(strongTimer, forMode: .common)
}
continuation.onTermination = { @Sendable _ in