Some clean up.
This commit is contained in:
@@ -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
|
||||||
|
|||||||
@@ -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)
|
||||||
|
|||||||
@@ -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),
|
||||||
|
|
||||||
])
|
])
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user