Thursday, May 26, 2011

iPhone oData Client, Part 2

In Part 1 of this series we set up an XCode project to use the Objective-C oData client and pulled some rows into a grid. In Part 2 we will move our service query into a background thread to keep our UI responsive. In addition, we will add some visual feedback and “pull to refresh” functionality.

refresh

You can view the screencast here (or right-click and download) (61MB).

Resources

Tuesday, May 17, 2011

Getting Started with iOS Development and Advantage

The Advantage Web API makes it easy to expose your Advantage databases via the oData protocol. The oData protocol includes a variety of clients, including an Objective-C client for iOS devices (iPhone, iPod Touch, iPad, etc.).

I’ve posted an introduction to using the Objective-C oData client with Advantage. This 20 minute video shows how to download the client, configure a new XCode project, and display the contents of a table. You can stream the presentation (or right-click and download) here.

While this presentation is targeted towards Advantage developers getting started with iOS development, aside from the first 3 minutes the rest of the presentation is provider agnostic and applies to all oData services, not just those provided by the Advantage Database Server.

Update: If you’d like to use SSL, I’ve submitted a patch to the oData client you can download and use (as opposed to disabling SSL in the web api conf file). The patch provides a new switch for odatagen (/trustServer=1) and a new trustServer parameter when initializing your WindowsCredential object:

WindowsCredential *cred = 
  [[WindowsCredential alloc] initWithUserName:@"adssys" password:@"" trustServer:true];

See http://odataobjc.codeplex.com/SourceControl/list/patches

Resources