• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag
 

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
NSMatrix -renewRows:columns: doesn't change cell count
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Prev by Date: Re: Crash invoking Front Row - WTF?
  • Next by Date: Re: Crash invoking Front Row - WTF?
  • Previous by thread: Re: [MEET] (Sydney/Australia) CHANGE OF VENUE - CocoaHeads/NSCoder Sydney - November 5th - Mac/iPhone hack night
  • Next by thread: Re: NSMatrix -renewRows:columns: doesn't change cell count
  • Index(es):
    • Date
    • Thread