Re: [MacRuby-devel] NSView.knowsPageRange( range )

2010-05-22 Thread Laurent Sansonetti
Hi Robert, Can you try: def knowsPageRange(range_ptr) range_ptr[0] = NSMakeRange(1, 1) true end This method is called with a pointer to an NSRange structure and you're supposed to set it to something in case you return true. In C, it would have been: *range_ptr = NSMakeRange(1, 1) Doing

[MacRuby-devel] NSView.knowsPageRange( range )

2010-05-22 Thread Robert Rice
I'm have some trouble understanding the new Pointer class. In older versions of MacRuby I used: def knowsPageRange( range ) # Override pagination. Image my clip on some printers # The range is passed by reference. range.location = 1 # first page number

Re: [MacRuby-devel] failing to build mysql gem

2010-05-22 Thread Joel Reymont
mysql-gem does not install with mysql-5.1.47 because ext/mysql_api/mysql.c:878 has this code: my_bool true = 1; Unfortunately, 'true' is defined as 1 so you end up with my_bool 1 = 1; which is an error. I fixed the issue in my local mysql-gem directory but for the life of me

[MacRuby-devel] failing to build mysql gem

2010-05-22 Thread Joel Reymont
snow leopard, gcc 4.2.1, mysql gem 2.8.1 mysql.c: In function ‘stmt_init’: mysql.c:878: error: expected identifier or ‘(’ before numeric constant mysql.c:883: error: lvalue required as unary ‘&’ operand Does this look familiar to anyone? --- http://twitter.com/wagerlabs

[MacRuby-devel] mysql + activerecord

2010-05-22 Thread Joel Reymont
Has anyone succeeded with macruby 0.6, activerecord and mysql? Would you have any pointers on getting up and running with the above? Thanks in advance, Joel --- http://twitter.com/wagerlabs ___ MacRuby-devel mailing list [email protected]

Re: [MacRuby-devel] [MacRuby] #352: macirb does not eval UTF-String

2010-05-22 Thread MacRuby
#352: macirb does not eval UTF-String +--- Reporter: d...@… | Owner: lsansone...@… Type: defect | Status: new Priority: major | Milestone: MacRuby 0.5

[MacRuby-devel] [MacRuby] #727: re.h header missing

2010-05-22 Thread MacRuby
#727: re.h header missing +--- Reporter: spamfaen...@… | Owner: lsansone...@… Type: defect | Status: new Priority: blocker | Milestone:

Re: [MacRuby-devel] [MacRuby] #664: MacRuby Crashes When Scheduling a Block to Run on the Main Thread from a Background Thread

2010-05-22 Thread MacRuby
#664: MacRuby Crashes When Scheduling a Block to Run on the Main Thread from a Background Thread -+-- Reporter: dy...@… | Owner: lsansone...@… Type: defect | Status: new