• 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 to detect cell selection
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to detect cell selection


  • Subject: Re: How to detect cell selection
  • From: Henry McGilton <email@hidden>
  • Date: Mon, 10 Mar 2003 14:14:53 -0800

On Monday, March 10, 2003, at 12:23 PM, James Eitzmann wrote:

I have an NSMatrix containing NSImageCell objects.
When an image or images are selected, I need to update
some text fields outside of the matrix with more
information about the selected image(s). Looking
through the documentation there doesn't seem to be any
kind of notification when selection changes for an
NSMatrix. This seems like a pretty basic operation for
an NSMatrix. Am I missing something?


You need to connect the matrix to whatever object will be
the target of action messages from the matrix.

selectedCell tells you which single cell is selected, if
you can have only one cell selected.

selectedCells returns an NSArray of selected cells in the
case where you can have multiple selections.

Cheers,
........ Henry



===============================+============================
Henry McGilton | Trilithon Software
Boulevardier, Java Composer | Seroia Research
-------------------------------+----------------------------
mailto:email@hidden | http://www.trilithon.com
===============================+============================
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

References: 
 >How to detect cell selection (From: James Eitzmann <email@hidden>)

  • Prev by Date: Code for parsing Objective-C files?
  • Next by Date: Re: Anyone developing Database apps?
  • Previous by thread: How to detect cell selection
  • Next by thread: MacOS X error: some puts() data never sees output
  • Index(es):
    • Date
    • Thread