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
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
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
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
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]
#352: macirb does not eval UTF-String
+---
Reporter: d...@… | Owner: lsansone...@…
Type: defect | Status: new
Priority: major | Milestone: MacRuby 0.5
#727: re.h header missing
+---
Reporter: spamfaen...@… | Owner: lsansone...@…
Type: defect | Status: new
Priority: blocker | Milestone:
#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