I want to save the filePath of an Ima开发者_StackOverflowgeAttachement in Core Data.
The method addNewImageAttachementWithFilePath creates a new ImageAttachement and registers this at Core Data.
Now I have the problem that the filepath is cut when the filepath of the imageAttachement is set.
- (void) addNewImageAttachmentWithFilePath:(NSString *)filepath
{
ImageAttachment *imageAttachment = [NSEntityDescription insertNewObjectForEntityForName:@"ImageAttachment"
                  inManagedObjectContext:[self managedObjectContext]];  
imageAttachment.filePath = [NSString stringWithString:filepath];   
[self addAttachmentsObject:imageAttachment];  
}
the filepath is correct. When I set the imageAttachement.filePath to the filepath, the rest of the string is cut.
Thanks for your help.
after some rebuilds and praying the assertation is correct for now. Still a bit confused.
 
         
                                         
                                         
                                         
                                        ![Interactive visualization of a graph in python [closed]](https://www.devze.com/res/2023/04-10/09/92d32fe8c0d22fb96bd6f6e8b7d1f457.gif) 
                                         
                                         
                                         
                                         加载中,请稍侯......
 加载中,请稍侯......
      
精彩评论