Re: Changing properties inside a relationship entity

2008-03-22 Thread Andrew Merenbach
Hi, Malcom, Note that in such cases, it is often easier to write: NSString *tmp = [[[view textStorage] string] copy]; or, if your new string should be mutable: NSMutableString *tmp = [[[view textStorage] string] mutableCopy]; Cheers, Andrew On Mar 22, 2008, at 11:45

Re: Changing properties inside a relationship entity

2008-03-22 Thread malcom
Ok I've just found a solution. Make a new NSString object with a copy of the textview string and pass it. NSString *tmp = [[NSString alloc] initWithString: [[view textStorage] string]]; ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do n

Re: Changing properties inside a relationship entity

2008-03-22 Thread malcom
I've noticed a strange thing. If I take my NSString from an NSTextField it seems to works, while if I use textStorage] string] from an NSTextView it simply put an empty string or still remain the old value into the NSManagedObject (however with GDB the textStorage] string] return the correct value)

Changing properties inside a relationship entity

2008-03-22 Thread malcom
Hello, I'm working with Core-Data. I've a simple cd structure (look here: ) with two entities: Draft and Data. Draft contains some infos about the draft itself while the data entity contains the body of the draft (I've used it in order to avoid to load the entire article while I need to put some ba