FROM : Ricky Sharp
DATE : Sun Oct 31 20:32:37 2004
On Oct 31, 2004, at 12:20 PM, Peter Karlsson wrote:
> I have a NSMatrix with 8 cells. I want to convert it's values to a
> NSString
> like this:
>
> @"10110100"
>
> I have tried all day and can't get it to work. Can someone please show
> me
> some example code?
You really should read the docs for NSMatrix.
Specifically, look at the cells method which returns a row-ordered
NSArray of your cells. Would then be a simple matter of iterating that
array to get the individual cell "values".
If you need things in column-order, just get the number of rows &
columns with getNumberOfRows:columns:. To get the cell at a particular
row & column you'd use cellAtRow:column:
___________________________________________________________
Ricky A. Sharp mailto:<email_removed>
Instant Interactive(tm) http://www.instantinteractive.com
DATE : Sun Oct 31 20:32:37 2004
On Oct 31, 2004, at 12:20 PM, Peter Karlsson wrote:
> I have a NSMatrix with 8 cells. I want to convert it's values to a
> NSString
> like this:
>
> @"10110100"
>
> I have tried all day and can't get it to work. Can someone please show
> me
> some example code?
You really should read the docs for NSMatrix.
Specifically, look at the cells method which returns a row-ordered
NSArray of your cells. Would then be a simple matter of iterating that
array to get the individual cell "values".
If you need things in column-order, just get the number of rows &
columns with getNumberOfRows:columns:. To get the cell at a particular
row & column you'd use cellAtRow:column:
___________________________________________________________
Ricky A. Sharp mailto:<email_removed>
Instant Interactive(tm) http://www.instantinteractive.com
| Related mails | Author | Date |
|---|---|---|
| Peter Karlsson | Oct 31, 19:20 | |
| Ricky Sharp | Oct 31, 20:32 |






Cocoa mail archive

