Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

twoodcc

macrumors P6
Original poster
Feb 3, 2005
15,307
26
Right side of wrong
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?
 

semaja2

macrumors 6502a
Dec 12, 2005
576
18
Adelaide
All my projects are open source besides WiFiScriptor so if you want anything from my website you can ask for the latest source code
 

twoodcc

macrumors P6
Original poster
Feb 3, 2005
15,307
26
Right side of wrong
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
 

mduser63

macrumors 68040
Nov 9, 2004
3,042
31
Salt Lake City, UT
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.
 

twoodcc

macrumors P6
Original poster
Feb 3, 2005
15,307
26
Right side of wrong
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
 

Soulstorm

macrumors 68000
Feb 1, 2005
1,887
1
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.
 

twoodcc

macrumors P6
Original poster
Feb 3, 2005
15,307
26
Right side of wrong
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?
 

mduser63

macrumors 68040
Nov 9, 2004
3,042
31
Salt Lake City, UT
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.
 

darkwing

macrumors 65816
Jan 6, 2004
1,210
0
I wrote DataSnd back in 1994 which converted VOC/WAV files to Sys7 double clickable sound files. A whole 3 people registered it! Woo. Everything since has been either incomplete or for school. As I write software every day for a living (small embedded devices or Linux stuff) I never get much time to do any OSX programming... but I do all my work on a mac! :)
 

twoodcc

macrumors P6
Original poster
Feb 3, 2005
15,307
26
Right side of wrong
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.

thanks. yeah i've already looked at a few tutorials and made very simple programs.

if anyone wants to help me get started though, that'd be great :)
 

GothicChess.Com

macrumors regular
Apr 6, 2007
126
0
Philadelphia, PA
A cool Mac OS X Checkers Program

http://www.onlyperfectcheckers.com

OPC_starting_position


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.
 

twoodcc

macrumors P6
Original poster
Feb 3, 2005
15,307
26
Right side of wrong
http://www.onlyperfectcheckers.com

OPC_starting_position


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.

cool stuff!
 

kainjow

Moderator emeritus
Jun 15, 2000
7,958
7
Some of the apps I've made can be found here, here, here, and here (all Cocoa).

The Subversion repository is down though, but I will be moving it all to Google Code soon.
 

Eraserhead

macrumors G4
Nov 3, 2005
10,434
12,250
UK
Some of the apps I've made can be found here, here, here, and here (all Cocoa).

The Subversion repository is down though, but I will be moving it all to Google Code soon.

Semulov is great, I have been looking for an ejector for a while, it's a good one, pretty much what I'm looking for! The only features I'd like would be integration to make it a startup item from the program itself (which is really minor), and for an option to not eject the CD drive, which is good when you are a laptop user and want to eject your iPod/Flash drive/External HD in one go as you are about to leave the house (again minor, as I never have CD's in my CD drive anyway).

I have just made D&D Manager, which is a DM helper program for Dungeons and Dragons (and makes me a real geek ;))
 

SC68Cal

macrumors 68000
Feb 23, 2006
1,642
0
tominated browser. you can get the source from my site (in my sig)

I'm going through your source code. It seems to just be a razor-blade thin interface that uses the webkit rendering engine to render webpages.

I'd like to talk to you about this project, perhaps I could lend a hand?

I'm not very familiar with webkit, but I imagine that for the one problem you're having with HTTPS pages, there might be a special way that you get webkit to handle those requests and rendering?

Contact me sometime.
 

slooksterPSV

macrumors 68040
Apr 17, 2004
3,544
306
Nowheresville
STK WebEdit Lite
------
Features:
Live PHP Rendering
Preview Mode for previewing XML, HTML, and PHP files
Simple Use


Bugs and Requests:
Local PHP Rendering (for use with your local files)
Code Highlighting
Web Browser with Code Viewer
and more...

Requirements:
PHP 4 or 5 and php file in /usr/bin
Web Services Running

here's it and the screenshot
 

Attachments

  • STKWebEditLite.dmg.zip
    64.7 KB · Views: 89
  • Picture 2.jpg
    Picture 2.jpg
    98 KB · Views: 101

iBookG4user

macrumors 604
Jun 27, 2006
6,595
2
Seattle, WA
It's not really writing a program as it is making a skin for a current program. I made a skin for the dashboard calculator. It doesn't look great, but it's my first skin for it so give me a break :p.
 

Attachments

  • Picture 1.png
    Picture 1.png
    52 KB · Views: 524
  • Calculator.zip
    225.3 KB · Views: 121

GoCubsGo

macrumors Nehalem
Feb 19, 2005
35,742
155
This is a great thread, but to the checkers guy...your download link is broken. :( No checkers for Jessica.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.