Re: Strange _originalSnapshot error (one more thing!)
Re: Strange _originalSnapshot error (one more thing!)
- Subject: Re: Strange _originalSnapshot error (one more thing!)
- From: Andrew Merenbach <email@hidden>
- Date: Sat, 18 Aug 2007 08:02:32 -0700
Oh, I also should mention that the line that seems to be causing the
exception is the one containing -removeObjectsAtArrangedObjectIndexes:.
And the "mutable" bit was a typo.
Cheers,
Andrew
On Aug 18, 2007, at 7:56 AM, Andrew Merenbach wrote:
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
_______________________________________________
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