Some clean up.

This commit is contained in:
2025-01-04 22:19:24 -08:00
parent 5ba167fbb6
commit d8d55a6cc8
3 changed files with 2 additions and 6 deletions

View File

@@ -1,5 +1,4 @@
import Cocoa import Cocoa
import os
final class EditableNSTextField: NSTextField { final class EditableNSTextField: NSTextField {
private let commandKey = NSEvent.ModifierFlags.command.rawValue private let commandKey = NSEvent.ModifierFlags.command.rawValue

View File

@@ -28,15 +28,13 @@ FRAMEWORKS = -framework AppKit -framework ServiceManagement
./arm64/%.o: %.swift ./arm64/%.o: %.swift
swift -frontend -c -target arm64-apple-macos$(MACOS_VERSION) $(FLAGS) \ swift -frontend -c -target arm64-apple-macos$(MACOS_VERSION) $(FLAGS) \
-primary-file $< $(filter-out $<, $(SRCMODULES)) $(LIBS) $(FRAMEWORKS) -sdk $(SDK) \ -primary-file $< $(filter-out $<, $(SRCMODULES)) $(LIBS) $(FRAMEWORKS) -sdk $(SDK) \
-module-name $(EXEC) -o $@ -emit-module -module-name $(EXEC) -o $@ -emit-module && touch $@
@touch $@
ifdef UNIVERSAL ifdef UNIVERSAL
./x86_64/%.o: %.swift ./x86_64/%.o: %.swift
@swift -frontend -c -target x86_64-apple-macos$(MACOS_VERSION) \ @swift -frontend -c -target x86_64-apple-macos$(MACOS_VERSION) \
$(FLAGS) -primary-file $< $(filter-out $<, $(SRCMODULES)) $(LIBS) $(FRAMEWORKS) \ $(FLAGS) -primary-file $< $(filter-out $<, $(SRCMODULES)) $(LIBS) $(FRAMEWORKS) \
-sdk $(SDK) -module-name $(EXEC) -o $@ -emit-module -sdk $(SDK) -module-name $(EXEC) -o $@ -emit-module && touch $@
@touch $@
endif endif
./arm64/$(EXEC): $(ARMOBJMODULES) ./arm64/$(EXEC): $(ARMOBJMODULES)

View File

@@ -114,7 +114,6 @@ class SearchViewController: NSViewController, NSTextFieldDelegate,
constant: ViewConstants.spacing10), constant: ViewConstants.spacing10),
programsLabel.trailingAnchor.constraint( programsLabel.trailingAnchor.constraint(
equalTo: searchInput.trailingAnchor), equalTo: searchInput.trailingAnchor),
]) ])
} }