Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
49262b2368 | ||
|
|
f24eea0f91 | ||
|
|
3b30d68597 | ||
|
|
e7a4d7af09 |
No files matched your search
@@ -13,7 +13,7 @@
|
||||
</customObject>
|
||||
<customObject id="-1" userLabel="First Responder" customClass="FirstResponder"/>
|
||||
<customObject id="-3" userLabel="Application" customClass="NSObject"/>
|
||||
<window title="Window" allowsToolTipsWhenApplicationIsInactive="NO" autorecalculatesKeyViewLoop="NO" releasedWhenClosed="NO" visibleAtLaunch="NO" frameAutosaveName="" animationBehavior="default" toolbarStyle="expanded" id="s5f-yH-26m" userLabel="Window">
|
||||
<window title="Window" allowsToolTipsWhenApplicationIsInactive="NO" releasedWhenClosed="NO" visibleAtLaunch="NO" frameAutosaveName="" animationBehavior="default" toolbarStyle="expanded" id="s5f-yH-26m" userLabel="Window">
|
||||
<windowStyleMask key="styleMask" titled="YES" closable="YES" miniaturizable="YES" resizable="YES"/>
|
||||
<windowPositionMask key="initialPositionMask" leftStrut="YES" rightStrut="YES" topStrut="YES" bottomStrut="YES"/>
|
||||
<rect key="contentRect" x="70" y="318" width="520" height="510"/>
|
||||
|
||||
@@ -7,6 +7,10 @@
|
||||
|
||||
import Cocoa
|
||||
|
||||
final class CheckBoxCellView : NSTableCellView {
|
||||
final class CheckBoxCellView : NSTableCellView, ExpandedTableViewCellActionable {
|
||||
@IBOutlet var checkboxButton: NSButton!
|
||||
|
||||
func performAction() {
|
||||
self.checkboxButton.performClick(self)
|
||||
}
|
||||
}
|
||||
@@ -67,6 +67,14 @@ class CollectionView: NSCollectionView, NSUserInterfaceValidations {
|
||||
else if key == 27 && isSelected {
|
||||
deselectAll(self)
|
||||
}
|
||||
else if self.isSelectionEmpty && (key == NSUpArrowFunctionKey || key == NSDownArrowFunctionKey) {
|
||||
let indexPathSet = Set([IndexPath(item: 0, section: 0)])
|
||||
animator().selectItems(at: indexPathSet, scrollPosition: .bottom)
|
||||
delegate?.collectionView?(self, didSelectItemsAt: indexPathSet)
|
||||
}
|
||||
else if self.isSelectionEmpty && (key == NSRightArrowFunctionKey || key == NSLeftArrowFunctionKey) {
|
||||
self.window?.windowController?.keyDown(with: event)
|
||||
}
|
||||
else {
|
||||
super.keyDown(with: event)
|
||||
}
|
||||
|
||||
@@ -14,6 +14,10 @@ import Cocoa
|
||||
@MainActor @objc optional func paste(to tableview: NSTableView)
|
||||
}
|
||||
|
||||
protocol ExpandedTableViewCellActionable {
|
||||
func performAction()
|
||||
}
|
||||
|
||||
class ExpandedTableView: NSTableView {
|
||||
|
||||
var pasteboardTypes: [NSPasteboard.PasteboardType]
|
||||
@@ -59,12 +63,20 @@ class ExpandedTableView: NSTableView {
|
||||
super.init(coder: coder)
|
||||
}
|
||||
|
||||
private func performAction() {
|
||||
if let view = self.view(atColumn: defaultEditingColumn, row: selectedRow, makeIfNecessary: false) as? ExpandedTableViewCellActionable {
|
||||
view.performAction()
|
||||
} else {
|
||||
editColumn(defaultEditingColumn, row: selectedRow, with: nil, select: true)
|
||||
}
|
||||
}
|
||||
|
||||
override func keyDown(with event: NSEvent) {
|
||||
|
||||
guard let key = event.charactersIgnoringModifiers?.utf16.first else { super.keyDown(with: event); return }
|
||||
|
||||
if (key == NSEnterCharacter || key == NSCarriageReturnCharacter) && defaultEditingColumn > 0 {
|
||||
editColumn(defaultEditingColumn, row: selectedRow, with: nil, select: true)
|
||||
performAction()
|
||||
}
|
||||
else if (key == NSDeleteCharacter || key == NSDeleteFunctionKey) && implements(selector: #selector(ExpandedTableViewDelegate.deleteSelection(in:))) {
|
||||
if selectedRow == -1 {
|
||||
@@ -73,6 +85,9 @@ class ExpandedTableView: NSTableView {
|
||||
expandedDelegate?.deleteSelection!(in: self)
|
||||
}
|
||||
}
|
||||
else if key == NSRightArrowFunctionKey || key == NSLeftArrowFunctionKey {
|
||||
self.window?.windowController?.keyDown(with: event)
|
||||
}
|
||||
else if key == 27 && selectedRow != -1 {
|
||||
deselectAll(self)
|
||||
}
|
||||
|
||||
@@ -38,6 +38,10 @@ class MetadataSearchViewController: ViewController, MetadataSearchControllerDele
|
||||
view.addSubview(metadataViewController.view)
|
||||
}
|
||||
|
||||
override func viewDidAppear() {
|
||||
self.view.window?.autorecalculatesKeyViewLoop = true
|
||||
}
|
||||
|
||||
override func addChild(_ childViewController: NSViewController) {
|
||||
childViewController.view.frame.size = view.frame.size
|
||||
childViewController.view.autoresizingMask = [NSView.AutoresizingMask.width, NSView.AutoresizingMask.height]
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<document type="com.apple.InterfaceBuilder3.Cocoa.XIB" version="3.0" toolsVersion="15504" targetRuntime="MacOSX.Cocoa" propertyAccessControl="none" useAutolayout="YES" customObjectInstantitationMethod="direct">
|
||||
<document type="com.apple.InterfaceBuilder3.Cocoa.XIB" version="3.0" toolsVersion="22505" targetRuntime="MacOSX.Cocoa" propertyAccessControl="none" useAutolayout="YES" customObjectInstantitationMethod="direct">
|
||||
<dependencies>
|
||||
<deployment identifier="macosx"/>
|
||||
<plugIn identifier="com.apple.InterfaceBuilder.CocoaPlugin" version="15504"/>
|
||||
<plugIn identifier="com.apple.InterfaceBuilder.CocoaPlugin" version="22505"/>
|
||||
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
|
||||
</dependencies>
|
||||
<objects>
|
||||
|
||||
@@ -7,6 +7,10 @@
|
||||
|
||||
import Cocoa
|
||||
|
||||
final class PopUpCellView : NSTableCellView {
|
||||
final class PopUpCellView : NSTableCellView, ExpandedTableViewCellActionable {
|
||||
@IBOutlet var popUpButton: NSPopUpButton!
|
||||
|
||||
func performAction() {
|
||||
self.popUpButton.performClick(self)
|
||||
}
|
||||
}
|
||||
@@ -117,6 +117,7 @@ class MovieViewController: PropertyView, NSTableViewDataSource, ExpandedTableVie
|
||||
|
||||
columnWidth = column.width
|
||||
|
||||
metadataTableView.defaultEditingColumn = 1
|
||||
metadataTableView.doubleAction = #selector(doubleClickAction(_:))
|
||||
metadataTableView.target = self
|
||||
metadataTableView.pasteboardTypes = [.metadataDragType]
|
||||
|
||||
+1
-1
Submodule MP42Foundation updated: aa541846bc...ce670fe788.
@@ -1,10 +1,17 @@
|
||||
# Subler News
|
||||
|
||||
|
||||
## Subler 1.8.5
|
||||
|
||||
- Improved keyboard navigation in the document window
|
||||
- Fixed FLAC audio decoding
|
||||
|
||||
|
||||
## Subler 1.8.4
|
||||
|
||||
- Fixed metadata copy & paste
|
||||
|
||||
|
||||
## Subler 1.8.3
|
||||
|
||||
- Reworked windows toolbars
|
||||
|
||||
@@ -1390,7 +1390,7 @@
|
||||
"CODE_SIGN_IDENTITY[sdk=macosx*]" = "-";
|
||||
CODE_SIGN_STYLE = Automatic;
|
||||
COPY_PHASE_STRIP = NO;
|
||||
CURRENT_PROJECT_VERSION = 1.8.4;
|
||||
CURRENT_PROJECT_VERSION = 1.8.5;
|
||||
DEAD_CODE_STRIPPING = YES;
|
||||
DEVELOPMENT_TEAM = "";
|
||||
ENABLE_HARDENED_RUNTIME = YES;
|
||||
@@ -1407,7 +1407,7 @@
|
||||
"$(inherited)",
|
||||
"@executable_path/../Frameworks",
|
||||
);
|
||||
MARKETING_VERSION = 1.8.4;
|
||||
MARKETING_VERSION = 1.8.5;
|
||||
OTHER_CFLAGS = "";
|
||||
OTHER_LDFLAGS = "-Wl,-rpath,@loader_path/../Frameworks";
|
||||
OTHER_SWIFT_FLAGS = "";
|
||||
@@ -1431,7 +1431,7 @@
|
||||
CODE_SIGN_IDENTITY = "Mac Developer";
|
||||
"CODE_SIGN_IDENTITY[sdk=macosx*]" = "-";
|
||||
CODE_SIGN_STYLE = Automatic;
|
||||
CURRENT_PROJECT_VERSION = 1.8.4;
|
||||
CURRENT_PROJECT_VERSION = 1.8.5;
|
||||
DEAD_CODE_STRIPPING = YES;
|
||||
DEVELOPMENT_TEAM = "";
|
||||
ENABLE_HARDENED_RUNTIME = YES;
|
||||
@@ -1447,7 +1447,7 @@
|
||||
"$(inherited)",
|
||||
"@executable_path/../Frameworks",
|
||||
);
|
||||
MARKETING_VERSION = 1.8.4;
|
||||
MARKETING_VERSION = 1.8.5;
|
||||
OTHER_CFLAGS = "";
|
||||
OTHER_LDFLAGS = "-Wl,-rpath,@loader_path/../Frameworks";
|
||||
OTHER_SWIFT_FLAGS = "";
|
||||
|
||||
Reference in new issue
Block a user