My Alarm Clock App

Discussion in 'Mac Programming' started by Jopling, May 23, 2007.

  1. Jopling macrumors 6502

    Joined:
    Jul 14, 2004
    #1
    Besides a pretty basic knowledge of c++ and knowing applescript, how hard would it be for me to learn how to program this app? I just put this together in photoshop.
     

    Attached Files:

  2. Jasonbot macrumors 68020

    Jasonbot

    Joined:
    Aug 15, 2006
    Location:
    The Rainbow Nation RSA
    #2
    Not that I know much about C++ coding or what not, but Damn! That is one sexy alarm clock, I'de use it. Hell I ight just even pay for it. It looks so much better than the one I'm using. If it ever gets off it's feet, remember to have some way to make it wake the computer from sleep. And dont allow it to override system volume.
     
  3. MongoTheGeek macrumors 68040

    MongoTheGeek

    Joined:
    Sep 13, 2003
    Location:
    Its not so much where you are as when you are.
    #3
    Not too difficult. The timeline might be rough but the rest of it can be built with applescript.
     
  4. Jopling thread starter macrumors 6502

    Joined:
    Jul 14, 2004
  5. semaja2 macrumors 6502a

    Joined:
    Dec 12, 2005
    Location:
    Adelaide
    #5
    I would say bite the bullet and code it using Obc-Cocoa i mean you can slap applescript in there if you need it for something.
     
  6. Jopling thread starter macrumors 6502

    Joined:
    Jul 14, 2004
    #6
    Im using interface builder right now and I tried a little bit of cocoa... Im dying.
     
  7. furcalchick macrumors 68020

    furcalchick

    Joined:
    Dec 19, 2006
    Location:
    South Florida
  8. xUKHCx Administrator emeritus

    xUKHCx

    Joined:
    Jan 15, 2006
    Location:
    The Kop
    #8
    Looks pretty good. You must be a morning person because a highly energetic song like Call on me would really put me in a bad mood for the morning.
     
  9. Jopling thread starter macrumors 6502

    Joined:
    Jul 14, 2004
    #9
    Actually it pisses me off so much because its so loud that I jump out of bed to turn it off immeadiately.


    I don't think I'll even be able to figure out how to program this thing. I've been reading tutorials all day and they are all way too basic. I'm going to try and hit up a book store relatively soon. If someone could kind of show me how to get started, that would help the most.
     
  10. cazlar macrumors 6502

    Joined:
    Oct 2, 2003
    Location:
    Sydney, Australia
    #10
    I'm no expert, but I'd start simple and build on that. I'd go ObjC/Cocoa too - if you are doing Mac programming you might as well learn it. Those tutorials probably include how to wire up UI things in IB (outlets etc), so definitely read that. Then I'd start by having your timer input fields, and a method in your controller that reads them in when you hit "set alarm", and makes an NSTimer, that fires at the appropriate time. Then you can add on making it play music, etc etc.
     
  11. Spizzo macrumors 6502

    Joined:
    Feb 1, 2004
    Location:
    Pacific NW
    #11
    I second this!!! Looks good! :D
     
  12. cblackburn macrumors regular

    Joined:
    Jul 5, 2005
    Location:
    London, UK
    #12
    This looks like a fantastic app. Unfortunatley I have another programming contract that is completely owning my live (apart from the odd MR forum posting ;)). Maybe I can give it a stab in a few months time

    Chris
     
  13. MongoTheGeek macrumors 68040

    MongoTheGeek

    Joined:
    Sep 13, 2003
    Location:
    Its not so much where you are as when you are.
    #13
    Just about all of this can be done with Applescript Studio. It won't be as fast or robust but it will be far easier for him to write.

    Take a look at the tableview tutorial, the countdown timer one and the daily dilbert. Those should give you most of the hooks you need.
     
  14. MacDonaldsd macrumors 65816

    MacDonaldsd

    Joined:
    Sep 8, 2005
    Location:
    London , UK
    #14
    How would you go about doing a timeline view like that ?
     
  15. MongoTheGeek macrumors 68040

    MongoTheGeek

    Joined:
    Sep 13, 2003
    Location:
    Its not so much where you are as when you are.
    #15
    That would probably have to be a custom control written in Obj-C or C++.
     
  16. semaja2 macrumors 6502a

    Joined:
    Dec 12, 2005
    Location:
    Adelaide
    #16
    I would set your goals small to begin with, i mean i didnt start coding MultiAlarm at its last stage, i started at the smallest and easiest now stage *which was hard back then*

    I would say look into coding a system to just let you schedule the wake up, then move onto detecting the wake up from sleep and then add the music system etc

    I would love to see more free options out there, PM me if you need help
     
  17. slooksterPSV macrumors 68040

    slooksterPSV

    Joined:
    Apr 17, 2004
    Location:
    Nowheresville
    #17
    I must agree with the previous posters post, when I started to develop MDM - money data manager, I started small. I didn't have file implementation or anything like that when I started, I made it to where I could have the basics, then I moved on to bigger and better things such as a preference pane and all that. So start small:
    1 - Develop the alarm clock
    2 - Develop one table
    3 - Develop more tables
    4 - Develop intricate features
    5 - Test and fix bugs and develop more items
    6...
    n - finished
     
  18. AlwaysRight macrumors member

    Joined:
    Sep 17, 2006
    #18
    wake computer

    Does anyone have any idea how to wake the computer from sleep to do somethig like this
     

Share This Page