Skip to content

Commit

Permalink
adopting objc++ & speed up with c arrays
Browse files Browse the repository at this point in the history
  • Loading branch information
groverlynn committed Apr 25, 2024
1 parent c01f59c commit 22a8e57
Show file tree
Hide file tree
Showing 27 changed files with 6,082 additions and 5,796 deletions.
160 changes: 0 additions & 160 deletions Assets.xcassets/Symbols/chevron.down.symbolset/chevron.down.svg

This file was deleted.

160 changes: 0 additions & 160 deletions Assets.xcassets/Symbols/chevron.up.symbolset/chevron.up.svg

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
},
"symbols" : [
{
"filename" : "chevron.up.svg",
"filename" : "rectangle.compress.vertical.svg",
"idiom" : "universal"
}
]
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
},
"symbols" : [
{
"filename" : "chevron.down.svg",
"filename" : "rectangle.expand.vertical.svg",
"idiom" : "universal"
}
]
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
26 changes: 14 additions & 12 deletions Base.lproj/MainMenu.xib
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<document type="com.apple.InterfaceBuilder3.Cocoa.XIB" version="3.0" toolsVersion="12121" systemVersion="16G29" targetRuntime="MacOSX.Cocoa" propertyAccessControl="none">
<document type="com.apple.InterfaceBuilder3.Cocoa.XIB" version="3.0" toolsVersion="32700.99.1234" targetRuntime="MacOSX.Cocoa" propertyAccessControl="none" useAutolayout="YES">
<dependencies>
<deployment identifier="macosx"/>
<plugIn identifier="com.apple.InterfaceBuilder.CocoaPlugin" version="12121"/>
<plugIn identifier="com.apple.InterfaceBuilder.CocoaPlugin" version="22689"/>
</dependencies>
<objects>
<customObject id="-2" userLabel="File's Owner" customClass="NSApplication">
Expand All @@ -14,40 +14,42 @@
<customObject id="-3" userLabel="Application"/>
<customObject id="252" userLabel="SquirrelApplicationDelegate" customClass="SquirrelApplicationDelegate">
<connections>
<outlet property="_menu" destination="773" id="779"/>
<outlet property="_panel" destination="770" id="771"/>
<outlet property="_updater" destination="772" id="794"/>
<outlet property="menu" destination="773" id="779"/>
<outlet property="panel" destination="770" id="771"/>
<outlet property="updater" destination="772" id="794"/>
</connections>
</customObject>
<customObject id="770" userLabel="SquirrelPanel" customClass="SquirrelPanel"/>
<menu id="773" userLabel="Menu">
<items>
<menuItem title="Squirrel Switcher" allowsKeyEquivalentWhenHidden="YES" id="780">
<modifierMask key="keyEquivalentModifierMask"/>
<connections>
<action selector="showSwitcher:" target="252" id="781"/>
</connections>
</menuItem>
<menuItem title="Deploy" keyEquivalent="`" id="774">
<modifierMask key="keyEquivalentModifierMask" control="YES" option="YES"/>
<connections>
<action selector="deploy:" target="252" id="795"/>
</connections>
</menuItem>
<menuItem title="Sync user data" id="804">
<modifierMask key="keyEquivalentModifierMask"/>
<connections>
<action selector="syncUserData:" target="252" id="806"/>
</connections>
</menuItem>
<menuItem title="Settings..." id="802">
<modifierMask key="keyEquivalentModifierMask"/>
<menuItem title="Settings…" id="802">
<connections>
<action selector="configure:" target="252" id="803"/>
</connections>
</menuItem>
<menuItem title="Rime Wiki..." tag="2" id="797">
<modifierMask key="keyEquivalentModifierMask"/>
<menuItem title="Rime Wiki…" tag="2" id="797">
<connections>
<action selector="openWiki:" target="252" id="798"/>
</connections>
</menuItem>
<menuItem title="Check for updates..." tag="1" id="776">
<modifierMask key="keyEquivalentModifierMask"/>
<menuItem title="Check for updates…" tag="1" id="776">
<connections>
<action selector="checkForUpdates:" target="772" id="796"/>
</connections>
Expand Down
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -80,10 +80,10 @@ copy-opencc-data:
deps: librime data

clang-format-lint:
find . -name '*.m' -o -name '*.h' -maxdepth 1 | xargs clang-format -Werror --dry-run || { echo Please lint your code by '"'"make clang-format-apply"'"'.; false; }
find . -name '*.m' -o -name '*.mm' -o -name '*.h' -o -name '*.hh' -maxdepth 1 | xargs clang-format -Werror --dry-run || { echo Please lint your code by '"'"make clang-format-apply"'"'.; false; }

clang-format-apply:
find . -name '*.m' -o -name '*.h' -maxdepth 1 | xargs clang-format --verbose -i
find . -name '*.m' -o -name '*.mm' -o -name '*.h' -o -name '*.hh' -maxdepth 1 | xargs clang-format --verbose -i

ifdef ARCHS
BUILD_SETTINGS += ARCHS="$(ARCHS)"
Expand Down
Loading

0 comments on commit 22a8e57

Please sign in to comment.