• 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: m <email@hidden>
  • Date: Tue, 2 Nov 2004 00:46:43 -0800


On Nov 2, 2004, at 12:29 AM, 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?

do this (typed in Mail, may not compile, etc):

NSArray* selectedCells = [myMatrixOutlet  selectedCells];
NSEnumerator* enumerator = [selectedCells objectEnumerator];
while (NSCell* aCell = [enumerator nextObject])
{
	/* code to act on each cell as it is returned */
}


_murat

_______________________________________________
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: 
 >How do I get the selected cells? (From: "Peter Karlsson" <email@hidden>)

  • Prev by Date: How do I get the selected cells?
  • Next by Date: [Solved]RE: How do I get the selected cells?
  • Previous by thread: How do I get the selected cells?
  • Next by thread: Re: How do I get the selected cells?
  • Index(es):
    • Date
    • Thread