From: RD <did...@ma...> - 2007-08-14 07:14:16
|
Hi, I'm trying to save data into a coredata managed object the problem I have is when I send the ruby string using setValueForKey, it truncates the string if it contains characters such as . or ? I'm not sure why it only accepts certain characters Here is my example If you uncomment the example line, the value that is saved is http://www. What am I doing wrong ? # create the item new_item = OSX::NSEntityDescription.insertNewObjectForEntityForName_inManagedObject Context( "watchedItem", context ) # set its values new_item.setValue_forKey( item.id, "ebayID") new_item.setValue_forKey( item.title, "title" ) new_item.setValue_forKey( item.url, "url" ) # new_item.setValue_forKey( 'http://www. 123456789012345678901234567890123456789012345678901234567890', "url" ) new_item.setValue_forKey( item.price, "price" ) |