• 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: NSBrowser headache
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSBrowser headache


  • Subject: Re: NSBrowser headache
  • From: Andy Lee <email@hidden>
  • Date: Sun, 11 Apr 2004 13:48:48 -0400

On Apr 11, 2004, at 1:17 PM, Chuck Soper wrote:
Drew,
I haven't used NSBrowser, but the following code should increase the row height of a matrix:
NSSize theCellSize = [theMatrix cellSize];
theCellSize.height += 20;
[theMatrix setCellSize:theCellSize];
[theMatrix sizeToCells];

And you can put this code (or something like it) in the -browser:createRowsForColumn:inMatrix: method of the NSBrowser's delegate.

I do something similar, except in my code I set the matrix's font. I also send the matrix a -renewRows:columns: message at the end -- maybe the -sizeToCells in Chuck's code would suffice instead.

--Andy
_______________________________________________
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.


References: 
 >NSBrowser headache (From: eblu <email@hidden>)
 >Re: NSBrowser headache (From: Nick Zitzmann <email@hidden>)
 >Re: NSBrowser headache (From: Drew McCormack <email@hidden>)
 >Re: NSBrowser headache (From: Chuck Soper <email@hidden>)

  • Prev by Date: Re: Fast file access (was Re: [ANN] Shovel - Third-Party "Software Update")
  • Next by Date: Re: NSBrowser headache
  • Previous by thread: Re: NSBrowser headache
  • Next by thread: Re: NSBrowser headache
  • Index(es):
    • Date
    • Thread