Re: Core Data, Bindings, and Binary Data
Re: Core Data, Bindings, and Binary Data
- Subject: Re: Core Data, Bindings, and Binary Data
- From: Adam Swift <email@hidden>
- Date: Wed, 15 Jun 2005 13:56:32 -0700
I just tried this out with a trivial app example. Works perfectly
for displaying and editing the color attribute with no subclassing or
custom code.
The only binding for the color well is a 'value' binding:
Bind to: My Array Controller
Controller Key: selection
Model Key Path: color (this is my binary attribute name)
Value Transformer:
NSUnarchiveFromData
- adam
On Jun 15, 2005, at 1:29 PM, August Trometer wrote:
I'm trying to create a basic Core Data app and I want to be able to
store an NSColor as one of the Attributes. I have chosen "Binary
data" as the data Type.
In IB, I've supplied all the appropriate bindings for my form. I've
added an NSColorWell and bound it's value to the color Attribute
with an NSUnarchiveFromData as the transformer.
This all works fine getting data _out_ of the context. However,
changing the color of an existing object does nothing. I'm assuming
that, at some point, I need to take the value from the NSColorWell,
archive it, then update the value of the Entity.
Is there a way that I'm missing that allows this without subsclassing?
Thanks!
August
_______________________________________________
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
_______________________________________________
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