Strange _originalSnapshot error
Strange _originalSnapshot error
- Subject: Strange _originalSnapshot error
- From: Andrew Merenbach <email@hidden>
- Date: Sat, 18 Aug 2007 07:56:52 -0700
Hi, all,
I have an array controller that manages a log, and each time through
my processing loop, started by the user, I want it to clear the
previous entries. I do this with the following code:
- (void)clearRolls {
unsigned count = [[rollArrayController arrangedObjects] count];
if (count > 0) {
NSMutableIndexSet *indexSet = [[NSMutableIndexSet alloc]
initWithIndexesInRange:NSMakeRange(0, count)];
[rollArrayController removeObjectsAtArrangedObjectIndexes:indexSet];
[indexSet release];
}
}
Then in a later method I add my new items.
The first time through, there's no trouble--the conditional never
executes its contents, since of course there's nothing in -
arrangedObjects. But the second, and other subsequent times through,
I get the following errors:
2007-08-18 07:53:52.183 DiceX[13569] *** -[DXRollResult
_originalSnapshot]: selector not recognized [self = 0x54d0250]
2007-08-18 07:53:52.184 DiceX[13569] *** NSThread: ignoring exception
'*** -[DXRollResult _originalSnapshot]: selector not recognized [self
= 0x54d0250]' that raised during delayed perform of target 0x375700
and selector 'clearRolls'
I searched the 'net for any mention of "_originalSnapshot", but came
up blank. Does anyone have an idea of what's going on?
Cheers,
Andrew
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden