-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Sonoma API improvements #135
Comments
I think the way to handle the inspector separation with traditional nibs is making an item in the palette for |
I'm going to have to be adjust the main window nib too, default toolbar button metrics changed to be a bit longer... |
I think the toolbar button metrics change if you customize the toolbar. The font size on the time fields also looks wrong. |
diff --git a/Submariner/SBDatabaseController.m b/Submariner/SBDatabaseController.m
index c78b8bb..1d1b434 100644
--- a/Submariner/SBDatabaseController.m
+++ b/Submariner/SBDatabaseController.m
@@ -531,7 +531,11 @@ - (IBAction)toggleVolume:(id)sender {
if (volumePopover.shown) {
[volumePopover close];
} else {
- [volumePopover showRelativeToRect: boundary ofView: view preferredEdge:NSMaxYEdge];
+ if (@available(macOS 14, *)) {
+ [volumePopover showRelativeToToolbarItem: volumeToolbarItem];
+ } else {
+ [volumePopover showRelativeToRect: boundary ofView: view preferredEdge:NSMaxYEdge];
+ }
}
}
This works, but you can't set the edge it comes from, which means it's a bit awkward as it'll appear above the toolbar item. |
#Preview
macroRefs:
The text was updated successfully, but these errors were encountered: