• 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: Bindings Problem
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Bindings Problem


  • Subject: Re: Bindings Problem
  • From: Jeffrey Oleander <email@hidden>
  • Date: Sun, 17 Jan 2010 09:15:55 -0800 (PST)

> On Sat, 2010/01/16, Ken Thomases <email@hidden> wrote:
>> On 2010 Jan 14, at 17:11, Carter R. Harrison wrote:
>> My model is an NSMutableSet that contains
>> NSMutableDictionaries.
>
> I think this is asking for trouble.  A set of mutable
> dictionaries doesn't make much sense.
>
> ..."Equal" is determined by the -isEqual: and -hash
> methods, not by identity (memory location).

So, it's quite possible that he has a "hash" used by
the NSMutableSet which doesn't depend on the contents
of the mutable dictionary once it's been created.

Still, though I can imagine someone wanting such a
set-up, I have to wonder what purpose it serves,
as opposed, e.g.,
to a mutable dictionary of dictionaries, or
a mutable array of dictionaries.



_______________________________________________

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

  • Follow-Ups:
    • Re: Bindings Problem
      • From: Ken Thomases <email@hidden>
References: 
 >Re: Bindings Problem (From: Ken Thomases <email@hidden>)

  • Prev by Date: Re: Can a model key path binding access a super class property
  • Next by Date: Re: NSTextField sendActionOn:
  • Previous by thread: Re: Bindings Problem
  • Next by thread: Re: Bindings Problem
  • Index(es):
    • Date
    • Thread