Cocoa bindings problem
Cocoa bindings problem
- Subject: Cocoa bindings problem
- From: Squ Aire <email@hidden>
- Date: Fri, 30 Oct 2009 01:44:50 +0000
- Importance: Normal
Let's say I have a table view bound to an array controller which in turn is bound to a MOC... you all know how it works.
The table view has two columns: "Name" and "Last Login Date". The thing is that in underneath in the model, the "last login date" is stored with both date and time information. However, the table view column formats it such that only the date is shown (because usually when browsing the names I have no interest in what time the last login happened).
My problem is that when I bind a some text field to the "last login date" column, and choose multiple rows with same date (but NOT THE SAME TIME), I get "Multiple Values". How can I make it just show the date without time in the text field? Can bindings accommodate me in some way to accomplish this?
I really don't want to get rid of the time in underlying data because, hey, data is data and who knows, I might be interested in it down the road later on.
_________________________________________________________________
Windows Live: Make it easier for your friends to see what you’re up to on Facebook.
http://www.microsoft.com/middleeast/windows/windowslive/see-it-in-action/social-network-basics.aspx?ocid=PID23461::T:WLMTAGL:ON:WL:en-xm:SI_SB_2:092009_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden