RE: problems filling the NSMatrix with NSImageCells in a NSMutableArray
RE: problems filling the NSMatrix with NSImageCells in a NSMutableArray
- Subject: RE: problems filling the NSMatrix with NSImageCells in a NSMutableArray
- From: "Ivan Subotic" <email@hidden>
- Date: Sat, 7 Sep 2002 09:39:42 +0200
myArray is a NSMutableArray and is being filled with NSImageCells prior
to the attempt to fill the matrix. The documentation for the NSMatrix
says that the matrix can be empty (no rows and no columns) and that in
that case addRowWithCells is going to make a row with enough columns. Am
I missing something?
Thanx
Ivan
>
-----Original Message-----
>
From: Lance Bland [mailto:email@hidden]
>
Sent: Freitag, 6. September 2002 12:44
>
To: ivan subotic
>
Subject: Re: problems filling the NSMatrix with NSImageCells in a
>
NSMutableArray
>
>
is myArray an actual NSArray instance (non-nil) and does its length
>
equal to the number of columns in the matrix?
>
>
>
On Friday, September 6, 2002, at 06:21 AM, ivan subotic wrote:
>
>
> Hi cocoa dev gurus,
>
>
>
> I have a Problem when I try to fill a Matrix with an Array. I'm
>
> trying the following: ...
>
> [myMatrix addRowWithCells:myArray];
>
> ...
>
>
>
> The Cells in the myArray are NSImageCells. I'm allways geting the
>
> following
>
> error:
>
>
>
> *** Assertion failure in -[NSMatrix insertRow:withCells:],
>
> AppKit.subproj/ NSMatrix.m:1196
>
> Invalid parameter not satisfying: !newCells || ([newCells count] ==
>
> _numCols)
>
>
>
> Dose anybody have an idea what could be wrong, or maybe a working
>
> example would also help a lot.
>
>
>
> Thanx,
>
> Ivan
>
> _______________________________________________
>
> 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.
>
>
>
>
>
------------------------------------
>
Lance Bland
>
mailto:email@hidden
>
web charts at http://www.vvi.com/products/chart
_______________________________________________
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.