Post

Replies

Boosts

Views

Activity

Reply to MacCatalyst and the User's Documents Folder
Is your app sandboxed? If so, the only way is to show a NSOpenPanel and ask the user to select the Documents folder (or any other folder). Showing an open panel and asking the user where to put the files is the best option even if the app is not sandboxed. Please don't litter the Documents folder with random things by default.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Dec ’25
Reply to Attaching color properties to CVPixelBufferRef
Attach them after the CVPixelBufferCreate call. The attributes dictionary that can be passed to CVPixelBufferCreate is just to setup the pixel format, not to attach other attributes. So call CVBufferSetAttachments after the CVPixelBuffer is created and set them. P.S.: modifying CVPixelBuffer attributes is quite expensive, do it only as needed.
Nov ’25
Reply to XCode26 and Icon Composer woes
Yes, there are some borders. So just make the image you insert into icon composer a bit smaller, and that's it. The colors look the same here, but it could be your original image hadn't a color profile assigned, and it looked differently on a DCI-P3 display. Assign a color profile before importing it in Icon Composer.
Nov ’25