From: RD <di...@cl...> - 2007-08-14 09:17:04
|
ok scrap that question, it was working. IB had set the field to wrap and was truncating the characters doh On 14 Aug 2007, at 08:14, RD wrote: > 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_inManagedObje > ctContext( "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" ) > > ---------------------------------------------------------------------- > --- > This SF.net email is sponsored by: Splunk Inc. > Still grepping through log files to find problems? Stop. > Now Search log events and configuration files using AJAX and a > browser. > Download your FREE copy of Splunk now >> http://get.splunk.com/ > _______________________________________________ > Rubycocoa-talk mailing list > Rub...@li... > https://lists.sourceforge.net/lists/listinfo/rubycocoa-talk |