• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Strange _originalSnapshot error (one more thing!)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Strange _originalSnapshot error (From: Andrew Merenbach <email@hidden>)

  • Prev by Date: Re: fontItalic Binding not working?
  • Next by Date: Re: CoverFlow on 10.4
  • Previous by thread: Strange _originalSnapshot error
  • Next by thread: Re: Strange _originalSnapshot error
  • Index(es):
    • Date
    • Thread