Re: NSSet + NSUndoManager / Core Data = ?
Re: NSSet + NSUndoManager / Core Data = ?
- Subject: Re: NSSet + NSUndoManager / Core Data = ?
- From: Graham Cox <email@hidden>
- Date: Sat, 05 Apr 2014 13:50:02 +1100
On 5 Apr 2014, at 12:40 am, Keary Suska <email@hidden> wrote:
> I came across a situation of using undo with sets and it seemed like I needed some extra tests to implement undo properly.
Maybe a set isn't the right model? Either an object is a member or it isn't - Undo should maintain that correctly on add/remove, but if you're having to do extra tests, then it sounds like you might want to look as a counted set (NSCountedSet) instead?
Note sure what Core Data does to complicate or simplify that...
--Graham
_______________________________________________
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