[MacRuby-devel] What's the best way to implement a delegate/action with multiple parameters?

2008-11-20 Thread Michael Winterstein
I'm pretty new to Cocoa, so maybe I'm overlooking the obvious here. I just want to make sure I'm not doing more work than necessary. I'd like to be able to control the minimum size for a NSSplitView. As I understand it, I need to have a delegate with a method that can handle splitView:con

[MacRuby-devel] Bindings only working one-way

2008-11-21 Thread Michael Winterstein
I'm having difficulty working with bindings and I'm not sure if it's a MacRuby thing or my poor understanding of how they work. I've tried binding to two types of things - an NSMatrix of radio buttons (binding to "selectedTag") and a Checkbox value. Using just an attr_accessor - the variabl

Re: [MacRuby-devel] What's the best way to implement a delegate/action with multiple parameters?

2008-11-22 Thread Michael Winterstein
Date: Fri, 21 Nov 2008 15:43:38 -0500 From: Benjamin Stiglitz <[EMAIL PROTECTED]> Subject: Re: [MacRuby-devel] What's the best way to implement a delegate/action with multiple parameters? To: "MacRuby development discussions." Message-ID: <[EMAIL PROTECTED]> Content-Type: text/pl

Re: [MacRuby-devel] Bindings only working one-way

2008-11-22 Thread Michael Winterstein
for example: attr_accessor :billy # will create setter and getter for billy with all the appropritate KVO methods def updateMyValue(sender) #called from a button perhaps setBilly(4) end #or setValue:4 forKey:billy [EMAIL PROTECTED] = 4 will not work, because it bypasses the accessor me

Re: [MacRuby-devel] Can't build trunk

2008-11-24 Thread Michael Winterstein
On Nov 24, 2008, at 4:38 PM, Patrick Bennett wrote: No one? I check out a clean copy of macruby, it fails to build (just running rake like it says), and NO ONE replies? :( I did have a similar problem. I did things similarly - installed first using the 0.3 binary, and then built from th

[MacRuby-devel] Using 'Pointer.new_with_type'

2009-02-05 Thread Michael Winterstein
Hi all, Is there a particular framework that's required in order to use 'Pointer.new_with_type'? I'm using the trunk (build 809) and it's apparently not available in either my Xcode project or in macirb. Is there an alternative method for working with pointers? My specific case is that

Re: [MacRuby-devel] Using 'Pointer.new_with_type'

2009-02-06 Thread Michael Winterstein
On Feb 5, 2009, at 10:53 AM, Michael Winterstein wrote: Hi all, Is there a particular framework that's required in order to use 'Pointer.new_with_type'? I'm using the trunk (build 809) and it's apparently not available in either my Xcode project or in macirb.

Re: [MacRuby-devel] Using 'Pointer.new_with_type'

2009-02-09 Thread Michael Winterstein
. Then you would be able to load the framework in MacRuby and call those methods. On Fri, Feb 6, 2009 at 12:24 AM, Michael Winterstein wrote: On Feb 5, 2009, at 10:53 AM, Michael Winterstein wrote: Hi all, Is there a particular framework that's required in order to use 'Pointer.new_

Re: [MacRuby-devel] [MacRuby] #351: problem with macruby build (rake)

2009-09-26 Thread Michael Winterstein
On Sep 26, 2009, at 8:38 PM, MacRuby wrote: #351: problem with macruby build (rake) --- + Reporter: sergei.homja...@… | Owner: lsansone...@… Type: defect | Status: new Prior

Re: [MacRuby-devel] Problems with return code from sheet (possible regression)

2009-10-07 Thread Michael Winterstein
ce, 0x1) as an Objective-C object. Laurent On Oct 6, 2009, at 12:58 PM, Michael Winterstein wrote: I seem to have run into nearly the same problem that I had a while back, in this ticket: http://www.macruby.org/trac/ticket/221 I haven't filed it yet this time since last time it turne

Re: [MacRuby-devel] [MacRuby] #374: Adding a binding (in IB) prevents instance variables

2009-10-09 Thread Michael Winterstein
r2778 works fine. Great to have some specs in there. On Oct 9, 2009, at 7:40 PM, MacRuby wrote: #374: Adding a binding (in IB) prevents instance variables - +-- Reporter: parzi...@… |Owner: lsanson

[MacRuby-devel] Problem with (Ruby) bindings

2009-11-28 Thread Michael Winterstein
I'm not sure if this is a known bug, or related to any open issues with bindings, but I found this while messing around (using r3059): # This works lv1 = 1 lv2 = 2 lv1_binding = lv1.send(:binding) lv2_binding = lv2.send(:binding) # This fails. class A lv1 = 1 lv2 = 2 lv1_binding = lv1.send(:bi