Democratic Underground Latest Greatest Lobby Journals Search Options Help Login
Google

Hi, my name is Ryan. I want to learn how to write apps for OS X.

Printer-friendly format Printer-friendly format
Printer-friendly format Email this thread to a friend
Printer-friendly format Bookmark this thread
Home » Discuss » DU Groups » Computers & Internet » Macintosh Users Group Donate to DU
 
Omphaloskepsis Donating Member (1000+ posts) Send PM | Profile | Ignore Thu Jan-25-07 03:43 AM
Original message
Hi, my name is Ryan. I want to learn how to write apps for OS X.
I downloaded a bunch of books about Cocoa and xCode. This is the problem. I only can learn something like this when I try to solve a problem. I can't think of any app I need right now that a total nOOb could code.

Any simple application anyone would like to see written for OS X?

It would be open source. I have no intention of selling someones idea. I would put it under the The GNU General Public License (GPL).

Any ideas? I need inspiration.
Refresh | 0 Recommendations Printer Friendly | Permalink | Reply | Top
alfredo Donating Member (1000+ posts) Send PM | Profile | Ignore Sun Jan-28-07 11:57 PM
Response to Original message
1. Take a look at AppleScript. Installed with OSX is
Edited on Sun Jan-28-07 11:59 PM by alfredo
Perl, Ruby, Java, and Python. OSX has gcc and you can do bash scripts until you are blue in the face.


Check out the Widgets in Dashboard.

BTW, I am not a programmer, I can't help you there. I can make AppleScript dialogs and launchers and simple bash scripts. What I know is from learning enough to know what code snippets I can "borrow" to use here at home. I learned HTML by reading page sources. I'd rather play in Photoshop than some IDE.

Games, we love games.

http://www.idevgames.com/






BTW, AppleScript is in /Applications/AppleScript.

Take this script and open up the Script Editor in the Applescript folder. Paste it in.

Hit run.

If you like, go to file/save as. You have choices, you can save as text, script, or application. (I think that is the choices)


repeat
set todaydate to current date
set todayday to day of todaydate
set todaytime to time of todaydate
set todayyear to year of todaydate

set launchdate to date "Tuesday, January 20, 2009 12:00:00 PM"
set launchday to day of launchdate
set launchtime to time of launchdate
set launchyear to year of launchdate

set yearsleft to launchyear - todayyear
set daysleft to launchday - todayday
set timeleft to 86400 - todaytime

set totaltimeleft to timeleft + {86400 * daysleft}
set totaltotaltimeleft to totaltimeleft + {yearsleft * 31536000}

set unroundedminutesleft to totaltotaltimeleft / 60
set totalminutesleft to {round unroundedminutesleft}
set unroundedhoursleft to totalminutesleft / 60
set totalhoursleft to {round unroundedhoursleft}
set unroundeddaysleft to totalhoursleft / 24
set totaldaysleft to {round unroundeddaysleft}
set unroundedyearsleft to totaldaysleft / 365
set totalyearsleft to {round unroundedyearsleft}


if totaltotaltimeleft is less than or equal to 0 then
display dialog "The wait is finally over!"
exit repeat
else
display dialog "There are...

" & totalyearsleft & " years,

" & totaldaysleft & " days,

" & totalhoursleft & " hours,

" & totalminutesleft & " minutes, or

" & totaltotaltimeleft & " seconds left until the bush nightmare is over.

This dialog will auto-refresh every 10 seconds, or you can manually refresh it by clicking OK." giving up after 10
end if
end repeat


Printer Friendly | Permalink | Reply | Top
 
moggie Donating Member (1000+ posts) Send PM | Profile | Ignore Mon Jan-29-07 11:13 AM
Response to Original message
2. Have you worked through Apple's Cocoa tutorial?
Their currency converter tutorial is a fairly nice introduction to Cocoa/Xcode, and once you've completed it you'll probably think of ways to extend it. Obviously you're likely to end up with a toy application rather than one you'll want to give away, but once you've given it a load of bells and whistles you'll no longer be a newbie, and will be equipped to scratch an itch which you have, which is always more motivating.
Printer Friendly | Permalink | Reply | Top
 
Omphaloskepsis Donating Member (1000+ posts) Send PM | Profile | Ignore Wed Jan-31-07 04:51 AM
Response to Reply #2
3. I didn't even think of looking for tutorials on ADC..
I did this one a few days ago: http://cocoadevcentral.com/d/learn_cocoa/
That actually did help with getting around Xcode.

I did talk to my sister and she would like to see some type of cookbook application. I think that would be a good start. My history is with web-based apps. I normally use PHP, MySQL, Ruby, and Python.
Printer Friendly | Permalink | Reply | Top
 
moggie Donating Member (1000+ posts) Send PM | Profile | Ignore Wed Jan-31-07 08:01 AM
Response to Reply #3
4. Sounds like me
Well, substitute Perl for PHP. I should point out that I'm a total Cocoa novice myself: I've worked through tutorials, but haven't yet found time to do anything original.

I've skimmed through the tutorial you mention, and I'm not very impressed. It doesn't really explain what you're doing. Do look for that Currency Converter tutorial, because it's got much more meat to it. Xcode -> Help -> Documentation -> Cocoa -> Getting started. If you prefer books, 'Cocoa Programming for OS X' by Aaron Hillegass is very good.
Printer Friendly | Permalink | Reply | Top
 
emulatorloo Donating Member (1000+ posts) Send PM | Profile | Ignore Tue Feb-06-07 07:42 PM
Response to Reply #3
5. Sign up with Apple Developer site
Edited on Tue Feb-06-07 07:44 PM by emulatorloo
There are several levels, one of them is free. Gives you access to white papers, code examples, dev tools etc.

http://www.apple.com/developer

Here's the free one:

http://developer.apple.com/membership/online.html
Printer Friendly | Permalink | Reply | Top
 
Ezlivin Donating Member (1000+ posts) Send PM | Profile | Ignore Mon Feb-12-07 04:50 PM
Response to Original message
6. We need another rock solid "Hello World" application
:)

And, yes, it was the first application I "developed" on the Mac back in 1985. The Developer's Library was four paperback books.

Oh the days....

Printer Friendly | Permalink | Reply | Top
 
DU AdBot (1000+ posts) Click to send private message to this author Click to view 
this author's profile Click to add 
this author to your buddy list Click to add 
this author to your Ignore list Sun Dec 22nd 2024, 07:43 PM
Response to Original message
Advertisements [?]
 Top

Home » Discuss » DU Groups » Computers & Internet » Macintosh Users Group Donate to DU

Powered by DCForum+ Version 1.1 Copyright 1997-2002 DCScripts.com
Software has been extensively modified by the DU administrators


Important Notices: By participating on this discussion board, visitors agree to abide by the rules outlined on our Rules page. Messages posted on the Democratic Underground Discussion Forums are the opinions of the individuals who post them, and do not necessarily represent the opinions of Democratic Underground, LLC.

Home  |  Discussion Forums  |  Journals |  Store  |  Donate

About DU  |  Contact Us  |  Privacy Policy

Got a message for Democratic Underground? Click here to send us a message.

© 2001 - 2011 Democratic Underground, LLC