Re: [MacRuby-devel] calculate table row height

2010-06-23 Thread niedhui
thank you,it helps a lot On Jun 22, 2010, at 3:46 PM, Jakub Suder wrote: > One warning, it uses blocks, so if you want to use it on 10.5, you'd > have to make a few changes in it. > > JS > ___ > MacRuby-devel mailing list > [email protected]

Re: [MacRuby-devel] calculate table row height

2010-06-22 Thread Matt Aimonetti
Also.. using NSView instances instead of cells will use much more memory and will probably be slower to draw, so be careful if you have a complicated table view. - Matt On Tue, Jun 22, 2010 at 12:46 AM, Jakub Suder wrote: > One warning, it uses blocks, so if you want to use it on 10.5, you'd >

Re: [MacRuby-devel] calculate table row height

2010-06-22 Thread Jakub Suder
One warning, it uses blocks, so if you want to use it on 10.5, you'd have to make a few changes in it. JS ___ MacRuby-devel mailing list [email protected] http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel

Re: [MacRuby-devel] calculate table row height

2010-06-22 Thread Jakub Suder
On Tue, Jun 22, 2010 at 06:01, niedhui wrote: > because the chinese characters, the height of a line is diffence, I want it > to be same ,like all return 19 , How Can I Fix This ? HELP! I have no idea if you can force the line height to be the same in entire text... But if I can recommend somethi

[MacRuby-devel] calculate table row height

2010-06-21 Thread niedhui
Hello,I'm new to cocoa and macruby, I want to start a tweetie-like app to learn macruby & cocoa, when display status list,I use NSTableView,and I must calculate the row height with `def tableView(table,heightOfRow:row);end` myself ,right? After googled a while,I found the way ,like this: f