Re: Bindling to array of NSImage
Re: Bindling to array of NSImage
- Subject: Re: Bindling to array of NSImage
- From: "Tom Harrington" <email@hidden>
- Date: Wed, 17 Jan 2007 15:19:00 -0700
On 1/16/07, Tom Harrington <email@hidden> wrote:
On 1/15/07, Scott Stevenson <email@hidden> wrote:
> On Jan 15, 2007, at 5:13 PM, Tom Harrington wrote:
>
> > However the images don't appear in the table. Instead I get console
> > messages reading "NSImageCell's object value must be an NSImage."
> > I've verified that the NSMutableArray contains only NSImage objects.
> >
> > Why don't the images appear, and why do I get this message when it
> > would seem that the value is an NSImage?
>
> The bindings probably aren't quite right. Can you post a sample
> project or a screenshot of the bindings inspector or something?
Well I thought I could, but my test case works. Now I just have to
figure out what's different about it.
It looks like the problem was that I had two table columns pulling
data from different NSArrays without understanding the complexities of
doing so. As I understand it now, the NSTableView's content binding
is created automatically from NSTableColumn bindings, so with multiple
NSArrays wanting to be bound on different columns it's not quite so
simple as it first appears in IB (I didn't realize that the
NSTableView even had a content binding until today).
I guess this could be done with a custom array controller, but as it
happens there's no reason I can't just use one array and simplify
things.
--
Tom Harrington
email@hidden
AIM: atomicbird1
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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