From: Jonathan P. <jp...@dc...> - 2005-12-06 13:14:36
|
On 5 Dec 2005, at 22:53, Rupert BARROW wrote: > Funnily enough, I am fiddling with Apple's SyncServices tutorial : > when their Objective-C example sets @"YES", the == test works well, > whereas when I set "YES" from Ruby, the == test fails; however the > isEqualString succeeds ! The string literal @"YES" in the Objective C source will get interned by the linker (and so is the very same object). The conversion from a ruby string "YES" to Objective C involves the creation of a new NSString object, so it'll never match up. |