I made my first real Cocoa application today. It's nothing fancy, really, but it's light-years beyond anything that I've done before. What it does, basically, is load an xml file from the internet and display two text strings as part of its graphical interface. One string is intended to represent the date, but can be altered to be a title if the situation warrants simply by editing the contents of the string connected with the CurrentDate key in the xml file. The other is keyed to be the days "horoscope". Additionally, the GUI displays a picture bundled with the application itself, next to the text.
The cool thing about doing it this way is that I retain control over the content displayed in the application at any given time it is accessed. Whenever I wish, I can change the text in the xml file and so display what information the application provides the user. This seems handy for any applications where the developer would like to provide updated content as part of the application. Granted, my implementation of this content is fairly crude, there's not even error-handling for the event you start the program up without an internet connection yet, but considering that just 48 hours ago I had never written a single cocoa application, I'm fairly impressed by how quickly I have been able to progress to writing programs with actual real-world functionality.
Plus, Dusk really liked it when I presented it to him as his birthday present. *grins*
The cool thing about doing it this way is that I retain control over the content displayed in the application at any given time it is accessed. Whenever I wish, I can change the text in the xml file and so display what information the application provides the user. This seems handy for any applications where the developer would like to provide updated content as part of the application. Granted, my implementation of this content is fairly crude, there's not even error-handling for the event you start the program up without an internet connection yet, but considering that just 48 hours ago I had never written a single cocoa application, I'm fairly impressed by how quickly I have been able to progress to writing programs with actual real-world functionality.
Plus, Dusk really liked it when I presented it to him as his birthday present. *grins*