Post

Replies

Boosts

Views

Activity

Reply to Whimsical tooltips behaviour in popover (Appkit)
I've solved the issue with a workaround (until I understand what is causing the initial issue). I mimic clicking in windowA by sending a mouseDownEvent, and it works. self.window?.makeFirstResponder(self.window) self.theViewToClick.perform(#selector(NSResponder.self.mouseDown(with:)), with: newMouseDownEvent!)
Topic: UI Frameworks SubTopic: AppKit Tags:
Feb ’26
Reply to Whimsical tooltips behaviour in popover (Appkit)
I found something and potential solution. The NSPopover is created inside a windowController (window A). If I click in window A after opening the popover, all tooltips work correctly. What is the reason ? Could it be I did not set delegate for the popover ? I have tried to no avail I tried to make the window front and key No success either So there would be a workaround: simulate a click in window A What is the simplest way to achieve this click programmatically (if possible without showing mouse movement) ? Should I use mouseEvent(with:location:modifierFlags:timestamp:windowNumber:context:eventNumber:clickCount:pressure:) and then postEvent(_:atStart:)
Topic: UI Frameworks SubTopic: AppKit Tags:
Feb ’26
Reply to Error in Xcode console
Same here. -[AFPreferences _languageCodeWithFallback:] No language code saved, but Assistant is enabled - returning: fr-FR GenerativeModelsAvailability.Parameters: Initialized with invalid language code: fr-FR. Expected to receive two-letter ISO 639 code. e.g. 'zh' or 'en'. Falling back to: fr Mac is 15.7.3 Xcode is 16.4. Yes, I know, I'll have to update soon.
Feb ’26
Reply to Developers Need Some Answers
…are not receiving what they paid for. When trying to reach out to Apple… For sure you have read your licence agreement: https://developer.apple.com/support/terms/apple-developer-program-license-agreement/ 2.10 Updates; No Support or Maintenance … Apple is not obligated to provide any maintenance, technical or other support for the Apple Software or Services. … So, even though that may be frustrating, they just meet their contractual obligation on that point.
Feb ’26
Reply to Help, I'm New and Lot
Welcome to the forum Warren85. It is hard to say with such limited information. You should read this to get tips on how to post on the forum: https://developer.apple.com/forums/thread/706527 This being said, please tell: Is it an iOS app (for iPhone / iPad) ? Is it SwiftUI ? Show the code of the app (ContentView if SwiftUI), we shall help you. Or at list the part where the initial content should show on simulator.
Feb ’26
Reply to Setting the highlight colour of a selected cell in NSTableView
Thanks for reply.   You definitely wouldn't want to change the highlight style in "viewFor". Maybe do that in viewDidLoad or something. What's the issue ?   There's more than one way to do this. One would be enough Anyway, I change my mind to stay consistent with system behaviour and will change the color of the text (to white) when selected, to make it more readable.
Topic: UI Frameworks SubTopic: AppKit Tags:
Jan ’26
Reply to Can we decode twice in the same session with unarchiver?
Thanks for the reply. I tried to replace if let result = unarchiver.decodeObject(of: [/* list */], forKey: someKey) as? someClass { by do { let result = try unarchiver.decodeTopLevelObject(of: [/* list */], forKey: someKey) as! someClass It compiles but does not decode: I get a failure on log : unarchiving failed And with this pattern, I do not know how to test the "double call" within the print Is it an error to use unarchiver.decodeObject ? What can be the side effects ? unarchiver.decodeObject(of: [/* list */], forKey: someKey)
Topic: App & System Services SubTopic: General Tags:
Jan ’26
Reply to Whimsical tooltips behaviour in popover (Appkit)
I've solved the issue with a workaround (until I understand what is causing the initial issue). I mimic clicking in windowA by sending a mouseDownEvent, and it works. self.window?.makeFirstResponder(self.window) self.theViewToClick.perform(#selector(NSResponder.self.mouseDown(with:)), with: newMouseDownEvent!)
Topic: UI Frameworks SubTopic: AppKit Tags:
Replies
Boosts
Views
Activity
Feb ’26
Reply to Whimsical tooltips behaviour in popover (Appkit)
I found something and potential solution. The NSPopover is created inside a windowController (window A). If I click in window A after opening the popover, all tooltips work correctly. What is the reason ? Could it be I did not set delegate for the popover ? I have tried to no avail I tried to make the window front and key No success either So there would be a workaround: simulate a click in window A What is the simplest way to achieve this click programmatically (if possible without showing mouse movement) ? Should I use mouseEvent(with:location:modifierFlags:timestamp:windowNumber:context:eventNumber:clickCount:pressure:) and then postEvent(_:atStart:)
Topic: UI Frameworks SubTopic: AppKit Tags:
Replies
Boosts
Views
Activity
Feb ’26
Reply to SwiftUI mysterious behavior
I tested your 2 codes on Xcode 16.4 and Xcode 26.2. Same result for the first. With the second, different from yours: I still get emptyView.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Feb ’26
Reply to Whimsical tooltips behaviour in popover (Appkit)
Same problem if the tooltips are defined in Storyboard vs in code. I tested in another popover which only contains a TextField and 2 buttons: same issue.
Topic: UI Frameworks SubTopic: AppKit Tags:
Replies
Boosts
Views
Activity
Feb ’26
Reply to Error in Xcode console
Same here. -[AFPreferences _languageCodeWithFallback:] No language code saved, but Assistant is enabled - returning: fr-FR GenerativeModelsAvailability.Parameters: Initialized with invalid language code: fr-FR. Expected to receive two-letter ISO 639 code. e.g. 'zh' or 'en'. Falling back to: fr Mac is 15.7.3 Xcode is 16.4. Yes, I know, I'll have to update soon.
Replies
Boosts
Views
Activity
Feb ’26
Reply to Running an application for a simulator
Have a look at this TN to check: TN3117: Resolving architecture build errors on Apple silicon | Apple Developer Documentation
Replies
Boosts
Views
Activity
Feb ’26
Reply to Can TextField handle undo?
In MacOS with AppKit, you get it directly in the storyboard, by activating the undo checkbox. Hope that helps.
Topic: UI Frameworks SubTopic: SwiftUI
Replies
Boosts
Views
Activity
Feb ’26
Reply to Developers Need Some Answers
…are not receiving what they paid for. When trying to reach out to Apple… For sure you have read your licence agreement: https://developer.apple.com/support/terms/apple-developer-program-license-agreement/ 2.10 Updates; No Support or Maintenance … Apple is not obligated to provide any maintenance, technical or other support for the Apple Software or Services. … So, even though that may be frustrating, they just meet their contractual obligation on that point.
Replies
Boosts
Views
Activity
Feb ’26
Reply to Box around cursor finger icon
Could you show a screenshot, in the case of this website ? Which MacOS version ?
Replies
Boosts
Views
Activity
Feb ’26
Reply to Stuck in "Waiting for review"
That's not normal. You should contact support: https://developer.apple.com/contact/ Try to get a phone contact, much more efficient.
Replies
Boosts
Views
Activity
Feb ’26
Reply to Help, I'm New and Lot
Welcome to the forum Warren85. It is hard to say with such limited information. You should read this to get tips on how to post on the forum: https://developer.apple.com/forums/thread/706527 This being said, please tell: Is it an iOS app (for iPhone / iPad) ? Is it SwiftUI ? Show the code of the app (ContentView if SwiftUI), we shall help you. Or at list the part where the initial content should show on simulator.
Replies
Boosts
Views
Activity
Feb ’26
Reply to Inserting an NSView (Cocoa) in NSWindowController Views hierarchy
The error in case 1: implicitly unwrapping an Optional value. Second option works like a charm. And allows to add subviews in the box, easily.
Topic: UI Frameworks SubTopic: AppKit Tags:
Replies
Boosts
Views
Activity
Jan ’26
Reply to Setting the highlight colour of a selected cell in NSTableView
Many thanks, I'll keep it. For the dark mode, it seems that Finder that Finder is doing in the same way:
Topic: UI Frameworks SubTopic: AppKit Tags:
Replies
Boosts
Views
Activity
Jan ’26
Reply to Setting the highlight colour of a selected cell in NSTableView
Thanks for reply.   You definitely wouldn't want to change the highlight style in "viewFor". Maybe do that in viewDidLoad or something. What's the issue ?   There's more than one way to do this. One would be enough Anyway, I change my mind to stay consistent with system behaviour and will change the color of the text (to white) when selected, to make it more readable.
Topic: UI Frameworks SubTopic: AppKit Tags:
Replies
Boosts
Views
Activity
Jan ’26
Reply to Can we decode twice in the same session with unarchiver?
Thanks for the reply. I tried to replace if let result = unarchiver.decodeObject(of: [/* list */], forKey: someKey) as? someClass { by do { let result = try unarchiver.decodeTopLevelObject(of: [/* list */], forKey: someKey) as! someClass It compiles but does not decode: I get a failure on log : unarchiving failed And with this pattern, I do not know how to test the "double call" within the print Is it an error to use unarchiver.decodeObject ? What can be the side effects ? unarchiver.decodeObject(of: [/* list */], forKey: someKey)
Topic: App & System Services SubTopic: General Tags:
Replies
Boosts
Views
Activity
Jan ’26