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
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:
Replies
Boosts
Views
Activity
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.
Replies
Boosts
Views
Activity
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.
Replies
Boosts
Views
Activity
Nov ’25
Reply to Why isn't Liquid Glass effect applied when using pyobjc?
There is no magic, macOS just checks which version of the SDK was used when compiling the app, if the SDK version is 26 or higher, it will make it go through the new UI path, if not it will get the previous UI. I don't know how the Python bridge works, but it clearly needs to be updated or recompiled with the new SDK.
Topic: UI Frameworks SubTopic: AppKit Tags:
Replies
Boosts
Views
Activity
Sep ’25