I am having trouble creating and using a custom table view cell.

I added a new cocoa obj-c file MyCell. The MyCell class derives from NSCell and 
does its own drawing (drawInteriorWithFrame:inView:).

I get the following error message at run time.

---
Error invoking selector openAccountWindow on key path selection of object 
<NSTreeController: 0x10015f8e0>[object class: NSMutableArray] (from bound 
object <NSOutlineView: 0x1001563e0> with object ID 100022 in nib named 
MyDocument.nib): [<NSTableColumn 0x10055c460> valueForUndefinedKey:]: this 
class is not key value coding-compliant for the key value.
---

I have implemented the method "value" and setValue: in MyCell. So I am confused 
as to why I see this error.


Note: my program has a tree view which launches a table view in a separate 
window when double clicked. That is why there is a reference to 
NSTreeController above.

If I change MyCell to inherit from NSTextFieldCell I do not get this error. But 
I would like to understand why this error happens when MyCell inherits from 
NSCell.

Thanks
Hrishi

_______________________________________________

Cocoa-dev mailing list ([email protected])

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to