Re: core data - beyond the simple example
Re: core data - beyond the simple example
- Subject: Re: core data - beyond the simple example
- From: "I. Savant" <email@hidden>
- Date: Fri, 4 Apr 2008 13:49:15 -0400
> I'll give that a go, thanks. May I ask why NSImageCell?
Actually, that was an incomplete thought. Using an NSImageCell would
negate the need to subclass anything. You could just drag one into the
appropriate column in Interface Builder, then bind the column to your
color property. You can then (in the bindings settings) specify a
(custom made) value transformer to turn the color into a "swatch"
image (fancy term for "solid rectangle of a given color). The image
cell will display the image of the color of the given instance of your
entity.
Of course this doesn't allow editing. The second e-mail I sent that
mentioned NSCollectionView is probably the better way to go, since you
can use the standard NSColorWell control and ignore basically
everything I said ... ;-)
> Well, you have to have goals :-)
Agreed, but airline captains don't learn to fly with passenger jets
for very good reasons ... Best to start with crop dusters until you
master the basics of flight and airplane operations.
--
I.S.
_______________________________________________
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