Re: [MacRuby-devel] MacRuby 0.9 EXC_BAD_ACCESS using NSPredicate against Core Data

2011-02-26 Thread Jonathan Waddilove
Just installed the new MacRuby 0.9 and I still have this problem. I'm assuming it's something I've screwed up, and hints and tips greatly welcomed... -Jonathan On 24 Feb 2011, at 16:58, Jonathan Waddilove wrote: > Hi, I'm trying to apply a predicate to a core

Re: [MacRuby-devel] MacRuby 0.8 EXC_BAD_ACCESS using NSPredicate against Core Data

2011-02-26 Thread Jonathan Waddilove
> > (Presuming the exception is being thrown from under executeFetchRequest.) > > Just a few guesses from a fellow traveler on the Core Data highway. :/ > > -- Morgan > > p.s. It could also be tweaked to be more Ruby-esque, but that won't help with > the proble

[MacRuby-devel] MacRuby 0.8 EXC_BAD_ACCESS using NSPredicate against Core Data

2011-02-24 Thread Jonathan Waddilove
Hi, I'm trying to apply a predicate to a core data fetch and hitting EXC_BAD_ACCESS. I've successfully used NSPredicate to filter an array's contents, but all my attempts to use NSPredicate with Coredata fail. I'm using framework 'Coredata' and framework 'Foundation' and this is the method th

Re: [MacRuby-devel] MacRuby 0.9 - NSDate initWithTimeInterval:sinceDate: problem

2011-02-14 Thread Jonathan Waddilove
e)} seconds" > > al > > > On 13 Feb 2011, at 16:42, Jonathan Waddilove wrote: > >> Hi, I have been trying to use the NSDate initWithTimeInterval:sinceDate: >> method to measure elapsed times. >> >> I know there has been some discussion about the mappin

Re: [MacRuby-devel] MacRuby 0.8 - crash using Proc.new with NSArray.enumerateObjectsUsingBlock

2011-02-14 Thread Jonathan Waddilove
> > The snippet works fine in my environment :( > > Laurent > > On Feb 13, 2011, at 8:55 AM, Jonathan Waddilove wrote: > >> Hi, another MacRuby 0.9 question... >> >> I've been trying to use lambda and/or Proc.new to provide callback blocks >> (as su

Re: [MacRuby-devel] MacRuby 0.9 - crash using Proc.new with NSArray.enumerateObjectsUsingBlock

2011-02-13 Thread Jonathan Waddilove
Just reinstalled xcode 3, MacRuby 0.8 and added BS preview 3 - still have the same problem:-( -Jonathan On 13 Feb 2011, at 19:14, Jordan K. Hubbard wrote: > And with the most recent BridgeSupport installed? > > On Feb 13, 2011, at 10:53 AM, Jonathan Waddilove wrote: > >

Re: [MacRuby-devel] MacRuby 0.9 - crash using Proc.new with NSArray.enumerateObjectsUsingBlock

2011-02-13 Thread Jonathan Waddilove
er) instead of void(^)(NSInteger result) but > all of Apple's API name the parameters. It could be something else in MacRuby > though it's hard to say. > > What version of Ruby/OS X are you running? > > -Robert > > On Feb 14, 2011, at 7:16 AM, Jonathan Waddi

Re: [MacRuby-devel] MacRuby 0.9 - crash using Proc.new with NSArray.enumerateObjectsUsingBlock

2011-02-13 Thread Jonathan Waddilove
st to be safe and I'm still not getting > any issues with it... someone else might be able to help. > > -Robert > > On 14/02/2011, at 7:01 AM, Jonathan Waddilove wrote: > >> Hello Robert, >> >> Sorry, I must be using the 'other' macirb ;-) -

Re: [MacRuby-devel] MacRuby 0.9 - crash using Proc.new with NSArray.enumerateObjectsUsingBlock

2011-02-13 Thread Jonathan Waddilove
gt; > framework "Cocoa" > a = [0,1,2,3,4] > a.enumerateObjectsUsingBlock(Proc.new{|object, index, stop| > puts "#{object}" > }) > > It's working over here in MacIrb > On 14/02/2011, at 6:52 AM, Jonathan Waddilove wrote: > >> Hi Robert, Tha

Re: [MacRuby-devel] MacRuby 0.9 - crash using Proc.new with NSArray.enumerateObjectsUsingBlock

2011-02-13 Thread Jonathan Waddilove
ayne wrote: > Hi Jonathan, > > The syntax looks good and it works on my end. Are you using a nightly of > MacRuby or the 0.8 trunk? > > a = [0,1,2,3,4] > puts "#{a}" > a.enumerateObjectsUsingBlock(Proc.new{|object, index, stop| > puts "object: #{ob

[MacRuby-devel] MacRuby 0.9 - crash using Proc.new with NSArray.enumerateObjectsUsingBlock

2011-02-13 Thread Jonathan Waddilove
Hi, another MacRuby 0.9 question... I've been trying to use lambda and/or Proc.new to provide callback blocks (as suggested in Matt's excellent draft book). Again I have seen discussions about problems in this area and for me all the suggested variants of code fail. Here's a snip of failing cod

[MacRuby-devel] MacRuby 0.9 - NSDate initWithTimeInterval:sinceDate: problem

2011-02-13 Thread Jonathan Waddilove
Hi, I have been trying to use the NSDate initWithTimeInterval:sinceDate: method to measure elapsed times. I know there has been some discussion about the mapping from Cocoa NSDate to Ruby Time and back but I'm not sure if this is supposed to be working now? Here's a snip of code that calculates

Re: [MacRuby-devel] MR Examples was: OpenGL/GLUT Bridgesupport

2010-01-24 Thread Jonathan Waddilove
ifically somewhere linked >> from https://www.macruby.org/documentation.html). It would nicely >> compliment all the various tutorials and screencasts already there, most of >> which tend to give the reader a basic intro to MacRuby ("Here's how to build >> your f

Re: [MacRuby-devel] MR Examples was: OpenGL/GLUT Bridgesupport

2010-01-24 Thread Jonathan Waddilove
by ("Here's how to build >> your first Cocoa app in IB!") and then leave all the really hairy stuff >> which follows as an exercise for the reader. :-) >> >> - Jordan >> >> On Jan 23, 2010, at 6:19 AM, Jonathan Waddilove wrote: >>

Re: [MacRuby-devel] OpenGL/GLUT Bridgesupport

2010-01-24 Thread Jonathan Waddilove
; > > the release is there because i know now that CoreGraphics is not garbage > collected. > > So the very same opengl mipmap call (with same datatype) works fine now, and > so does the game (IcePhage - and its the same code in CarNage). > > Of course you coul

Re: [MacRuby-devel] OpenGL/GLUT Bridgesupport

2010-01-23 Thread Jonathan Waddilove
>> They do not use VAs or VBOs - but I do have some test projects which use VAs >> and VBOs, and a 3D test (which uses an exported c header file (from Cheetah >> 3D) holding vertex arrays). >> >> Let me know if you are interested and I will dig them up and send them

Re: [MacRuby-devel] OpenGL/GLUT Bridgesupport

2010-01-23 Thread Jonathan Waddilove
g to port ? We could > maybe work on it together ? > > > Julien > > Le 22 janv. 2010 à 17:32, Jonathan Waddilove a écrit : > >> John, >> >> Thank you for the response. GLUT won't be my first choice but I'm trying to >> follow the examples in the Supe

Re: [MacRuby-devel] OpenGL/GLUT Bridgesupport

2010-01-22 Thread Jonathan Waddilove
m Cheetah > 3D) holding vertex arrays). > > Let me know if you are interested and I will dig them up and send them to you > (only tested on MacRuby 0.4 however). > > In that game related folder you will also see translations from other > people's opengl work

Re: [MacRuby-devel] OpenGL/GLUT Bridgesupport

2010-01-22 Thread Jonathan Waddilove
er good reasons to have your own bridge class anyway - i imagine > that BridgeSupport is always going to be lagging Cocoa a bit (eg Core > Animation constants), and it might just be easier allocating OpenGL texture > memory in ObjC (well I still use objC for that) > > HTH, > J

[MacRuby-devel] OpenGL/GLUT Bridgesupport

2010-01-20 Thread Jonathan Waddilove
Hi, I'm back to using MacRuby again and I'm confused about Bridge Support. I have been using the excellent sojaster port of the Cocoa OpenGL example to help develop an OpenGL playpen. However, when I started using glut calls (glutBitmapCharacter, glutStrokeString, etc) I started to get problems.

Re: [MacRuby-devel] SnowLeopard: Macruby 0.4 macirb crash

2009-06-11 Thread Jonathan Waddilove
OK, thanks for all the comments. I'll move any new SL questions to the Dev Forums. However, for what it's worth. I have now been able to build & install the experimental branch on SL. There was only one snag... I had to remove .gem/macruby/1.9.1/bin from my path in order to get rake to run.

Re: [MacRuby-devel] SnowLeopard: Macruby 0.4 macirb crash

2009-06-10 Thread Jonathan Waddilove
Rich, Thanks, I'll try 0.5 again and see how I do. regards, Jonathan smime.p7s Description: S/MIME cryptographic signature ___ MacRuby-devel mailing list MacRuby-devel@lists.macosforge.org http://lists.macosforge.org/mailman/listinfo.cgi/macruby-d

[MacRuby-devel] SnowLeopard: Macruby 0.4 macirb crash

2009-06-10 Thread Jonathan Waddilove
Should we expect MacRuby 0.4 to work under the SnowLeopard beta? I'm seeing crashes in both macirb and magem (see below). I've also tried 0.5 branch and that has crashes as well. (hope you're all enjoying WWDC) Crashes MacIrb: /Library/Frameworks/MacRuby.framework/Versions/0.4/usr/bin/macru

[MacRuby-devel] Problem with MacGem install

2009-05-26 Thread Jonathan Waddilove
Matt, Thank you. It hadn't occured to me that the 'C' dependency would upset the MacGem process! I'll think about the issues of Ruby OpenGL v. Cocoa OpenGl. John, Thank you for sharing the examples... More reading to do :) Jonathan ___ MacRuby-de

[MacRuby-devel] Problem with MacGem install

2009-05-25 Thread Jonathan Waddilove
Hi, I'm just starting to use MacRuby and I would like to be able to use OpenGL. So far I have been unable to install the GEM. I have just checked out the current MacRuby trunk (Mon 25 May) and after building it I get the following error: sudo macgem install ruby-opengl Password: macrub