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

Table Column NSSegmentedCell - Segment not Selecting


  • Subject: Table Column NSSegmentedCell - Segment not Selecting
  • From: hac <email@hidden>
  • Date: Sun, 10 Aug 2008 23:32:46 -0400

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;

What happens is that [theCell selectedSegment] now returns foo, but it
does not appear selected at all. This seems like a simple thing to do,
but I can't seem to do it. Am I doing something totally wrong?
_______________________________________________

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: Table Column NSSegmentedCell - Segment not Selecting
      • From: hac <email@hidden>
  • Prev by Date: Re: Memory Leaks & Instruments Questions
  • Next by Date: Re: Table Column NSSegmentedCell - Segment not Selecting
  • Previous by thread: Re: addObserver:
  • Next by thread: Re: Table Column NSSegmentedCell - Segment not Selecting
  • Index(es):
    • Date
    • Thread