Nicolas Peninguy wrote:
> 
> Hi, (sorry if my english isn't perfect ;-)
> 
> I've a NSView subclass with a NSMutableArray instance variable, and a
> new drawRect method. In the drawRect method I do this :
> NSLog(@"count = %d", [myArray count]);
> And the second time the drawRect method is called it crashes. (Not the
> first time... I don't understand anything !)
> 

Did you remember to retain the array after you created it?

  array = [[NSMutableArray array] retain];

> Is it a bug of GNUstep ? I'm too bad to find it alone :))
> (I've got gcc 2.95.2 and the latest gnustep snapshot)
> Tell me if you need an "as small as possible" apps which shows the bug...

Probably a look at the NSView subclass source would be enough.

Reply via email to