Vvidget Code Reference Manual

Vvidget Code > Programming

Below is a brief list of Programming sections.

Programming
CocoaDescribes Cocoa programming.
Cocoa TouchDescribes Cocoa Touch (a.k.a.: iOS, iPhone, iPad, iPod Touch) programming.
Plug-inDescribes Plug-in programming.
ScriptDescribes Script programming.
WebDescribes Web programming.

The following describes a few common configurations that are utilized in the programming sections.

Embedded View

In this configuration the full object graph of Vvidget is parsed into the view you specify. This is the most efficient way to program with Vvidget Code and is the only supported way of programming on the iPhone, iPad and iPod touch. The Cocoa Touch Tutorial gives an example of this configuration. The Mac Embedded API section describes the API necessary to setup this configuration on the Mac while the iOS Embedded API section describes the API necessary to setup this configuration on the iPhone, iPad and iPod touch devices. The Simple Line Graph Project has a configuration of this type. The Scatter Graph Project, being an iOS project, also uses this configuration.

Client

When you installed Vvidget Code you also installed the Peer Visual Servers. Those servers take dictionary states and return a graph image to your application, be it a desktop, mobile, web, service, plug-in, demon, etc. application or process. If you use this configuration then your application is dependent upon the Peer Visual Servers that means each computer you deploy to must also install those servers, via the Vvidget User installer package. That may not be a desirable circumstance for your intentions. The Mac Client API section describes the API necessary to setup this configuration on the Mac. The Client configuration runs on the iOS devices, but is not supported publicly so there is no API section regarding the Client configuration on iOS devices. The Simple Line Graph Project has a configuration of this type.

Embedded Server

This is the same as the Client configuration except the server call sequence resides in a thread within the client and the Vvidget Frameworks that define the server functionality are embedded into the app bundle. This makes your application self contained, however it still uses a client server architecture. The Simple Line Graph Project has a configuration of this type.

Web

In this configuration your client application uses a web-compliant view such as WebView accessing WebKit. Your application calls upon a Vvidget graphing server, located perhaps on the same or different computer, to generate its view content. The Web Tutorial shows how this is done for one type of web client.

Script

In this configuration your application interfaces with the vvizard CLI tool and uses stdio to for input and output. This is particularly useful for batch processing jobs.

Please help improve this documentation. If a section is hard to understand, there is a typo, you would like a new section added, or you detect any other improvement that can be made then please email support@vvi.com with your information.




© Copyright 1993-2011 by VVimaging, Inc. (VVI); All Rights Reserved. Please email support@vvi.com with any comments you have concerning this documentation. See Legal for trademark and legal information.