Post

Replies

Boosts

Views

Activity

Reply to On building an universal binary on Xcode 12.3, why are the dynamic libraries under Example.app/Contents/Frameworks directory buillt for x86_64 archirecture only and not for arm64?
Swift ABI got stable in 10.14.4, this means that those libraries are now bundled with macOS. Probably you set the deployment target to a version older than 10.14.4, so Xcode bundles the Swift libraries, but only for Intel because the first macOS version for arm was 11, and it already includes those libraries.
Topic: App & System Services SubTopic: Core OS Tags:
Aug ’22
Reply to Xcode 14 and supporting macOS 10.9 - 10.12
Xcode ships only one SDK per platform. Xcode 14 still has the old macOS 12 SDK, while the beta had the macOS 13 SDK. This is because, just like last year and the year before, the new macOS version is still in beta, and Apple doesn't ship a beta SDK in a public release. The macOS 12 SDK allows to deploy to 10.9, the 13 SDK that was in the beta and that will be in Xcode 14.1 will allow only to deploy to 10.13 and higher.
Sep ’22
Reply to Why does @available not work?
@available requires that the symbols in the code block are available in the sdk. If you are using a previous sdk, you have to fall back to the good old C preprocessor and disable the code block. @available is not a way to make it possible to compile code that requires a newer sdk on an older Xcode version.
Topic: Programming Languages SubTopic: Swift Tags:
Nov ’22
Reply to Apple on Metal and Moltenvk
MoltenVK simply calls the Metal API in the end, there isn't any issue at all from an App Store review point of view. The main issues are that it adds an overhead over calling Metal directly, and that it might be missing some of the newer features available in Metal, but it's up to you and to what you actually needs are whether it's could work for your app or not.
Topic: Graphics & Games SubTopic: General Tags:
Nov ’22
Reply to Is there any way to draw to a NSView asynchronously on macOS?
That seems unrelated to NSView setCanDrawConcurrently property. Either try to use setCanDrawConcurrently directly, it finally works on 10.14 and later, or do what was recommended in that stackoverflow answer.
Topic: Media Technologies SubTopic: Video Tags:
Replies
Boosts
Views
Activity
Jun ’22
Reply to NSSpellChecker returning an out of bounds range
That's the NSNotFound constant..
Topic: UI Frameworks SubTopic: AppKit Tags:
Replies
Boosts
Views
Activity
Jun ’22
Reply to Is there any way to draw to a NSView asynchronously on macOS?
The way setCanDrawConcurrently works is that AppKit calls your drawRect method in another thread. And that's it, it doesn't mean you can safely draw things on yet another thread different from the calling thread.
Topic: Media Technologies SubTopic: Video Tags:
Replies
Boosts
Views
Activity
Jun ’22
Reply to Getting past the unidentified developer problem
Yes, code sign first then notarise. There are some useful topics here on this forum too: https://developer.apple.com/forums/thread/707080 https://developer.apple.com/forums/thread/707377
Topic: App & System Services SubTopic: Core OS Tags:
Replies
Boosts
Views
Activity
Jul ’22
Reply to Where is the documentation for NSConcreteAttributedString?
Because it's an private class of the NSAttributeString class cluster, and there shouldn't be any difference in the public interface.
Topic: App & System Services SubTopic: General Tags:
Replies
Boosts
Views
Activity
Jul ’22
Reply to Will Apple remove the use of OpenGL entirely in iOS16?
As far as I know OpenGL is still deprecated, same as before. It hasn't been removed.
Topic: Graphics & Games SubTopic: General Tags:
Replies
Boosts
Views
Activity
Jul ’22
Reply to On building an universal binary on Xcode 12.3, why are the dynamic libraries under Example.app/Contents/Frameworks directory buillt for x86_64 archirecture only and not for arm64?
Swift ABI got stable in 10.14.4, this means that those libraries are now bundled with macOS. Probably you set the deployment target to a version older than 10.14.4, so Xcode bundles the Swift libraries, but only for Intel because the first macOS version for arm was 11, and it already includes those libraries.
Topic: App & System Services SubTopic: Core OS Tags:
Replies
Boosts
Views
Activity
Aug ’22
Reply to AVAudioEngine and c++?
C++ doesn't understand Objective-C classes, you have to use Objective-C++ (and rename the files to .mm)
Topic: Media Technologies SubTopic: Audio Tags:
Replies
Boosts
Views
Activity
Sep ’22
Reply to Xcode 14 and supporting macOS 10.9 - 10.12
Xcode 14 doesn't ship the macOS 13 sdk. All these changes that were in the Xcode 14 beta will be in Xcode 14.1.
Replies
Boosts
Views
Activity
Sep ’22
Reply to Xcode 14 and supporting macOS 10.9 - 10.12
Xcode ships only one SDK per platform. Xcode 14 still has the old macOS 12 SDK, while the beta had the macOS 13 SDK. This is because, just like last year and the year before, the new macOS version is still in beta, and Apple doesn't ship a beta SDK in a public release. The macOS 12 SDK allows to deploy to 10.9, the 13 SDK that was in the beta and that will be in Xcode 14.1 will allow only to deploy to 10.13 and higher.
Replies
Boosts
Views
Activity
Sep ’22
Reply to NSToolbarItem.minSize and NSToolbarItem.maxSize methods are deprecated
Try to set a constrain on the width.
Topic: UI Frameworks SubTopic: AppKit Tags:
Replies
Boosts
Views
Activity
Oct ’22
Reply to Why does @available not work?
@available requires that the symbols in the code block are available in the sdk. If you are using a previous sdk, you have to fall back to the good old C preprocessor and disable the code block. @available is not a way to make it possible to compile code that requires a newer sdk on an older Xcode version.
Topic: Programming Languages SubTopic: Swift Tags:
Replies
Boosts
Views
Activity
Nov ’22
Reply to Apple on Metal and Moltenvk
MoltenVK simply calls the Metal API in the end, there isn't any issue at all from an App Store review point of view. The main issues are that it adds an overhead over calling Metal directly, and that it might be missing some of the newer features available in Metal, but it's up to you and to what you actually needs are whether it's could work for your app or not.
Topic: Graphics & Games SubTopic: General Tags:
Replies
Boosts
Views
Activity
Nov ’22
Reply to Apple on Metal and Moltenvk
MoltenVK doesn't use any private API, and it's already used on both the iOS and macOS App Store. You shouldn't have any issue.
Topic: Graphics & Games SubTopic: General Tags:
Replies
Boosts
Views
Activity
Nov ’22
Reply to Apple on Metal and Moltenvk
There is nothing weird in MoltenVK, it's just another library that calls the Metal API.
Topic: Graphics & Games SubTopic: General Tags:
Replies
Boosts
Views
Activity
Nov ’22