I have a class named as transaction in which one attribute is transactionDate which is of type NSDate.
I am using NSArrayController to display a list of transactions in a table view.
My requirement is-
I want to show date in first row in a text field labeled as "From" and date in last row in a text field labeled as "To".
My questions is-
Can I achieve this via binding in IB? If yes then how?
Thanks,
Miraaj
Yes, you can do this (or something like it), see the @min and @max array operators.
Here's how to do a very simple version of this:
"name"
and "age"
"+"
) and two Labels (change name to maxval
, minval
)Here's the application running (just in interface builder "simulate" mode). To use it, click + then click on the top row of the table and put a name in the first column and an age in the second. Then repeat for a few more people.
This all looks a bit cryptic, but it is sufficient. I added the labels "Max Age" and "Min Age" for clarity in my version.