Post

Replies

Boosts

Views

Activity

Comment on SwiftData updates in the background are not merged in the main UI context
By the way on macOS 15.4.1 (24E263) I found @Query does call body when ModelActor saves 🤔 Seems to me @Query watches for the remote store changed notification, then toggles a bool to and performs another SQL query. CoreData: debug: Remote Change Notification - posting for store ContentView: \QueryController<Item>.<computed (Bool)> changed. CoreData: sql: SELECT 0, t0.Z_PK, t0.Z_OPT, t0.ZCOUNTER, t0.ZTIMESTAMP, t0.ZUNIQUEIDENTIFIER FROM ZITEM t0 ORDER BY t0.ZTIMESTAMP DESC, t0.Z_PK
Apr ’25
Comment on [macOS] CoreSpotlight importer using CSImportExtension failing to index
If it is listed in mdimport -e it can run with mdimport -m -y LOWERCASECONTENTTYPE -u PATHTOAFILE however the attributes aren't actually added to Spotlight's database. And even if the Spotlight extension is enabled in Settings->LoginItems->Spotlight Extensions, Spotlight will never actually run the extension itself. And if in the extension code you attempt to open the file with a try, it throws a permission exception so you wouldn't even be able to compute attributes anyway.
Topic: App & System Services SubTopic: General Tags:
Sep ’25
Comment on Why can't SwiftUI state be changed in the middle of view updates?
See my reply for info
Topic: UI Frameworks SubTopic: SwiftUI
Replies
Boosts
Views
Activity
Dec ’24
Comment on SwiftUI FocusState is not working in FocusCookbook sample project
FB16770732 submitted today thanks
Topic: UI Frameworks SubTopic: SwiftUI
Replies
Boosts
Views
Activity
Mar ’25
Comment on SwiftData updates in the background are not merged in the main UI context
By the way on macOS 15.4.1 (24E263) I found @Query does call body when ModelActor saves 🤔 Seems to me @Query watches for the remote store changed notification, then toggles a bool to and performs another SQL query. CoreData: debug: Remote Change Notification - posting for store ContentView: \QueryController<Item>.<computed (Bool)> changed. CoreData: sql: SELECT 0, t0.Z_PK, t0.Z_OPT, t0.ZCOUNTER, t0.ZTIMESTAMP, t0.ZUNIQUEIDENTIFIER FROM ZITEM t0 ORDER BY t0.ZTIMESTAMP DESC, t0.Z_PK
Replies
Boosts
Views
Activity
Apr ’25
Comment on modelContext.fetchIdentifiers(descriptor) Errors when Using a SortDescriptor
I had the same problem and lucky I found this forum post! I've suggested this info be added to the documentation for fetchIdentifiers(_:) FB17555489
Replies
Boosts
Views
Activity
May ’25
Comment on Spotlight Importer Extension Not Triggered for Custom UTI on macOS
That just tests the extension though. It doesn't make Spotlight actually use it. Oh sorry you already added a reply about knowing that.
Topic: App & System Services SubTopic: General Tags:
Replies
Boosts
Views
Activity
Sep ’25
Comment on [macOS] CoreSpotlight importer using CSImportExtension failing to index
If it is listed in mdimport -e it can run with mdimport -m -y LOWERCASECONTENTTYPE -u PATHTOAFILE however the attributes aren't actually added to Spotlight's database. And even if the Spotlight extension is enabled in Settings->LoginItems->Spotlight Extensions, Spotlight will never actually run the extension itself. And if in the extension code you attempt to open the file with a try, it throws a permission exception so you wouldn't even be able to compute attributes anyway.
Topic: App & System Services SubTopic: General Tags:
Replies
Boosts
Views
Activity
Sep ’25
Comment on iCloud Sync not working with iPhone, works fine for Mac.
Maybe this old bug returned https://developer.apple.com/forums/thread/79734?page=3
Replies
Boosts
Views
Activity
Apr ’26