Draw on Desktop

All,


I am new to Swift and AppleScript. But, I have been long time user of this App called Geeklet. I am just curious how would I go about write my own? Basically, I'd like to


  • Learn how to create a frameless / windowless with size of the desktop screen App
  • learn how to draw, writing (text, image) onto the desktop
  • incorporate AppleScript into the App
  • and all in Swift as I have not learn Obj-C prior.


Please advise any book, code sniplet, references that I could study ? Many Thanks in advance.

Sounds awesome! If you are new to Swift, I think your first step should be focusing on creating a few simple Swift programs, just to get started. (Do you have any prior programming experience with other languages?)


Next, set yourself an intermediate goal: creating an OSX program that displays an image, and allows you to place text on top of that image. (Leave the "replacing of the desktop" for last.) Then perhaps consider figuring out how to integrate with AppleScript / etc.


Keep in mind that creating something like GeekTool is not trivial, so take small steps when getting started, and keep moving toward your goal one small step at a time.

Yes. I am new to Swift. I read a couple online tutorials on the language and coming from Java/Groovy, Ruby, Python and C/C++ on X11/Motif Windows on SunOs, I am quite confortable with the Swift language itself.


However, GUI programming in Mac OS X/X-Code/Swift/AppleScript is a total new paradigm to me and i find it a bit challenging to learn the GUI programming here. On top of that, I have never build an application using IDE prior except using Eclipse. I am too old school ... 🙂


I did following a few video on creating basic GUI, a push button that change the text of label.


If there is any web sites or any good book that I could go throught, please share me the link or the name of the book.


secondly, is GUI API documents somewhere that I could read as well?


Lastly, is there way to build GUI Application outside of X-Code environment? i.e. code very class, code every line ? . Again, I am very old school ....


Many thanks in advance.

Draw on Desktop
 
 
Q