printMouse()
iocn
@@ -9,22 +9,24 @@ import Cocoa
|
||||
|
||||
@main
|
||||
class AppDelegate: NSObject, NSApplicationDelegate {
|
||||
|
||||
|
||||
@IBOutlet var window: NSWindow!
|
||||
|
||||
|
||||
|
||||
|
||||
func applicationDidFinishLaunching(_ aNotification: Notification) {
|
||||
// Insert code here to initialize your application
|
||||
while true {
|
||||
printMouse()
|
||||
sleep(1)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
func applicationWillTerminate(_ aNotification: Notification) {
|
||||
// Insert code here to tear down your application
|
||||
}
|
||||
|
||||
|
||||
func applicationSupportsSecureRestorableState(_ app: NSApplication) -> Bool {
|
||||
return true
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -1,51 +1,61 @@
|
||||
{
|
||||
"images" : [
|
||||
{
|
||||
"filename" : "DockPhobiaAppIcon 9.png",
|
||||
"idiom" : "mac",
|
||||
"scale" : "1x",
|
||||
"size" : "16x16"
|
||||
},
|
||||
{
|
||||
"filename" : "DockPhobiaAppIcon 8.png",
|
||||
"idiom" : "mac",
|
||||
"scale" : "2x",
|
||||
"size" : "16x16"
|
||||
},
|
||||
{
|
||||
"filename" : "DockPhobiaAppIcon 7.png",
|
||||
"idiom" : "mac",
|
||||
"scale" : "1x",
|
||||
"size" : "32x32"
|
||||
},
|
||||
{
|
||||
"filename" : "DockPhobiaAppIcon 6.png",
|
||||
"idiom" : "mac",
|
||||
"scale" : "2x",
|
||||
"size" : "32x32"
|
||||
},
|
||||
{
|
||||
"filename" : "DockPhobiaAppIcon 5.png",
|
||||
"idiom" : "mac",
|
||||
"scale" : "1x",
|
||||
"size" : "128x128"
|
||||
},
|
||||
{
|
||||
"filename" : "DockPhobiaAppIcon 4.png",
|
||||
"idiom" : "mac",
|
||||
"scale" : "2x",
|
||||
"size" : "128x128"
|
||||
},
|
||||
{
|
||||
"filename" : "DockPhobiaAppIcon 3.png",
|
||||
"idiom" : "mac",
|
||||
"scale" : "1x",
|
||||
"size" : "256x256"
|
||||
},
|
||||
{
|
||||
"filename" : "DockPhobiaAppIcon.png",
|
||||
"idiom" : "mac",
|
||||
"scale" : "2x",
|
||||
"size" : "256x256"
|
||||
},
|
||||
{
|
||||
"filename" : "DockPhobiaAppIcon 1.png",
|
||||
"idiom" : "mac",
|
||||
"scale" : "1x",
|
||||
"size" : "512x512"
|
||||
},
|
||||
{
|
||||
"filename" : "DockPhobiaAppIcon 2.png",
|
||||
"idiom" : "mac",
|
||||
"scale" : "2x",
|
||||
"size" : "512x512"
|
||||
|
||||
|
After Width: | Height: | Size: 576 KiB |
|
After Width: | Height: | Size: 576 KiB |
|
After Width: | Height: | Size: 576 KiB |
|
After Width: | Height: | Size: 576 KiB |
|
After Width: | Height: | Size: 576 KiB |
|
After Width: | Height: | Size: 576 KiB |
|
After Width: | Height: | Size: 576 KiB |
|
After Width: | Height: | Size: 576 KiB |
|
After Width: | Height: | Size: 576 KiB |
|
After Width: | Height: | Size: 576 KiB |
16
DockPhobia/MouseTracker.swift
Normal file
@@ -0,0 +1,16 @@
|
||||
//
|
||||
// MouseTracker.swift
|
||||
// DockPhobia
|
||||
//
|
||||
// Created by neon443 on 23/05/2025.
|
||||
//
|
||||
|
||||
import Foundation
|
||||
import AppKit
|
||||
import Cocoa
|
||||
|
||||
func printMouse() {
|
||||
let mouseLoc: NSPoint
|
||||
mouseLoc = NSEvent.mouseLocation
|
||||
print(mouseLoc)
|
||||
}
|
||||