• 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: The problem with bindings
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: The problem with bindings


  • Subject: Re: The problem with bindings
  • From: Allan Odgaard <email@hidden>
  • Date: Sat, 31 Jul 2004 07:20:45 +0200

On 31. Jul 2004, at 1:34, Steve Sims wrote:

Let's take a couple of real examples here to illustrate what I'm after.
[...]

Okay, so you only want the cascade when explicitly doing:
[fontParams setValue:newWidth forKeyPath:@"size.width"];

But not when doing:
[[fontParams valueForKey:@"size"] setValue:newWidth forKey:@"width"];

I am not sure if you can always enforce the former to happen. For example with the views which manage multiple values (menus/comboboxes, tables and the matrix), there is both a content and a contentValues binding, and I am quite sure the view will do something similar to the latter line above -- though probably these views could be changed to manually ensure that change notifications are sent for each component in the key paths.

[...] Right now my UI works by binding to a derived value within my data model, and I use manual observer notification in the setter methods of the dependent keys.

Are you aware of setKeys:triggerChangeNotificationsForDependentKey:? That should probably remove your need for manual observers.
--
http://macromates.com/
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.


  • Follow-Ups:
    • Re: The problem with bindings
      • From: Steve Sims <email@hidden>
References: 
 >The problem with bindings (From: Drew McCormack <email@hidden>)
 >Re: The problem with bindings (From: Steve Sims <email@hidden>)
 >Re: The problem with bindings (From: Gwynne <email@hidden>)
 >Re: The problem with bindings (From: Steve Sims <email@hidden>)
 >Re: The problem with bindings (From: Allan Odgaard <email@hidden>)
 >Re: The problem with bindings (From: Steve Sims <email@hidden>)

  • Prev by Date: Re: DVDPlayback.framework will not initialize under debugger
  • Next by Date: Re: The problem with bindings
  • Previous by thread: Re: The problem with bindings
  • Next by thread: Re: The problem with bindings
  • Index(es):
    • Date
    • Thread