Re: Custom radio button failure with bindings
Re: Custom radio button failure with bindings
- Subject: Re: Custom radio button failure with bindings
- From: Ricky Sharp <email@hidden>
- Date: Tue, 22 Feb 2005 14:37:30 -0600
On Tuesday, February 22, 2005, at 12:48PM, Ricky Sharp <email@hidden> wrote:
>Is the solution to manually do things? For example, wrapping selectCell like this:
>
>[self willChangeValueForKey:@"selectedIndex"];
>[self selectCell:theCell];
>[self didChangeValueForKey:@"selectedIndex"];
>
>This seems wrong to me though.
This is very wrong, and of course it doesn't work :P
Anyhow, I think I'm on to something. I'm also experiencing problems with binding custom checkboxes (IIButton). Attemping to bind value did nothing.
That, along with the radio button issues seem to stem from IIButtonCell. It appears that the value of the cell isn't being set. What I mean by this is that I use the inherited setState: and state accessors to set the button cell's state (e.g. NSOnState represents 'checked'). I believe I need to ultimately set the cell's value property as well. This should then cause anything observing the value property to be updated.
I'll be able to work on this later today and will post back the results. I'm just happy that bindings, for the most part, are working a-ok with my custom widgets.
--
Rick Sharp
Instant Interactive(tm)
_______________________________________________
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