• 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: Manually update a binding's display pattern
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Manually update a binding's display pattern


  • Subject: Re: Manually update a binding's display pattern
  • From: Scott Anguish <email@hidden>
  • Date: Tue, 8 Jun 2004 00:30:09 -0400

On Jun 7, 2004, at 4:55 PM, Brad wrote:

Does anyone know if it's possible to change display pattern of a binding? The only way I've found to do it is to reset the entire binding (- bind:toObject:withKeyPath:options:). It works but is causing a slowdown since it temporarily blocks.

currently that's the only way. if you need more flexibility, please file a bug.

Or maybe there's a better way for me to achieve what I'm trying to do. I have a text field that has 2 keys bound to it by displayPatternValues. I want the information displayed slightly different depending on the app's current state. Right now I have a method that gets called at the state change that resets the binding for the appropriate display pattern.

your model could implement a method that returns the correctly joined string, and then set that key as being dependent on the two others.

that might be the best solution if you you're updating it frequently.
_______________________________________________
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: Manually update a binding's display pattern
      • From: Brad <email@hidden>
References: 
 >Manually update a binding's display pattern (From: Brad <email@hidden>)

  • Prev by Date: Re: Java or C++ for cross-platform Cocoa/.NET?
  • Next by Date: Re: Millions of cascading menus?
  • Previous by thread: Manually update a binding's display pattern
  • Next by thread: Re: Manually update a binding's display pattern
  • Index(es):
    • Date
    • Thread