• 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
Re: Custom radio button failure with bindings
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >Custom radio button failure with bindings (From: Ricky Sharp <email@hidden>)

  • Prev by Date: custom view resizing issue on custom IBPalette
  • Next by Date: Re: Works on 10.3, not 10.2
  • Previous by thread: Custom radio button failure with bindings
  • Next by thread: Re: Custom radio button failure with bindings [Solved]
  • Index(es):
    • Date
    • Thread