Re: How to detect cell selection
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.