i want to learn more about programs for mac.....and i thought i could learn from some others programs that they've written themselves.....
care to share?
care to share?
tominated browser. you can get the source from my site (in my sig)
All my projects are open source besides WiFiScriptor so if you want anything from my website you can ask for the latest source code
could someone help me with creating a program that will display the user's current uptime, best uptime, and average uptime? or lead me in the right direction to making it myself?
i know this program isn't very useful.....but it's practicing programming....
thanks in advance
You'll probably want to use the command-line "uptime" command. For running shell commands from Cocoa programs, check out NSTask.
thanks. so to write a mac program, you have to use Cocoa? where would i put the code for it? like what file? the ".m" file, or the ".h" file?
sorry for the noob questions....i've taken a few programming courses, but none with Cocoa....
thanks
First of all, here is a link to programs created by me for OS X. They are not something special, but they are a good start. I provide the source for some of these programs, be sure to check the entire website.
Secondly, these questions you are having can all be answered by visiting Apple's website and downloading documents that concern the Objective C language and Cocoa. You can also install the developer tools on your HD and visit the ADC Library, which contains documentation about all aspects of OS X development.
Seems to me that you need to take a few more programming courses. The "h" file is a header file, used for all C-like languages. The m file is used for Objective-C.
thanks. yeah, i know i need more courses, and i'm taking C# right now. i know the "h" file is a header file, but still, where does the code go?
Your code will go in the .m file. I think your best bet is going to be to go through some Cocoa tutorials at the very least. If you have the time/patience, I'd really recommend picking up Cocoa Programming for Mac OS X (and/or Programming in Objective-C) and working through it.
http://www.onlyperfectcheckers.com
I am working on a cool checkers program for OS X as "practice" for getting to know OS X after a long haitus from Mac programming.
Unlike an "ordinary" checkers program, this one is based on an engine that won the 1997-2001 World Computer Machine vs. Machine Championships that were played in Manchester, England. Back then, it ran on a PC.
This next generation of the program is further refined and much stronger than its predecessors, so it will be deadly. Currently it can announce a win in 253 "ply" (the sum of all moves counted for both sides) using its endgame databases of precomputed wins, totalling over a trillion positions and growing every day.
Perhaps a bit overkill, but it will be cool when it is finished
I am making the database generation code and GUI code Open Source.
tominated browser. you can get the source from my site (in my sig)