• 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: How do I get the selected cells?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How do I get the selected cells?


  • Subject: Re: How do I get the selected cells?
  • From: Graham cox <email@hidden>
  • Date: Wed, 3 Nov 2004 09:18:44 +1100

What am I supposed to do here to get the selected cells?


int attr = [cell cellAttribute:NSCellHighlighted];


That's assuming you want to know if the cell is highlighted. There are a number of other cell attributes that might be of interest.


have you got the documentation installed? I haven't done this cell stuff myself but managed to look this up within Xcode in a couple of minutes. Check that when you open "Show Documentation Window" in th Help menu you get the docs showing up. Also, use API search mode where possible - I just typed in NSCell and then browsed through the methods. The Full text Search is quite a bit slower and often doesn't return very relevant results, I find.



On 02/11/2004, at 7:29 PM, Peter Karlsson wrote:

Dear list!

My NSMatrix have 8 cells from left to right. I am trying to get the
selected cells. Here is my code so far:

NSArray *cells = [myMatrixOutlet cells];
NSEnumerator *cellEnum = [cells objectEnumerator];
NSCell *cell;
while (cell = [cellEnum nextObject])
{

What am I supposed to do here to get the selected cells?

}

Best regards Peter

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
email@hidden


This email sent to email@hidden


_______________________________________________ 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
  • Follow-Ups:
    • Re: How do I get the selected cells?
      • From: mmalcolm crawford <email@hidden>
References: 
 >How do I get the selected cells? (From: "Peter Karlsson" <email@hidden>)

  • Prev by Date: Re: A couple controller/nib questions
  • Next by Date: Re: How do I get the selected cells?
  • Previous by thread: Re: How do I get the selected cells?
  • Next by thread: Re: How do I get the selected cells?
  • Index(es):
    • Date
    • Thread