Comments (5)
Any tool can use NSRunLoop's -currentRunLoop and -runUntilDate to make the async
callbacks work. No user interface is necessary.
All of the GDataObject data classes can be used independently of the
GDataService
classes as well.
waitForTicket: doesn't poll for events; it polls for completion of the ticket.
Events happen asynchronously.
Original comment by gregrobbins
on 13 Jan 2008 at 5:22
from gdata-objectivec-client.
So, please don't deprecate waitForTicket: in future releases, as it is useful.
I however think that it would be better if the GData API could provide
synchronous methods (using NSURLConnection's convenience class method,
sendSynchronousRequest:returningResponse:error:, to load a
URL request synchronously, for example)
This would also make GData/ObjC more inline with the API provided by other
languages (I haven't checked all,
but Python and Java are in this case it seems).
I think it's much easier (and cleaner) to type something like
CalendarFeed resultFeed = service.getFeed(feedUrl, CalendarFeed.class);
or
feed = self.cal_client.GetAllCalendarsFeed()
than what is currently required by GData/ObjC what async download isn't
needed/wanted.
Original comment by [email protected]
on 13 Jan 2008 at 7:08
from gdata-objectivec-client.
I wrote a synchronous wrapper using NSRunLoop. Some convenience methods aren't
necessary, but they would be nice.
Original comment by [email protected]
on 31 Jan 2010 at 2:03
from gdata-objectivec-client.
Hi Lem, Could you provide your code for the sync wrapper?
Original comment by [email protected]
on 8 Jul 2011 at 3:43
from gdata-objectivec-client.
The library does include waitForTicket: and waitForCompletionWithTimeout:
methods for use by unit tests and UI-less tools, so there's no need for a
wrapper.
Synchronous http fetches are sufficient reason for apps to be rejected from
Apple's app stores.
Original comment by [email protected]
on 8 Jul 2011 at 8:33
- Changed state: WontFix
from gdata-objectivec-client.
Related Issues (20)
- GDataXMLNode.m repeat in compile sources HOT 1
- Memory Uses Keep Increasing
- GData does not validate server certificate HOT 1
- Question about which Google API to use
- Lib & samples not compile since last cleanup
- Compatibility with iOS9 HOT 10
- Is this api deprecated for spreadsheet service ? HOT 5
- Gdata and GTLDrive API's don't work well together in IOS HOT 3
- PBXCp Errors -- GTMHTTP files are missing
- PBXcp Error
- ไปป์ วัดสิงห์ HOT 1
- Xcode 7.3b4, non-arc, cannot create __weak reference HOT 8
- Using GData with GTMSessionFetcher failed HOT 1
- Photos upload does not work anymore HOT 4
- Getting No response from server 404 HOT 8
- How could i integrate GTMAppAuth into SDK? HOT 2
- GDataEntryContact returned without birthday
- Photos can't create album HOT 1
- GTMGatherInputStream.h: No such file or directory HOT 2
- [!] Error installing GData Cocoapods HOT 7
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gdata-objectivec-client.