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:41:32 +0200
I use the following code:
myMatrix = [[NSMatrix alloc] init];
The documentation says that when I use the addRowWithCells: method on an
empty matrix, that it is going to make a row with enough columns. Am I
misunderstanding something?
-Ivan
>
-----Original Message-----
>
From: Cameron Hayne [mailto:email@hidden]
>
Sent: Freitag, 6. September 2002 20:27
>
To: ivan subotic
>
Cc: email@hidden
>
Subject: Re: problems filling the NSMatrix with NSImageCells in a
>
NSMutableArray
>
>
On Friday, September 6, 2002, at 06:21 am, ivan subotic wrote:
>
>
> 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
>
>
It sounds like your arrays are not the right size for the matrix. How
>
did you init the matrix?
>
>
--
>
Cameron Hayne (email@hidden)
>
Hayne of Tintagel
_______________________________________________
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.