FROM : Graham cox
DATE : Tue Nov 02 23:18:44 2004
> 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_removed>)
> Help/Unsubscribe/Update your Subscription:
> http://lists.apple.com/mailman/options/cocoa-dev/
> graham.<email_removed>
>
> This email sent to graham.<email_removed>
>
DATE : Tue Nov 02 23:18:44 2004
> 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_removed>)
> Help/Unsubscribe/Update your Subscription:
> http://lists.apple.com/mailman/options/cocoa-dev/
> graham.<email_removed>
>
> This email sent to graham.<email_removed>
>
| Related mails | Author | Date |
|---|---|---|
| Peter Karlsson | Nov 2, 09:29 | |
| m | Nov 2, 09:46 | |
| Graham cox | Nov 2, 23:18 | |
| mmalcolm crawford | Nov 2, 23:50 | |
| mmalcolm crawford | Nov 3, 00:55 |






Cocoa mail archive

