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, 12 Jan 2006 11:18:41 +0000
On 12 Jan 2006, at 02:32, email@hidden wrote:
1. When each cell is getting set up it first gets passed a value of
null to
setObjectValue, then I see my getter method on Object A get called,
and
finally the setObjectValue with the NSNumber from the rating method
is set
on the NSCell. So why does it pass null in first? any ideas?
I've seen this bug in NSOutlineView bindings as well. It should be
fine to work around it by ignoring nil.
2. When I change the rating via the cell it reverts back to what it
was set
to before that. I have tried notifying the "objectValue" binding
that it
changed as stated above, there is no action/target set but I have
that code
in place when there is one to notify that.
It sounds like your setObjectValue: method is being called, but is
your objectValue method? Which way round are they being called?
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