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

Re: Boggled By Bindings


  • Subject: Re: Boggled By Bindings
  • From: Christian Brunschen <email@hidden>
  • Date: Fri, 1 Oct 2004 11:03:38 +0200 (CEST)



On Sep 30, 2004, at 3:55 PM, Jacob Lukas wrote:

if (keyPath == @"arrangedObjects")

You probably don't want to compare NSStrings using '==', as that only tests for pointer equality, i.e., object _identity_, whereas you want to check for _object equality_. Use

[@"arrangedObjects" isEqual:keyPath];

instead. :)

Best wishes,

// Christian Brunschen

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden
  • Follow-Ups:
    • Re: Boggled By Bindings
      • From: Eric Ocean <email@hidden>
  • Prev by Date: How to scale an NSImage (with smaller memory size)?
  • Next by Date: Re: Boggled By Bindings
  • Previous by thread: How to scale an NSImage (with smaller memory size)?
  • Next by thread: Re: Boggled By Bindings
  • Index(es):
    • Date
    • Thread