From: Rupert B. <rup...@fr...> - 2005-12-05 22:53:29
|
Jonathan, Le 11 nov. 05 =C3=A0 12:51, Jonathan Paisley a =C3=A9crit : > On 11 Nov 2005, at 10:19, Rupert BARROW wrote: > >> if ([record valueForKey:@"changed"] =3D=3D @"YES") = // this crashes > > This is unrelated to the main issue, but note that comparison =20 > doesn't make sense. > > You need to compare NSStrings with isEqualToString: You're right again ! Funnily enough, I am fiddling with Apple's SyncServices tutorial : =20 when their Objective-C example sets @"YES", the =3D=3D test works well, =20= whereas when I set "YES" from Ruby, the =3D=3D test fails; however the =20= isEqualString succeeds ! I hope to post Ruby-fied samples soon. Ciao, Rup PS: pardon all these "stupid" questions : patching pieces of ObjC and =20= Ruby together seems to be one of the causes of my difficulties, the =20 other being my inexperience in these matters. However I am making =20 progress, and the result is looking good. One side effect of all this experimentation is that I have totally =20 thrashed my Address Book and phone contacts, as well as =20 SyncroSpector : names have disappeared, only company names appear (I =20 think !) Rather funny, actually, although I am still stuck with =20 usuless contact in my phone :-)(( Restoring backups of Address Book =20= is of no avail, and deleting ~/Library...SyncServices stuff does =20 absolutely nothing to tickle my PB. Still trying ... |