Re: [MacRuby-devel] Another Cucumber Related Bug

2009-02-12 Thread M. Scott Ford
Even more data. The following code block also segfaults. It looks like the issue is the cast of ary to a CFMutableArrayRef. But that is where I am stumped, because I am not sure what alternatives there are. Any help? fred = Module.new args = ['a'] args.extend(fred) args.replace(['a', 'b']

Re: [MacRuby-devel] Help with bug from Cucumber codebase

2009-02-12 Thread M. Scott Ford
Eloy, I applied your change to dup, rolled out my change, and then the tests that I wrote still pass. -Scott On Feb 12, 2009, at 2:02 PM, Eloy Duran wrote: Hi Scott, As you can see in this commit: http://github.com/masterkain/macruby/commit/0cb18321229b35a61e9af46e068b3d55a3678bd6 I hav

Re: [MacRuby-devel] Help with bug from Cucumber codebase

2009-02-12 Thread Eloy Duran
Hi Scott, As you can see in this commit: http://github.com/masterkain/macruby/commit/0cb18321229b35a61e9af46e068b3d55a3678bd6 I have fixed the problem in a different way. Because if I understood your intention right, then the problem was in #dup. Please let me know if this fixes your issue, or

Re: [MacRuby-devel] Another Cucumber Related Bug

2009-02-12 Thread M. Scott Ford
One more piece of data. The module that is being extended does not matter. The following block dies the same way. fred = Module.new args = [] args.extend(fred) args.clear On Feb 12, 2009, at 1:56 PM, M. Scott Ford wrote: Hello, The following block of code generates a segmentation fault. I a

[MacRuby-devel] Another Cucumber Related Bug

2009-02-12 Thread M. Scott Ford
Hello, The following block of code generates a segmentation fault. I am going to try to track down where it is coming from. Commenting out the args.extend line will prevent the failure. I am going to digg in and try to figure out what is wrong, but I thought that an extra pair of eyes wou

Re: [MacRuby-devel] Help with bug from Cucumber codebase

2009-02-12 Thread M. Scott Ford
Eloy, Here is an updated patch that uses spec style tests. -Scott hash_merge.patch Description: Binary data On Feb 12, 2009, at 9:16 AM, Eloy Duran wrote: Hi Scott, If you would like to re write your patch in a more spec style as the one I pointed to that would be great! We can then e

[MacRuby-devel] Bug: NSValueTransformer receivers NSCFNumber, not fixnum

2009-02-12 Thread Brian Marick
Is this a bug? I don't see anything quite like it in Trac. I have a binding to a button's state property. Here's the binding: @comboBox.bind 'enabled', toObject: @button, withKeyPath: 'state', options: { NSValueTransformerBinding

Re: [MacRuby-devel] Help with bug from Cucumber codebase

2009-02-12 Thread Eloy Duran
Hi Scott, If you would like to re write your patch in a more spec style as the one I pointed to that would be great! We can then easily migrate it to rubyspec later on. Thanks, - Eloy On 12 feb 2009, at 15:09, M. Scott Ford wrote: Eloy, I did not see your email before I submitted the patc

Re: [MacRuby-devel] Help with bug from Cucumber codebase

2009-02-12 Thread M. Scott Ford
Eloy, I did not see your email before I submitted the patch. I glanced at the hash tests in the RubySpec project and there is not much there, so moving this test into RubySpec sounds like a good idea. Is that something that I should take care of now? -Scott On Feb 12, 2009, at 8:53 AM, El

Re: [MacRuby-devel] Help with bug from Cucumber codebase

2009-02-12 Thread M. Scott Ford
Laurent, The patch is attached. -Scott hash_merge.patch Description: Binary data On Feb 11, 2009, at 10:21 PM, Laurent Sansonetti wrote: Thanks for the detective work Scott! Could you create a test case in test/ruby/test_hash.rb and send us a patch? I would then merge it. Laurent ___

Re: [MacRuby-devel] Help with bug from Cucumber codebase

2009-02-12 Thread Eloy Duran
Hi, If this is a problem with the Objective-C Hash implementation, I would be inclined to say that the test case should go in test-macruby/cases/ rubyspec/hash_test.rb. Because we might need to move this into the rubyspec project, if it's not already in there, once we start on integrating ru

[MacRuby-devel] Hot Cocoa disappearing window behaviour

2009-02-12 Thread Dave Baldwin
It seams like the default behaviour of windows generated in Hot Cocoa is to allow their content height to be shrunk to zero (by dragging the lower right corner). At which time you are left with just the title bar and no way to recover once you have released the mouse button (AFAIK). A min