• 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
Re: [myMatrix addColumn] but NSMatrix doesn't show Cells
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [myMatrix addColumn] but NSMatrix doesn't show Cells


  • Subject: Re: [myMatrix addColumn] but NSMatrix doesn't show Cells
  • From: Brian Webster <email@hidden>
  • Date: Sun, 13 Oct 2002 15:08:48 -0500

If your matrix is not set to autoresize cells (and it sounds like this is the case), you need to tell the matrix to resize to accomodate the new cells. There is a handy method for this, [myMatrix sizeToCells].

On Sunday, October 13, 2002, at 02:49 PM, email@hidden wrote:

Hello everybody!
I'm here with a problem, I have a NSMatrix of NSButton, I wanna add
items at runtime but when I do:

[myMatrix addColumn];

The new column doesn't appear at all in the window... anyway if I do

[myMatrix numberOfColumns];

it returns the right number but on the window myMatrix seems untouched
I tried sending -display -needsDisplay: and other methods to its
relative NSView but without success... anybody knows how to update the
NSMatrix view???

--
Brian Webster
email@hidden
http://homepage.mac.com/bwebster
_______________________________________________
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.

  • Prev by Date: Re: Document specific menus in a multi document application
  • Next by Date: Re: dual controllers
  • Previous by thread: [myMatrix addColumn] but NSMatrix doesn't show Cells
  • Next by thread: class error for 'ASKNibObjectInfoManager': class not loaded
  • Index(es):
    • Date
    • Thread