I'm trying to build my first graphical app that utilizes NSRects and NSPoints to draw a very basic clock into a custom MyView.
Thus far the result looks like this:
However, the clock is static and as such not very impressive. How could I make my custom NSView object call the -drawRect method repeatedly (every once a second)? Is there any easy way to do it?
Keep in mind that I have very little idea of what I'm doing and the code is really basic so baby steps would be useful. 🙂
Thanks for your help!
Thus far the result looks like this:
However, the clock is static and as such not very impressive. How could I make my custom NSView object call the -drawRect method repeatedly (every once a second)? Is there any easy way to do it?
Keep in mind that I have very little idea of what I'm doing and the code is really basic so baby steps would be useful. 🙂
Thanks for your help!