Please do not post the same thing multiple times. The board software automatically flags certain posts as needing moderator attention. This happens the most often for new users. I'm pretty sure this is made clear at the time you attempt to post. Posting the same thing over and over again just makes that many more posts the moderators have to weed through later. This makes us sad. Don't make us sad. If your post/thread doesn't appear, just wait a while. Don't post it again. If it hasn't shown up by the next day, then you can try again. I normally go through posts in the mornings, and try to check a few times throughout the day, but I'm not here 24/7. There will typically be a significant delay before posts are approved. Just be patient.
I am using core data and set up a one to many relationship for one of my entities. I have two entities. "Team" and "Player" I am trying to add an NSMutableSet of players to the team.
Below is how I am attempting to add a player to the team.
-(void)addPlayerButton {
[_tempSet addObject:@\"\"];
NSLog(@\"number of cells in _tempSet is:%i\",[_tempSet count]);
There are two things going wrong, one, the _tempSet only adds one object and can not add anymore. and the second crashes when I click save right before the line [self.team addPlayers:_tempSet]; With the error [__NSCFConstantString _isKindOfEntity:]: unrecognized selector sent to instance 0xd7cd8'
I am relatively new to Core Data so please feel free to correct me if I am doing something else wrong...
and the second crashes when I click save right before the line [self.team addPlayers:_tempSet]; With the error [__NSCFConstantString _isKindOfEntity:]: unrecognized selector sent to instance 0xd7cd8'
I assume this is a roundabout way of saying the crash is happening on this line:
player.number = cell.playerNumber.text;
Have you checked to ensure that the type of player.number is the same as the type of cell.playerNumber.text? Furthermore, what is cell? This looks a little suspect.
Replies
- Spam
- Abuse
- Troll
0 • Off Topic Insightful Disagree Dislike Like Awesome