-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 2311acf
Showing
35 changed files
with
1,786 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
xcuserdata/ | ||
project.xcworkspace | ||
|
||
.DS_Store | ||
._* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
Copyright (c) 2019 František Nesveda | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining a copy | ||
of this software and associated documentation files (the "Software"), to deal | ||
in the Software without restriction, including without limitation the rights | ||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
copies of the Software, and to permit persons to whom the Software is | ||
furnished to do so, subject to the following conditions: | ||
|
||
The above copyright notice and this permission notice shall be included in all | ||
copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||
SOFTWARE. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
<p align="center"><img src="docs/images/logo.png" alt="Logo of the project"></p> | ||
<h1 align="center">Namedays</h1> | ||
<br> | ||
<p align="center">A Mac app which displays Czech namedays in the menubar.</p> | ||
<br> | ||
<p align="center"><img src="docs/images/screenshots/main.png" alt="A screenshot of the application"></p> | ||
|
||
About | ||
----- | ||
*Namedays* is a small utility which shows the current and future Czech namedays in the menubar of your Mac. | ||
|
||
This is a small summer project which I did to get some practice with developing Mac apps. There are a few similar projects available, but they are either abandoned or paid, so I wanted to make a free, simple, open source alternative to replace them. | ||
|
||
Installation | ||
------------ | ||
*Namedays* supports macOS 10.11 El Capitan and higher. | ||
|
||
To install, download the [latest DMG release](https://www.github.com/fnesveda/Namedays/releases/latest), open it and drag *Namedays.app* to your *Applications* folder. | ||
|
||
Usage | ||
----- | ||
The app simply shows the nameday for the current date in the menubar of your Mac. | ||
When you click on the menubar item, a menu opens showing namedays for several days in the future. | ||
|
||
In the app's preferences, accessible from the menu, you can customize the number of future namedays displayed in the menu or control the login item of the app. | ||
|
||
Developing | ||
---------- | ||
The app is a standard Xcode & Swift project without any external dependencies. You can just download or clone the repository and open *src/Namedays.xcodeproj* to start making changes. | ||
|
||
The whole project is written in Swift 4.2, without using any Objective-C bridging headers. | ||
|
||
|
||
### Quirks and perks | ||
|
||
Due to the way the app manages its login item (through [Launch Services](https://developer.apple.com/documentation/coreservices/launch_services)), App Sandbox can't be enabled. This means the app can't be released on the Mac App Store, at least for now. | ||
|
||
*LoginItemManager.swift* contains an implementation of a login item manager for the app. | ||
There is a bunch of login item managers available already, I implemented it in a way that you can bind the property *isEnabled* of the manager to a checkbox in Interface Builder through the included value transformer *LoginItemCheckboxTransformer*. | ||
Unfortunately, Apple deprecated the APIs to access the login item list starting from Sierra, without offering any real alternative. | ||
I hope these will keep working for at least a few more years, but eventually this will need to be rewritten to utilize the Service Management Framework, which will have the side effect of not showing the login item in System Preferences. | ||
|
||
Links | ||
----- | ||
- Project homepage: https://www.nesveda.com/projects/Namedays | ||
- Project repository: https://www.github.com/fnesveda/Namedays | ||
|
||
Licensing | ||
--------- | ||
The code in this project is licensed under the MIT license. | ||
Everybody is welcome to use, change and modify the project as they see fit. |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.