Re: Core Data, Bindings, and Binary Data
Re: Core Data, Bindings, and Binary Data
- Subject: Re: Core Data, Bindings, and Binary Data
- From: SA Dev <email@hidden>
- Date: Wed, 15 Jun 2005 16:55:21 -0400
August:
The Core Data Programming Guide has an example for this exact
situation (archiving / unarchiving a color as data). The link is
below. Look for the section called "Non-Standard Attributes".
http://developer.apple.com/documentation/Cocoa/Conceptual/CoreData/
index.html
On Jun 15, 2005, at 4: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:
40silentalcove.net
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