Commit graph

222 commits

Author SHA1 Message Date
Gennadii Potapov
9bd2303e1b
Merge pull request #277 from NateEag/patch-1
Fix a few typos in readme.md
2022-12-23 12:10:00 +08:00
Nate Eagleson
68b794bfcd
Fix a few typos in readme.md 2022-12-22 13:50:05 -05:00
Gennadii Potapov
de3cbc82b7
Update readme.md 2022-09-23 23:08:43 +08:00
Gennadii Potapov
4494f65dc5
Added 2022 award image from Mac Informer 2022-09-23 23:06:39 +08:00
Gennadii Potapov
d3169104ca
Merge pull request #257 from GreenRecycleBin/fix-launch-flycut-on-login-not-working
Fix "Launch Flycut on login" not working for builds without SANDBOXING defined
2022-03-18 11:58:50 +08:00
Daniel Le
3751e8bb8b Fix a typo in configureAppSandboxing.sh when given SANDBOXING 2022-02-13 03:54:13 +08:00
Daniel Le
221857e236 Fix "Launch Flycut on login" on older builds without SANDBOXING defined
For these builds, Apple Events sent to "System Events.App" will fail
with -600 error codes unless these additional entitlements are granted:

  <!-- Required for builds without SANDBOXING defined. -->
  <key>com.apple.security.automation.apple-events</key>
  <true/>

  <!-- Required for sandboxed builds without SANDBOXING defined. -->
  <key>com.apple.security.temporary-exception.apple-events</key>
  <string>com.apple.systemevents</string>

(Of course, Apple might not grant these permissions for versions
submitted to the App Store.)

This is because Apple introduced more privacy measures in Mojave that
prohibit sandboxed apps from sending Apple events to other apps without
either a scripting-targets entitlement or an apple-events temporary exception entitlement.
However, "System Events.app" doesn't have any scripting entitlements
that we could use. Hence, we must use the latter.

"However, with App Sandbox you cannot send Apple events to other apps
unless you configure a scripting-targets entitlement or an apple-events
temporary exception entitlement."
https://developer.apple.com/library/archive/documentation/Miscellaneous/Reference/EntitlementKeyReference/Chapters/AppSandboxTemporaryExceptionEntitlements.html

The below post also documented the issue and solution in more details:
https://www.jessesquires.com/blog/2018/11/17/executing-applescript-in-mac-app-on-macos-mojave/
2022-02-13 03:54:03 +08:00
Gennadii Potapov
696178a7ff
Merge pull request #254 from MarkJerde/various_fixes
Various fixes
2022-01-24 13:12:24 +08:00
Mark Jerde
e6b3fa6484 Add script to adjust App Sandboxing settings 2022-01-23 21:47:21 -06:00
Mark Jerde
c2ad9cc506 Fix Preferences window height 2022-01-23 21:47:21 -06:00
Mark Jerde
b434c65845 Increase maximum history to 999
Also fix some bindings where the Favorites controls were bound to
the non-Favorites keys, and an incorrect tool-tip.
2022-01-23 21:47:21 -06:00
Mark Jerde
b85e1375f8 Bezel layout adjustments
Rewrote RoundRecTextField to allow Auto Layout with leading
and trailing margins to dynamically size the 'n of m' bubble
which lays the groundwork for supporting 999 clippings without
looking bad. RoundRecTextField was pretty self-critical anyway.

The 'n of m' bubble was off-center previously, so now it is centered.

The bezel content was lacking in margins to the background shading,
so those have been fixed up now.
2022-01-23 21:47:21 -06:00
Mark Jerde
296d9a8b4d Create subdirectories for autosave
Saving to the Desktop like Screen Shot sounded great at the time,
and I turn of Desktop icons so it didn't bother me, but really it
was a mess and a bit silly considering the number of autosave
clippings that can be produced. So it is time to create year and
month directories to organize them.

Manually saved clippings don't get year and month directories
because they are an explicit user action and the user can handle
them (and might well not want to have to hunt for them).

Surely some users will want year/month/day directories, and some
only year. Perhaps some none. I can't bring myself to make the
settings panel more complicated, so year/month seemed to strike
a balance.
2022-01-23 21:47:21 -06:00
Mark Jerde
000f459774 Reuse date formatter for performance 2022-01-23 21:47:21 -06:00
Mark Jerde
6f1ab82c88 Xcode has a new file 2022-01-23 21:47:21 -06:00
Mark Jerde
953d0d837d Add ability to select save locations
Tighten up app-sandbox support.
2022-01-23 21:47:21 -06:00
Mark Jerde
4e7e4d13ef Convert PrefsPanel to Auto Layout
This cleans up inconsistencies in the layout and makes it more
durable. It retains the 4px spacing between rows even though that
is lower than standard spacing.
2022-01-23 21:47:20 -06:00
Mark Jerde
4562afa9f0 Fix date formatting string
Per https://twitter.com/vishalmalvi_/status/1475835430067052546?s=12
"YYYY" represents a so called 'week year'
"yyyy" represents a four-digit calendar year
They aren't the same. This has caused clippings near the end of the
year to be saved with the following year number rather than the
current year number.
2022-01-23 21:47:20 -06:00
Mark Jerde
2c0741b357 Restore meaningful build number 2022-01-23 21:47:20 -06:00
Mark Jerde
60a4ec20df Update tests to Swift 5 2022-01-23 21:47:20 -06:00
Mark Jerde
6a1539bb3d Fix main thread bug 2022-01-23 21:47:20 -06:00
Mark Jerde
0129887c5f Get Flycut iOS compiling and updated to Swift 5 2022-01-23 21:47:20 -06:00
Mark Jerde
733897230d Move macOS code out of cross-platform files 2022-01-23 21:47:20 -06:00
Mark Jerde
c41711599e Fix issue #253 and add documentation 2022-01-23 21:47:20 -06:00
Mark Jerde
acb100268d Revert minimum deployment target to 10.7
It still builds fine, so I'm assuming increasing it was an accident.
2022-01-23 21:47:20 -06:00
Mark Jerde
ca62006101 Move misplaced comment 2022-01-10 22:14:21 -06:00
Mark Jerde
15494e51ec Remove unused unimplemented protocol 2022-01-04 23:16:03 -06:00
Gennadii Potapov
14486cecab
Update readme.md
Added Mac Informer award image to readme
2021-06-04 12:54:20 +08:00
Gennadii Potapov
28f5363e03
Mac Informer 2021 award image 2021-06-04 12:51:15 +08:00
Gennadii Potapov
b469f1f8f8
Merge pull request #117 from unkhz/skip-any-pasteboard-type
Skip passwords based on full set of pasteboard types
2020-12-24 13:42:48 +08:00
Gennadii Potapov
fe6b606b99 Merge branch 'master' of github.com:TermiT/Flycut 2020-12-22 17:42:33 +08:00
Gennadii Potapov
2d9b7d2995 Support for Apple Silicon (ARM64 Desktop) 2020-12-22 17:31:26 +08:00
Gennadii Potapov
8d88100d43
Create FUNDING.yml 2020-12-15 18:05:03 +08:00
Juhani Pelli
fdfa5005fc Skip clipping based on full set of pasteboard typesCheck types to skip against the full list of pasteboard typesAdd common types from nspasteboard.org as defaults 2020-09-12 23:32:46 +03:00
Gennadii Potapov
c7654e03cd
Merge pull request #207 from MarkJerde/close_bezel_when_focus_lost
Make bezel close when it loses focus
2020-08-02 15:04:49 +08:00
Mark Jerde
cd26c65b4b Make bezel close when it loses focus
The bezel doesn't provide any UI indication when it loses focus and
this no longer responds to input. This ranges anywhere from being
klunky to being a bug. Users have reported that they believed Flycut
to have hung when encountering this.

This defines a protocol for the BezelWindow's delegate, which had
previously just been a blind id delegate and makes the new delegate
inherit from NSWindowDelegate so that AppController can receive
windowDidResignKey: to indicate when focus is lost and immediately
close the bezel.
2020-08-01 23:06:08 -05:00
Gennadii Potapov
6e575e8e0a
Update readme.md 2020-04-13 15:49:29 +08:00
Gennadii Potapov
3130dbf379 Merge branch 'master' of https://github.com/TermiT/Flycut 2020-02-05 13:13:51 +08:00
Gennadii Potapov
052b76746e Add OSX 10.13 and lower alert 2020-02-04 15:50:18 +08:00
Gennadii Potapov
3d4a1384f3 Add github support URL to acknowledgment tab 2020-02-04 15:49:39 +08:00
Gennadii Potapov
4c6cbb59cb Sticky Bezel disabled by default 2020-02-04 13:52:35 +08:00
Gennadii Potapov
d8d6d38ec9
Update readme.md 2020-01-29 21:33:37 +08:00
Gennadii Potapov
1c4aec0364
Update readme.md 2020-01-29 14:52:49 +08:00
Gennadii Potapov
6a4ab1d408 Merge branch 'master' of https://github.com/TermiT/Flycut 2020-01-29 14:16:59 +08:00
Gennadii Potapov
70eff6f53a Version bump 2020-01-29 14:16:25 +08:00
Gennadii Potapov
0328680ae5 Make search case-insensitive 2020-01-29 14:15:52 +08:00
Gennadii Potapov
d51524594b Add NSAppleEventsUsageDescription 2020-01-29 14:12:48 +08:00
Gennadii Potapov
230cb95a83
Update readme.md 2020-01-25 13:00:20 +08:00
Gennadii Potapov
7f31d9e847
Update readme.md
Version 1.9.3 now available in Mac App Store
2020-01-25 12:59:41 +08:00
Gennadii Potapov
2bf2c3fbf1 Add Flycut helper to add start on login functionality in sandboxed environment 2020-01-25 12:57:10 +08:00