Post

Replies

Boosts

Views

Activity

Reply to AUParameterNode defaultValue ??
So a whole day's work on this one yields a result of sorts: Setting the value of a parameter at the time the tree is created appears to satisfy auvaltool's condition of a "default" value. Really Apple ... would createParameterWithIdentifier ... min,max,default ... have been so difficult ?
May ’22
Reply to AUv3 running "in-process" resolves different URLS to required directories depending on which Host is hosting the AU
It would be nice to have this confirmed but it looks like our solution is to create an app group. It seems we can read and write as we need to from the group container and the that directory is always available to the audio unit even when running in Logic. ( via containerURL forSecurityApplicationGroupIdentifier ) It would be nice if someone could confirm this is the right thing to do ! :) So to reiterate our issue: We were using the File Manager to obtain a URL to a folder in user domain, lets say the Documents folder ... When the AU is hosted in a sandboxed host FileManager supplies a URL to a folder inside the sandbox container. (as expected) When the same AU is hosted in a non-sandboxed host FileManager supplies a URL to a folder inside the user folder (ie. ~/Documents) That inconsistency is a problem. Solved by creating an App Group and asking FileManager to supply the URL for the group folder. ?
May ’22
Reply to How to set a custom preview image for SwiftUI Drag and Drop on macOS
But you'll find that if you explicitly call provider.loadPreviewImage(...) your previewImageHandler will actually get called. However, even though the previewImageHandler can provide a perfectly good image, even after it returns the new data SwiftUI seems to ingore it and continues to use the image from the original view! :( I too would like an answer to the question: Why does SwiftUI ignore attempts to add a custom drag image?
May ’21