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

cbrain

macrumors 65816
Original poster
Dec 9, 2006
1,049
0
North-East, UK
I am wanting to sart building widgets and I know what files a widget requires but I would like to know, do I use xcode to build them? If so, which template do I use?
 

Aniej

macrumors 68000
Oct 17, 2006
1,743
0
thanks for asking this, I meant to for a long time and kept forgetting.
 

cbrain

macrumors 65816
Original poster
Dec 9, 2006
1,049
0
North-East, UK
Thanks for the information.

Dashcode is actually bookmarked on my old machine. I don't have an ADC membership but I am planning on getting it.
 

mduser63

macrumors 68040
Nov 9, 2004
3,042
31
Salt Lake City, UT
Yeah, Dashcode is the way to go. It was just barely released as an official beta, so there's not a whole lot of information on how to use it yet, but it's a full-blown IDE and it looks quite powerful. It will be included with Leopard.
 

cbrain

macrumors 65816
Original poster
Dec 9, 2006
1,049
0
North-East, UK
Ok, so I take it I can make widgets in xcode. Which Project do I use because I can't find anything to do with widgets. I'm guessing I use "Empty Project". Am I correct?
 

bronxbomber92

macrumors regular
Nov 23, 2006
109
0
Ok, so I take it I can make widgets in xcode. Which Project do I use because I can't find anything to do with widgets. I'm guessing I use "Empty Project". Am I correct?
No, not really. You don't "compile" widgets, so Xcode isn't needed. Just use it for actually writing code (I.E. - without an actual project.)

Your widget should be composed of Javascript, images, CSS, ect... Then you take that, put all in a folder, and change the extension name to .wdgt

That is basically it :p
 

mduser63

macrumors 68040
Nov 9, 2004
3,042
31
Salt Lake City, UT
Ok, so I take it I can make widgets in xcode. Which Project do I use because I can't find anything to do with widgets. I'm guessing I use "Empty Project". Am I correct?

No.

I'm a little confused. Everybody in this thread told you to use Dashcode, yet you still think that XCode is the thing to use. XCode and Dashcode are not the same thing. XCode is for application development using C/C++/Objective-C and Java. Dashcode is for widget development using Javascript (primarily anyway).

Go download Dashcode and use that. Forget about XCode.
 

cbrain

macrumors 65816
Original poster
Dec 9, 2006
1,049
0
North-East, UK
I know what xcode is, don't worry. I was just interested to see if there is an xcode template for Dashboard Widgets.

I'll try Dashcode when I get the chance. ;)
 

mduser63

macrumors 68040
Nov 9, 2004
3,042
31
Salt Lake City, UT
I know what xcode is, don't worry. I was just interested to see if there is an xcode template for Dashboard Widgets.

I'll try Dashcode when I get the chance. ;)

As far as I know there is no XCode project template for a widget. I don't see any reason why you couldn't write the JavaScript in XCode's text editor if you really like it, but I don't think it will provide code-completion, syntax highlighting, etc for JavaScript. Dashcode on the other hand is focused on JavaScript.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.