Skip to content

Commit

Permalink
디데이 자동 업데이트 기능을 추가하였습니다.
Browse files Browse the repository at this point in the history
  • Loading branch information
min-uuu committed Dec 26, 2020
1 parent 67a75e7 commit 5486e59
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Binary file not shown.
4 changes: 3 additions & 1 deletion For_0416/AppDelegate.swift
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ class AppDelegate: NSObject, NSApplicationDelegate {

// 메뉴 바 생성
let statusItem = NSStatusBar.system.statusItem(withLength:NSStatusItem.variableLength)
let everyMinuteTimer = Timer.scheduledTimer(timeInterval: 3600, target: self,
selector: #selector(applicationDidFinishLaunching(_:)), userInfo: nil, repeats: true)


func applicationDidFinishLaunching(_ aNotification: Notification) {
let dateFormatter = DateFormatter()
Expand All @@ -28,7 +31,6 @@ class AppDelegate: NSObject, NSApplicationDelegate {
button.imagePosition = NSControl.ImagePosition.imageLeft
button.title = "+\(dday)"

// 타이틀 표시 코드
// button.title = "For_0416"

button.action = #selector(togglePopover(_:))
Expand Down

0 comments on commit 5486e59

Please sign in to comment.