Posts

Post marked as solved
2 Replies
823 Views
I'm experimenting with getting my AUv3 plugins working correctly on iOS and MacOS using Catalyst. I'm having trouble getting the plugin windows to look right in Logic Pro X on MacOS. My plugin is designed to look right in Garageband's minimal 'letterbox' layout (1024x335, or ~1:3 aspect ratio) I have implemented supportedViewConfigurations to help the host choose the best display dimensions On iOS this works, although Logic Pro iPad doesn't seem to call supportedViewConfigurations at all, only Garageband does. On MacOS, Logic Pro does call supportedViewConfigurations but only provides oversized screen sizes, making the plugins look awkward. I can also remove the supportedViewConfigurations method on MacOS, but this introduces other issues: I guess my question boils down to this: how do I tell Logic Pro X on MacOS what the optimal window size of my plugin is, using Mac Catalyst?
Posted
by Brambos.
Last updated
.
Post not yet marked as solved
1 Replies
977 Views
My app successfully receives midi from BT MIDI devices when they are enabled through the CABTMidiLocalPeripheralViewController pattern. However, I would like the app to automatically reconnect to these BT MIDI devices in subsequent sessions whenever they are available. Is this possible without requiring the user to go through the connection view controller every time?
Posted
by Brambos.
Last updated
.
Post not yet marked as solved
2 Replies
1.1k Views
I'm 'porting' an iPad app to MacOS using Mac Catalyst, and I'm having trouble getting the document share sheet to work properly. I've tried two ways and they both result in the same thing: no share sheet appears, but only a little popup with a "More..." button (see image). Attempt #1: using a UIDocumentInteractionController... NSURL* url = [NSURL fileURLWithPath:fileToShare]; UIDocumentInteractionController* docController = [UIDocumentInteractionController interactionControllerWithURL:url]; [docController presentPreviewAnimated:YES]; [docController presentOptionsMenuFromRect:CGRectMake(x, y, 0, 0) inView:currentView animated:YES]; Attempt #2: using a UIActivityViewController... NSURL* url = [NSURL fileURLWithPath:fileToShare]; NSArray* shareData = @[url]; UIActivityViewController* activityController = [[UIActivityViewController alloc] initWithActivityItems:shareData applicationActivities:nil]; [self presentViewController:activityController animated:YES completion:NULL]; Since both mechanisms consistently give the same result (both work on iOS and not on MacOS), I have a feeling I need to set some kind of permission or entitlement to get this working on MacOS. But I can't find any hints or documentation to support this.
Posted
by Brambos.
Last updated
.
Post not yet marked as solved
2 Replies
2.5k Views
I'm developing an iOS Extension (Audio Unit Extension) and I had provided a temporary icon set for it in the default asset catalog. However, I now can't change the old icon for a new final icon anymore.Providing/replacing all icon files in the AppIcon asset catalog changes only the icons of the app containing the extension, but not the icon of the extension itself. All Audio Unit hosts keep displaying the old icon.I've cleaned the project and product folder, rebuilt in every way; removed asset catalogs, etc. no dice. Anyone know of a solution?XCode 7.3, iOS 9.3.4
Posted
by Brambos.
Last updated
.
Post marked as solved
5 Replies
2k Views
My Audio Unit v3 is trying to get the tempo from the host, but I'm a bit lost.Apparently there is an AUHostMusicalContextBlock block property in my Audio Unit, but I can't figure out how to use it.It's now part of my render block, but it crashes my plugin...- (AUInternalRenderBlock)internalRenderBlock { / __block PluginKernel *plugin = &_kernel; / // get the tempo double currentTempo; if ( self.musicalContextBlock( &currentTempo, NULL, NULL, NULL, NULL, NULL ) == YES ) { plugin->handleTempoSetting(currentTempo); } // do the render processAnyone already got this to work?Thanks!Bram
Posted
by Brambos.
Last updated
.
Post not yet marked as solved
0 Replies
599 Views
I need to know how much Apple actually pays out for a specific app (which seems to be ~6% lower than the estimated proceeds they publish in the dashboard). I only see the totals per country, which are aggregates for all my apps. What's the trick? Is there a link I'm overlooking on App Store Connect?
Posted
by Brambos.
Last updated
.
Post not yet marked as solved
0 Replies
815 Views
I have a UITextView for letting the user enter multi-line texts. When the text exceeds the size of the TextView it needs to start scrolling. So far so good. When the onscreen keyboard pops up I set the height of the keyboard as a bottom-contentInset to the TextView to mitigate the issue of the keyboard overlapping the TextView. However, when the contentInset is bigger than the height of the TextView's frame its content starts jumping when trying to enter text. The text-entry caret jumps out of view and with every keystroke de entire text content jumps up and down, essentially making text entry impossible.This can be reproduced without any code, so it's not a code bug but a behavior issue:- create a view with a viewcontroller, disable autolayout.- put a UITextView on the View (you can leave the lorem-ipsum text in)- make the UITextView height 400- add a contentInset of 500 to the bottom of the UITextView- run on a device or in the simulatorAs soon as you touch the UITextView to give it focus to start typing everything jumps up and the text-entry cursor/caret moves out of view and starts jumping erratically.What am I doing wrong, or how can this be avoided?
Posted
by Brambos.
Last updated
.
Post not yet marked as solved
2 Replies
975 Views
I'm encountering what seems like excessive memory usage in UITextView. I'm loading a 50Kb ascii text file into an NSString and assign it to the .text property of an empty UITextView component in my app. Assigning the NSString to to UITextView adds more than 100Mb to my memory footprint (2000x the actual text content).Is there a way (a property?) to make the UITextView more memory efficient? I need the editability and scrolling of the contents, but it's plain text (not attributed) and I'm not using any complex layout or rich text features.For context:- I'm working in a memory-constrained environment (an audio unit extension) so every Mb of memory counts.- I’m on iOS 12 and this behavior is seen on all iOS devices- This doesn't seem to be related to the well-documented iOS11 UITextView memory leak, since I'm not releasing the component.
Posted
by Brambos.
Last updated
.