NSMatrix -renewRows:columns: doesn't change cell count
NSMatrix -renewRows:columns: doesn't change cell count
- Subject: NSMatrix -renewRows:columns: doesn't change cell count
- From: Matt Neuburg <email@hidden>
- Date: Mon, 02 Nov 2009 19:28:28 -0800
- Thread-topic: NSMatrix -renewRows:columns: doesn't change cell count
If I say:
[myMatrix renewRows:5 columns:5];
and then later:
[myMatrix renewRows:3 columns:3];
int i = [[myMatrix cells] count]; // i is 25
Is this a bug? I know that renewRows:columns: doesn't release cells (the
docs tell me so), but I do expect that the "cells" method will report the
cells that are part of the actual matrix (i.e. rows * columns), not the
whole bag of extra cells that the matrix is keeping on hand just in case. m.
--
matt neuburg, phd = email@hidden, <http://www.tidbits.com/matt/>
A fool + a tool + an autorelease pool = cool!
AppleScript: the Definitive Guide - Second Edition!
http://www.tidbits.com/matt/default.html#applescriptthings
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden