• 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: NSSet + NSUndoManager / Core Data = ?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >NSSet + NSUndoManager / Core Data = ? (From: Keary Suska <email@hidden>)

  • Prev by Date: Re: Retain count in non ARC
  • Next by Date: Re: Autolayoout on scaled views
  • Previous by thread: Re: NSSet + NSUndoManager / Core Data = ?
  • Next by thread: Autolayoout on scaled views
  • Index(es):
    • Date
    • Thread