objective c - Creating Dashbord Widgets (using XCode?) based on iPhone app -
some time ago developed app client. it's simple calculator. because asked me if possible create dashboard widget same functionality based on iphone app.
i have never before developed widget, know html + css based, raises few questions me:
- is using html + css way create widget?
- if no:
- can xcode used create widget?
- is possible wrap cocoa applications widget?
- if yes, there convenience tools create cocoa-touch-like look, feel , functionality (especially of tableviews)?
i guess superquestion above questions be: there chance can reuse parts of existing iphone project or need create widget scratch?
thanks alot!
in /developer/applications/
directory, find *dashcode might develop dashboard widget.
yes it's html+css. can add cocoa plug-in, described here. however, cocoa plug-in can't draw using cocoa methods onto webview of widget.
you can create webkit plugin described here, can draw using cocoa methods onto webview of widget. can package them inside widget.
however, cocoa methods can use appkit methods, not uikit methods. specifically, don't have uitableview
, have nstableview
rather different beast.
the logic parts using foundation objects can reused, guess it's big rewrite. might easier , less time-consuming rewrite in terms of html + javascript + css.
i hope apple add ios emulation layer in os x 10.7, can load iphone app dashboard. awesome, if apple can find way emulate touch events nicely...
Comments
Post a Comment