• 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: identify a specific NSImagecell
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: identify a specific NSImagecell


  • Subject: Re: identify a specific NSImagecell
  • From: Francesca <email@hidden>
  • Date: Wed, 19 Apr 2006 17:40:05 +0200


It sounds like you wanted to use [sender selectedTag] and use that as the array index. But you can't, because you can't set tags of image cells. So instead I am suggesting that you look at [sender selectedRow] and [sender selectedColumn]. Those two numbers will tell you the position of the cell that was double-clicked. You can use them to compute the index you want for your NSMutableArray. If your matrix only has one row, you can simply use [sender selectedColumn] as the array index.


Note that first you must set the "Mode" of the matrix to "Radio" in Interface Builder.

--Andy

_______________________________________________
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



Ok thank you! I'm trying to calculate the "number" of cell from column and row :-D I hope I'll be able!

Thanks!
_______________________________________________
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: 
 >identify a specific NSImagecell (From: Francesca <email@hidden>)
 >Re: identify a specific NSImagecell (From: Andy Lee <email@hidden>)
 >Re: identify a specific NSImagecell (From: Francesca <email@hidden>)
 >Re: identify a specific NSImagecell (From: Andy Lee <email@hidden>)

  • Prev by Date: Re: identify a specific NSImagecell
  • Next by Date: Re: Which method is called absolutetly last?
  • Previous by thread: Re: identify a specific NSImagecell
  • Next by thread: Which method is called absolutetly last?
  • Index(es):
    • Date
    • Thread