• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Bindling to array of NSImage
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Bindling to array of NSImage
      • From: Scott Stevenson <email@hidden>
References: 
 >Bindling to array of NSImage (From: "Tom Harrington" <email@hidden>)
 >Re: Bindling to array of NSImage (From: Scott Stevenson <email@hidden>)
 >Re: Bindling to array of NSImage (From: "Tom Harrington" <email@hidden>)

  • Prev by Date: Re: setKeys + array operators = slowdown
  • Next by Date: Re: Preventing NSSlider bar from drawing
  • Previous by thread: Re: Bindling to array of NSImage
  • Next by thread: Re: Bindling to array of NSImage
  • Index(es):
    • Date
    • Thread