#723: nsset + bindings error
---+
Reporter: jakub.su...@… | Owner: lsansone...@…
Type: defect | Status: new
Priority: major | Mileston
Hi,
I saw:
Ticket #125 (closed defect: fixed)
about CSV.
I do a pretty simple test:
###
require 'csv'
CSV.open('testCSV.csv', 'r') do |row|
p row
end
###
this test works in ruby 1.8.7, but in macruby 0.6 I get an empty reader...
my arch is: MacRuby version 0.6 (ruby 1.9.0) [universal-d
That is correct. Support for blocks in MacRuby is not implemented (yet). :-)
--
Thibault Martin-Lagardette
On May 19, 2010, at 05:37, Louis-Philippe wrote:
> And by trying a bit I see blocks are not supported,
> am I right?
>
> 2010/5/18 Laurent Sansonetti
> Indeed, methods with normal arit
Hi Dave,
NSLocalizedStringFromTable is a C macro defined in NSBundle.h that wraps a call
to localizedStringForKey:value:table:.
You can call the localize method directly by using something like:
NSBundle.mainBundle.localizedStringForKey('key', value:'value',
table:'table').
HTH,
Ed
With macruby 0.6 when I try and use NSLocalizedStringFromTable I get the
following:
~> macirb
irb(main):001:0> framework 'cocoa'
=> true
irb(main):002:0> NSLocalizedStringFromTable('', '', '')
NoMethodError: undefined method `NSLocalizedStringFromTable' for main:TopLevel
from /Users/dave/
And by trying a bit I see blocks are not supported,
am I right?
2010/5/18 Laurent Sansonetti
> Indeed, methods with normal arities (0..n arguments) conform to the
> Objective-C ABI, so using the bracket syntax just works. But for Ruby
> methods using complex arities (like splat or optional argum