Re: [MacRuby-devel] NSLocalizedString

2011-02-21 Thread Charles Steinman
On Mon, Feb 21, 2011 at 8:23 AM, Martin Hawkins wrote: > Changing the line to > return NSBundle.mainBundle.localizedStringForKey("Today", value:"Today > title string", table:nil) > works but NSLocalizedString is supposed to be a Foundation Function, > so should be 'freely' available in MacRuby, sh

Re: [MacRuby-devel] Close Current window and Pass Data

2011-02-06 Thread Charles Steinman
On Sun, Feb 6, 2011 at 3:01 PM, Buddy Lindsey, Jr. wrote: > I have had some good success in getting large chunks of my app done, but > there are a few things that I can't seem to figure out, or at least get to > working. > I was able to figure out how to open up a new window that was based on a xi

Re: [MacRuby-devel] is_a? method

2011-02-03 Thread Charles Steinman
On Thu, Feb 3, 2011 at 5:28 PM, Eric Christopherson wrote: > On Sat, Jan 29, 2011 at 5:15 PM, Robert Rice wrote: >> Hi Eric: >> >> Thanks, the ancestors method will work better. >> >> Do class objects inherit all of the Module methods? > > Sorry, I didn't see your message before (assuming you wer

Re: [MacRuby-devel] Conforming to a protocol

2010-11-20 Thread Charles Steinman
In case anyone needs it in the meantime, here is a working implementation of conformsToProtocol: def conformsToProtocol(protocol) supported = %w( AProtocol SomeOtherProtocol YetAnotherProtocol ).map {|name| Protocol.protocolWithName name} # List the protocols you want to conform to between the