Re: [MacRuby-devel] Confusing with The memory a macruby app used

2010-10-25 Thread niedhui
got it .thanks On Oct 25, 2010, at 9:20 AM, Laurent Sansonetti wrote: > Hi, > > The memory used by a new MacRuby app depends on your environment, but it's > indeed bigger than a default Objective-C app. If you start enabling garbage > collection in the Objective-C app and create some objects, t

Re: [MacRuby-devel] How to use NSEvent.addGlobalMonitorForEventsMatchingMask ?

2010-07-20 Thread niedhui
thanks for the reply is there any plan to support this? On Jul 21, 2010, at 2:45 AM, Laurent Sansonetti wrote: > Hi, > > On Jul 20, 2010, at 2:33 AM, niedhui wrote: > >> Hi: >> >> NSEvent.addGlobalMonitorForEventsMatchingMask(NSKeyDownMask,handler: ) >&g

[MacRuby-devel] How to use NSEvent.addGlobalMonitorForEventsMatchingMask ?

2010-07-20 Thread niedhui
Hi: NSEvent.addGlobalMonitorForEventsMatchingMask(NSKeyDownMask,handler: ) the handler: is a block param, can i use this in macruby ? if yes ,how? Thanks ___ MacRuby-devel mailing list MacRuby-devel@lists.macosforge.org http://lists.macosforge.org/mai

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 > MacRuby-devel@lists.macosforg

[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

[MacRuby-devel] macgem & macrake take so much time to start ??

2010-06-12 Thread niedhui
Hi I'm trying macrub & hotcocoa these days, and have a question, when i try macgem list or macrake (after `hotcocoa hello`),it take so much time to get a response,it just hang there ,and after almost a minute i see the `Hello from HotCocoa` window what's my problem ?? I'm using macruby 0.6