Post

Replies

Boosts

Views

Activity

Reply to SwiftUI App crashing on iOS 14 - ContiguousArrayBuffer.swift
It is crazy that you can't at a crash even figure out the element that SwiftUI was trying to render... I am having a similar issue when using 'delete' in List of a ForEach - the SwiftUI framework is calling back into my collection using an index - but the index doesn't exist because it was deleted. It shouldn't be using the index anyway - as the backing data structure is Indentifiable and Hashable.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Dec ’24
Reply to how do I enable Save As in File menu in SwiftUI?
Thank you for your help! Is there anyway, to have that menu option permanently available? (It is a very common operation in this app, and my original AppKit native version worked this way - this is my first SwiftUI app). The Save panel does not appear when I press Save - it does when I use Save As. It appears to be using "auto save" (I have another ticket asking how to disable this).
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Mar ’25
Reply to NSDocumentController not adding "Open Recent" menu
Interestingly, the recently opened documents are appearing in the dock icon when I right-click (automatically) - and I can successfully open them from there, so I am baffled why the Open Recent menu is not working. edit: I notice though that the recent documents in the dock icon do not update - when I open a document and close it. I see the following error in the console: Insert failed for list identifier com.apple.LSSharedFileList.RecentDocuments Error: Error Domain=NSPOSIXErrorDomain Code=1 "Operation not permitted" (Restricted by sandbox) UserInfo={NSDebugDescription=Restricted by sandbox} but I don't see any sandbox entitlements that control this.
Topic: UI Frameworks SubTopic: AppKit Tags:
Mar ’25
Reply to NSDocumentController not adding "Open Recent" menu
I have a done a bit more diagnosis. The "Insert failed..." error in the previous message is caused when it tries to add a recent document that is mirrored in iCloud. If I use a file from a directory not mapped to iCloud I do not get the error, and the file appears in the dock's recent items. I still cannot get the File "Open Recent" menu to populate. I am using XCode 16.2 on OSX 15.3.2
Topic: UI Frameworks SubTopic: AppKit Tags:
Mar ’25
Reply to NSDocumentController not adding "Open Recent" menu
If I manually create the Open Recent menu and add the item for the 'Clear Menu' it properly reflects the state of the list (which isn't appearing). If I clear it, the 'Clear Menu' button becomes disabled automatically - so the NSDocumentController is correctly finding the menu items, but it isn't populating the list.
Topic: UI Frameworks SubTopic: AppKit Tags:
Mar ’25