Re: Cocoa Custom NSCell Binding Issue
Re: Cocoa Custom NSCell Binding Issue
- Subject: Re: Cocoa Custom NSCell Binding Issue
- From: Hamish Allan <email@hidden>
- Date: Thu, 19 Jan 2006 02:52:14 +0000
On Thu, 12 Jan 2006 09:35:13 -0600, Sean Willson
<email@hidden> wrote:
On 1/12/06, Hamish Allan <email@hidden> wrote:
It sounds like your setObjectValue: method is being called, but is
your objectValue method? Which way round are they being called?
I have fully implemented the objectValue method conforming to the
interface,
added some NSLog statements in there to see if it ever gets called
and it
does not. Is there something special that I have to do to get this
working.
Try using doubleValue instead. It seems that NSValueBinder (which is
used when you bind to an NSTableColumn's "value" binding) prefers
doubleValue to objectValue (i.e., doesn't bind to objectValue if the
cell responds to doubleValue). If that doesn't work, try floatValue,
intValue, etc.
Best wishes,
Hamish
_______________________________________________
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