litehelpers / Cordova-SQLitePlugin-legacy-iOS-broken-bug666

Cordova/PhoneGap SQLitePlugin for iOS as of September 2013, no longer supported - BROKEN due to BUG litehelpers/Cordova-sqlite-storage#666
89 stars 30 forks source link

instance method '-cdvjk_JSONString' not found #40

Closed nadl84 closed 11 years ago

nadl84 commented 11 years ago

Hi,

I'm getting this warning when compiling:

SQLitePlugin.m:231:43: warning: instance method '-cdvjk_JSONString' not found (return type defaults to 'id') [self respond:callback withString:[resultSet cdvjk_JSONString] withType:@"success"];

Any ideas ?

brodybits commented 11 years ago

Which version of Cordova are you using? The patch to use cdvjk_JSONString only applies to the version from GIT until Cordova 2.1 is released.

On Thu, Aug 23, 2012 at 4:34 PM, elasrinadir notifications@github.comwrote:

Hi,

I'm getting this warning when compiling:

SQLitePlugin.m:231:43: warning: instance method '-cdvjk_JSONString' not found (return type defaults to 'id') [self respond:callback withString:[resultSet cdvjk_JSONString] withType:@ "success"];

Any ideas ?

— Reply to this email directly or view it on GitHubhttps://github.com/chbrody/Cordova-SQLitePlugin/issues/40.

nadl84 commented 11 years ago

I'm using Cordova 2.0. Do I have to keep JSONString instead of cdvjk_JSONString ?

brodybits commented 11 years ago

I'm using Cordova 2.0. Do I have to keep JSONString instead of cdvjk_JSONString ? Yes.

nadl84 commented 11 years ago

No more warnings. Thanks a LOT! :-)

philmitchell commented 11 years ago

In a similar vein, I'm getting: Instance method '-JSONString' not found (return type defaults to 'id') I'm using Cordova 2.1 incubating src, because I need the fixes for IOS6. Should I add the cdvjk_ prefix?

brodybits commented 11 years ago

yes

On Fri, Sep 14, 2012 at 11:04 PM, Phil Mitchell notifications@github.comwrote:

In a similar vein, I'm getting: Instance method '-JSONString' not found (return type defaults to 'id') I'm using Cordova 2.1 incubating src, because I need the fixes for IOS6. Should I add the cdvjk_ prefix?

— Reply to this email directly or view it on GitHubhttps://github.com/chbrody/Cordova-SQLitePlugin/issues/40#issuecomment-8575575.

philmitchell commented 11 years ago

Got it ... Thanks, Chris!!

brodybits commented 11 years ago

I'm using Cordova 2.1 incubating src, because I need the fixes for IOS6. Should I add the cdvjk_ prefix?

Cordova official release is now 2.1, this will be standard in the source.

Chris

brodybits commented 11 years ago

Fixed and closed.

hainc08 commented 10 years ago

change [NSString jsStatement = [NSString stringWithFormat:@"window.plugins.pushNotification.notificationCallback(%@);", [userInfo cdvjk_JSONString]];] --> NSString jsStatement = [NSString stringWithFormat:@"window.plugins.pushNotification.notificationCallback(%@);", [userInfo JSONString]];