Post

Replies

Boosts

Views

Activity

Reply to Interface Builder doesn't honor Safe Area proportional alignment constraints
@Claude31, thanks for taking the time to comment and come up with a workaround. In my example, both buttons are children of the default view of a view controller. This view is the Superview for both buttons, and the Safe Area is the one defined for that view. In my example I expected to see a result like you got in your second screen shot. It seems like you have come up with a workaround for this issue by creating an extra view that matches the Safe Area and placing the button there. I think there is a problem in Interface Builder. Height and width constraints with respect to the Safe Area (without a need for an extra view) work (I have tested those and they work), but horizontal and vertical alignment constraints don't. I guess I will have to implement your workaround. It is very unfortunate that something as simple as this doesn't work correctly.
Mar ’22
Reply to Saving non-parameter based presets in AUv3 extensions
Hi @JHostetler2, did you find a way to solve this? I have exactly the same issue. Did you have to transform everything you wanted to save into parameters in a parameter tree and then use the fullStateForDocument to be able to save everything? If so, how is the fullStateForDocument used? I really can't find good documentation of how to use this. Thanks.
Topic: Media Technologies SubTopic: Audio Tags:
Aug ’22
Reply to Saving non-parameter based presets in AUv3 extensions
This is an old post but maybe someone is still looking for a solution. I found that you can just override the fullStateForDocument property and just archive your settings using a Dictionary. No need to play with parameter trees if you don't need your settings to be modified by the Host. // Save an NSString named setting. - (NSDictionary<NSString *,id> *)fullStateForDocument {     NSMutableDictionary *state = [[NSMutableDictionary alloc] initWithDictionary: super.fullStateForDocument];     NSDictionary<NSString*, id> *settingsToSave = @{@"setting": setting,};     state[@"savedSettings"] = [NSKeyedArchiver archivedDataWithRootObject:settingsToSave requiringSecureCoding:NO error:nil];     return state; } // Retrieve settings - (void)setFullStateForDocument:(NSDictionary<NSString *,id> *)fullStateForDocument {     NSData *data = (NSData *)fullStateForDocument[@"savedSettings"];     NSDictionary *savedSettings = [NSKeyedUnarchiver unarchivedObjectOfClass:[NSDictionary class] fromData:data error:nil];     setting = (NSString *)savedSettings[@"setting"]; }
Topic: Media Technologies SubTopic: Audio Tags:
Aug ’22
Reply to Interface Builder doesn't honor Safe Area proportional alignment constraints
@Claude31, thanks for taking the time to comment and come up with a workaround. In my example, both buttons are children of the default view of a view controller. This view is the Superview for both buttons, and the Safe Area is the one defined for that view. In my example I expected to see a result like you got in your second screen shot. It seems like you have come up with a workaround for this issue by creating an extra view that matches the Safe Area and placing the button there. I think there is a problem in Interface Builder. Height and width constraints with respect to the Safe Area (without a need for an extra view) work (I have tested those and they work), but horizontal and vertical alignment constraints don't. I guess I will have to implement your workaround. It is very unfortunate that something as simple as this doesn't work correctly.
Replies
Boosts
Views
Activity
Mar ’22
Reply to Generate Promo Code Error Message
I am having hte same issue. I talked to a representative and sent them all the information they requested but haven't received any response. I need to send these promo codes on the next day or two.
Replies
Boosts
Views
Activity
May ’22
Reply to Saving non-parameter based presets in AUv3 extensions
Hi @JHostetler2, did you find a way to solve this? I have exactly the same issue. Did you have to transform everything you wanted to save into parameters in a parameter tree and then use the fullStateForDocument to be able to save everything? If so, how is the fullStateForDocument used? I really can't find good documentation of how to use this. Thanks.
Topic: Media Technologies SubTopic: Audio Tags:
Replies
Boosts
Views
Activity
Aug ’22
Reply to Saving non-parameter based presets in AUv3 extensions
This is an old post but maybe someone is still looking for a solution. I found that you can just override the fullStateForDocument property and just archive your settings using a Dictionary. No need to play with parameter trees if you don't need your settings to be modified by the Host. // Save an NSString named setting. - (NSDictionary<NSString *,id> *)fullStateForDocument {     NSMutableDictionary *state = [[NSMutableDictionary alloc] initWithDictionary: super.fullStateForDocument];     NSDictionary<NSString*, id> *settingsToSave = @{@"setting": setting,};     state[@"savedSettings"] = [NSKeyedArchiver archivedDataWithRootObject:settingsToSave requiringSecureCoding:NO error:nil];     return state; } // Retrieve settings - (void)setFullStateForDocument:(NSDictionary<NSString *,id> *)fullStateForDocument {     NSData *data = (NSData *)fullStateForDocument[@"savedSettings"];     NSDictionary *savedSettings = [NSKeyedUnarchiver unarchivedObjectOfClass:[NSDictionary class] fromData:data error:nil];     setting = (NSString *)savedSettings[@"setting"]; }
Topic: Media Technologies SubTopic: Audio Tags:
Replies
Boosts
Views
Activity
Aug ’22
Reply to MIDI file generated by using MusicSequenceFileCreate has Sysex MIDI message (iOS 16.0.2)
Apple has confirmed this issue is a bug. I have filed a bug report.
Topic: App & System Services SubTopic: Core OS Tags:
Replies
Boosts
Views
Activity
Oct ’22
Reply to After update to XCode 15.3 can't run app on My Mac (Designed for iPad) - error: attach by pid 'xxxxx' failed -- attach failed
I found this hack solution in Stack Overflow which seems to solve the issue. Edit the Scheme, go to the Info tab and turn off Debug Executable. It would be great to know why this works.
Replies
Boosts
Views
Activity
May ’24