PDA

View Full Version : Do I use xcode to build widgets?




cbrain
Dec 25, 2006, 03:18 PM
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
Dec 25, 2006, 03:28 PM
thanks for asking this, I meant to for a long time and kept forgetting.

iMeowbot
Dec 25, 2006, 03:39 PM
There are some widget examples that come with Xcode, and information on how to make them (http://developer.apple.com/macosx/dashboard.html) over at Apple.

If you sign up for a free Apple Developer Connection (http://connect.apple.com/) account, you could also download a copy of Dashcode, a development environment for making simple widgets. You don't actually need this tool, but it could be a big help if you aren't sure where to begin.

tominated
Dec 25, 2006, 04:40 PM
get dashcode by following iMeowBot's instructions. it is alot easier than coding them manually

Aniej
Dec 25, 2006, 04:42 PM
Thanks I am an ADC member so I will go grab that now.

cbrain
Dec 25, 2006, 05:04 PM
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
Dec 25, 2006, 10:51 PM
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
Dec 26, 2006, 06:58 AM
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
Dec 26, 2006, 11:35 AM
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
Dec 26, 2006, 12:48 PM
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
Dec 26, 2006, 12:53 PM
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
Dec 26, 2006, 12:57 PM
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.