• 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
Bindings and a custom NSCell in a NSTableView
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Bindings and a custom NSCell in a NSTableView


  • Subject: Bindings and a custom NSCell in a NSTableView
  • From: Felix Franz <email@hidden>
  • Date: Mon, 25 Apr 2005 17:46:20 +0200

Hi all,

I created a subclass of NSButtonCell and exposed a new binding
"valuePath" which sets the NSButtonCell-image using a filesystem path.
Now I set this cell using setDataCell: in a NSTableColumn.

Now I wanted to bind this column to an ArrayController:

[tableColumn bind: @"valuePath" toObject: arrayController withKeyPath: @"arrangedObjects.iconPath" options: nil];

but all I got was:

[<NSTableColumn 0x11c89b0> valueForUndefinedKey:]: this class is not key value coding-compliant for the key valuePath.

By the way this code "binds" fine if I use a NSImageCell instead of my
own NSButtonCell-subclass.

I thought that a NSTableColumn first searches its own bindings and after
that the bindings of its data cell. (For example IB shows the bindings
of NSImageCell in a tablecolumn using an NSImageCell as data cell).

Finally my question: Is it possible to expose new bindings in an NSCell
subclass and use them in a NSTableColumn. If so, how?


Thanks in advance, and have a nice day


felix




_______________________________________________
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


  • Prev by Date: Re: objective-C++ newbie question
  • Next by Date: Re: Calling original method implementation from category
  • Previous by thread: Re: objective-C++ newbie question
  • Next by thread: NSColor question
  • Index(es):
    • Date
    • Thread