• 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: Table Column NSSegmentedCell - Segment not Selecting
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Table Column NSSegmentedCell - Segment not Selecting


  • Subject: Re: Table Column NSSegmentedCell - Segment not Selecting
  • From: hac <email@hidden>
  • Date: Mon, 11 Aug 2008 03:24:37 -0400

I've solved my own problem, finally. I have set the data source to
return an NSNumber containing the selected index rather than an actual
cell. I still don't really understand why I do this for only some
types of cells, but this solution works fine.

On Sun, Aug 10, 2008 at 11:32 PM, hac <email@hidden> wrote:
> I have a table column that contains multiple types of cells. One is an
> NSSegmentedCell. To do this, I have tried variations of the following
> code. I use it in the table's data source as well as to override the
> column's dataCellForRow method:
>
> NSSegmentedCell *theCell = [[[NSSegmentedCell alloc] init] autorelease];
> [theCell setSegmentCount:count];
> [theCell setSelectedSegment:foo];
> return theCell;
_______________________________________________

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

References: 
 >Table Column NSSegmentedCell - Segment not Selecting (From: hac <email@hidden>)

  • Prev by Date: Table Column NSSegmentedCell - Segment not Selecting
  • Next by Date: Miniaturizing a window when PowerPoint is in full screen mode
  • Previous by thread: Table Column NSSegmentedCell - Segment not Selecting
  • Next by thread: Miniaturizing a window when PowerPoint is in full screen mode
  • Index(es):
    • Date
    • Thread