• 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
How to mix Check boxes and Radio buttons in NSOutlineView?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

How to mix Check boxes and Radio buttons in NSOutlineView?


  • Subject: How to mix Check boxes and Radio buttons in NSOutlineView?
  • From: John <email@hidden>
  • Date: Fri, 13 Jun 2008 12:56:56 -0700 (PDT)

Hi,
I have a two level hierarchy displayed in NSOutlineView.
Currently all items have check boxes, but I have a request
to replace check boxes by radio buttons in some branches
of the hierarchy, where only one item can be checked at a time.
Other branches should keep check boxes, which allow checking
any number of items.

I tried to call [cell setButtonType:NSRadioButton];
in - (void)outlineView:(NSOutlineView *)outlineView willDisplayCell:(id)cell forTableColumn:(NSTableColumn *)tableColumn item:(id)item
but that had no effect - check boxes are still displayed.

What else can I do?

Thank you
Bill



_______________________________________________

Cocoa-dev mailing list (email@hidden)

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:

This email sent to email@hidden

  • Follow-Ups:
    • Re: How to mix Check boxes and Radio buttons in NSOutlineView?
      • From: "I. Savant" <email@hidden>
  • Prev by Date: duplicating views
  • Next by Date: Re: duplicating views
  • Previous by thread: Re: duplicating views
  • Next by thread: Re: How to mix Check boxes and Radio buttons in NSOutlineView?
  • Index(es):
    • Date
    • Thread