azubala / gdata-objectivec-client

Automatically exported from code.google.com/p/gdata-objectivec-client
Apache License 2.0
0 stars 0 forks source link

Using delegates with more than 3 parameters #103

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
This is not a defect, is an inprovement for more extensible callbacks in gdata 
calls

What steps will reproduce the problem?

1. Create delegate (callback) for any ticket with more than 3 parameters 
(ticket, feed, error and one more)
2.  Create a ticket for use this callback
3. framework calls Debug() and stops the execution with error "selector 
"<yourmethod>" should have 3 arguments

What is the expected output? What do you see instead?

Normal call to my method without errors

Please use labels and text to provide additional information.

Suggested patch:

File GTMHTTPFetcher.m (line 1556)

Replace the "!=" (not equal) for ">" (greater than)

 1556    //if (argCount != [sig numberOfArguments]) {
 1557    if (argCount > [sig numberOfArguments]) {

Original issue reported on code.google.com by caragot on 20 Aug 2011 at 12:42

GoogleCodeExporter commented 9 years ago
The library will never send greater or fewer than three parameters to the 
callback. The assertion catches mistakes in code that is using the library.

Original comment by g...@coldnose.net on 20 Aug 2011 at 11:15

GoogleCodeExporter commented 9 years ago

Original comment by grobb...@google.com on 23 Aug 2011 at 1:09