• 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: Compute value in IB using bindings
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Compute value in IB using bindings


  • Subject: Re: Compute value in IB using bindings
  • From: Ricky Sharp <email@hidden>
  • Date: Wed, 14 Sep 2005 18:14:19 -0500


On Sep 14, 2005, at 2:06 PM, Robert Cerny wrote:

Well,
I simply have startDate, endDate and lenght and wanted set length to the difference between endDate-startDate

You could accomplish that by adding a length accessor which is dependent upon startDate and endDate.


Your UI could, for example, have 3 edit fields. First two are editable and bound to startDate and endDate respectively. Third could be read-only and bound to length.

True, you are adding some code here, so it's not the pure "IB only" solution you're after. But, it's only a trivial amount of code.

___________________________________________________________
Ricky A. Sharp         mailto:email@hidden
Instant Interactive(tm)   http://www.instantinteractive.com

_______________________________________________
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


References: 
 >Compute value in IB using bindings (From: Robert Cerny <email@hidden>)
 >Re: Compute value in IB using bindings (From: Ricky Sharp <email@hidden>)
 >Re: Compute value in IB using bindings (From: Robert Cerny <email@hidden>)

  • Prev by Date: Retain cycle in NIB ?
  • Next by Date: Re: Programatically Change the Application Title Menu Item
  • Previous by thread: Re: Compute value in IB using bindings
  • Next by thread: Manual bindings without key path?
  • Index(es):
    • Date
    • Thread