Dashboard Widgets ?

Discussion in 'Mac Programming' started by liketom, Jun 20, 2005.

  1. liketom macrumors 601

    liketom

    Joined:
    Apr 8, 2004
    Location:
    Lincoln,UK
    #1
    Was thinking about playing around with some widgets - so downloaded the 700+mb xcode 2.1 from apple and have started my way through the online help

    anybody got any tips on easy widget making ?

    i like to reverse engineer the process to what i have done is striped out a widget from apple renamed it to zip so i can see the html files inside plus PNG's just so i can get a look at how things work .

    i have played around with the google search html code and got it to show but was unable to get it to open up Safari with the results, i would have to admit my html skills are not good

    Advice needed ;)
     
  2. Josh macrumors 68000

    Josh

    Joined:
    Mar 4, 2004
    Location:
    State College, PA
    #2
    :eek: + :confused:

    You don't need XCode to create a dashboard widget.

    A widget is pretty much just a little web page.

    All you need is HTML+Javascript+CSS (javascript isn't necessary unless your widget is dynamic).

    Any good text editor will be good enough (google Subetha Edit - it's a good editor).

    I suggest reading through Apple's Dashboard Development Guide:
    http://developer.apple.com/macosx/dashboard.html

    You also don't need to rename it to ".zip" - you can control-click it and 'browse package contents' to see the individual files.

    Open the .html file within the package, and that will open up the widget in your web browser, and you can just refresh that each time you make a change to see how it's working.

    You'd need to be compfortable with HTML and CSS before creating a widget though - but with some fun practice, it should come pretty quickly.
     
  3. liketom thread starter macrumors 601

    liketom

    Joined:
    Apr 8, 2004
    Location:
    Lincoln,UK
    #3
    yep still reading thro it , i sort of figured that i don't need xcode 2.1 o well
     

Share This Page