Google Drive API now available to replace the Documents List API

117 views
Skip to first unread message

Greg Robbins

unread,
Jun 27, 2012, 2:56:04 PM6/27/12
to gdata-objec...@googlegroups.com
The Google Drive API is now available for Objective-C apps, superseding the Documents List API.

http://googledevelopers.blogspot.com/2012/06/announcing-version-2-of-google-drive.html


The Drive API is JSON-based, and is more efficient and easier to use.  If your application is using the older XML-based Documents List API, we encourage you to switch over to the new library and API.

The Objective-C library is available at https://code.google.com/p/google-api-objectivec-client/

olof

unread,
Jun 28, 2012, 8:29:38 AM6/28/12
to gdata-objec...@googlegroups.com

I have problems compiling the DriveSample example. I get a lot of "Instance method '-xxx' not found" errors. I'm using XCode 4.2 (Snow leopard) and LLVM 3.0, googling around it seems that LLVM 3.1 doesnt care about these warnings in contrast to 3.0.

XCode 4.2 is the latest version thats available to Snow Leopard, so Im a bit stuck with it.

regards

 Olof

Greg Robbins

unread,
Jun 28, 2012, 10:38:52 AM6/28/12
to gdata-objec...@googlegroups.com
It's easy to add forward declarations where the old compiler requires them, but it is quickly becoming impractical to develop on Snow Leopard as current tools require Lion.

olof

unread,
Jun 28, 2012, 11:18:00 AM6/28/12
to gdata-objec...@googlegroups.com

It is indeed, I probably have to abandon SL at some point. I added the declarations, and it compiles fine.

I have some crashes when I run it tough. It crashes (EXC_BAD_ACESS) at

[DrivesSampleWindowController updateThumbnailImage] 
at line:
if (!GTL_AreEqualOrBothNil(gDisplayedURLStr, thumbnailURLStr)) "

This seems to happen when I select a file in the list, that is not a Google Docs document, but an uploaded file. (Like a .txt file)

Greg Robbins

unread,
Jun 28, 2012, 12:41:00 PM6/28/12
to gdata-objec...@googlegroups.com
There was a memory management mistake in the DriveSample application. I have checked in a fix now, so please update your sources. Thank you for pointing out the problem.

Also, please use a new thread subject when posting messages to the group on a new issue, since that keeps the mail archives more useful for other developers.

There is a separate discussion list for the new JSON-based library. You can join that list at

Olof Sjölund

unread,
Jun 28, 2012, 5:48:39 PM6/28/12
to gdata-objec...@googlegroups.com
Alright. Thank you!


--
You received this message because you are subscribed to the Google Groups "Google Data APIs Objective-C Client Library Discussion" group.
To post to this group, send email to gdata-objec...@googlegroups.com.
To unsubscribe from this group, send email to gdata-objectivec-...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/gdata-objectivec-client?hl=en.



--
/Olof
Reply all
Reply to author
Forward
0 new messages