printMouse()

iocn
This commit is contained in:
neon443
2025-05-23 11:30:49 +01:00
parent b24ddad473
commit 8d9f8294a4
14 changed files with 39 additions and 7 deletions

View File

@@ -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
}
}

View File

@@ -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"

View File

Binary file not shown.

After

Width:  |  Height:  |  Size: 576 KiB

View File

Binary file not shown.

After

Width:  |  Height:  |  Size: 576 KiB

View File

Binary file not shown.

After

Width:  |  Height:  |  Size: 576 KiB

View File

Binary file not shown.

After

Width:  |  Height:  |  Size: 576 KiB

View File

Binary file not shown.

After

Width:  |  Height:  |  Size: 576 KiB

View File

Binary file not shown.

After

Width:  |  Height:  |  Size: 576 KiB

View File

Binary file not shown.

After

Width:  |  Height:  |  Size: 576 KiB

View File

Binary file not shown.

After

Width:  |  Height:  |  Size: 576 KiB

View File

Binary file not shown.

After

Width:  |  Height:  |  Size: 576 KiB

View File

Binary file not shown.

After

Width:  |  Height:  |  Size: 576 KiB

View 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)
}