KeyValuePair entity concept and bindings
KeyValuePair entity concept and bindings
- Subject: KeyValuePair entity concept and bindings
- From: Aaron Tuller <email@hidden>
- Date: Sat, 15 Apr 2006 13:31:16 -0700
I'm implementing something similar to the idea Bill Bumgarner described here:
http://www.cocoabuilder.com/archive/message/cocoa/2005/4/30/134246
using a KeyValuePair entity to model user-defined fields.
So in the example of the message, let's say i have a table view of my
Paper objects, and i want to bind a table column to one of the keys
in KeyValuePair, what's the best way to do this?
I was imagining a value transformer, which works, if the binding is
read only, but if it's not how can I push the change back to the
managed object? which key do i want to bind to and then transform,
the NSSet (the to-many relationship of KeyValuePairs) or the
NSManagedObject itself?
I can't add custom setters because the fields are defined by the
user, and I can't override setValue:forKey: to handle these custom
keys because that is not allowed per the NSManagedObject docs.
Here's the very simple model I'm working with now:
Paper <->> KeyValuePair
Thanks for any input.
-aaron
_______________________________________________
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