[MacRuby-devel] [MacRuby] #724: malloc warning

2010-05-20 Thread MacRuby
#724: malloc warning
-+--
 Reporter:  tvmo...@…|   Owner:  lsansone...@…
 Type:  defect   |  Status:  new  
 Priority:  minor|   Milestone:  MacRuby 0.6  
Component:  MacRuby  |Keywords:   
-+--
 framework 'cocoa'

 p = NSURL.fileURLWithPath(File.expand_path("~/Desktop/test"))
 data = NSURL.bookmarkDataWithContentsOfURL(p, error:nil)

 macruby(420,0x7fff70770be0) malloc: reference count underflow for
 0x2004b9800, break on auto_refcount_underflow_error to debug.

-- 
Ticket URL: 
MacRuby 

___
MacRuby-devel mailing list
[email protected]
http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel


Re: [MacRuby-devel] [MacRuby] #406: Can't load gem grit.

2010-05-20 Thread MacRuby
#406: Can't load gem grit.
---+
 Reporter:  hungerandthi...@…  |   Owner:  lsansone...@…
 Type:  defect |  Status:  new  
 Priority:  blocker|   Milestone:  MacRuby 0.5  
Component:  MacRuby|Keywords:  rubygems, grit, gems 
---+

Comment(by kayla.rose...@…):

 Replying to [comment:2 kayla.rose...@…]:
 > Replying to [comment:1 kayla.rose...@…]:
 > > Cc Me!
 Basically the work around I found for this on MacRuby 0.6 on SL:

 {{{
 require "rubygems"
 require "grit" rescue p "Errors occurred while trying to load Grit"
 require "grit" rescue p "Errors occurred the 2nd time too!!!"
 }}}


 The second require shows "unknown: warning: already initialized constant
 *" warnings, but the Grit gem is loaded, and should be available after the
 second require statement.

-- 
Ticket URL: 
MacRuby 

___
MacRuby-devel mailing list
[email protected]
http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel


Re: [MacRuby-devel] NSLocaliszed* functions missing

2010-05-20 Thread Dave Baldwin
Thanks,
That did the trick.  Docs didn't say about it being a macro, unless I 
overlooked it.

Dave.

On 19 May 2010, at 17:04, Ed wrote:

> 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
> 
> On May 19, 2010, at 9:25 AM, Dave Baldwin wrote:
> 
>> 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/(irb):2:in `'
>> 
>> I believe NSLocalizedStringFromTable is part of the Foundation framework.
>> Also all the other NSLocalized* functions seem to be missing.
>> 
>> Dave.
>> 
>> ___
>> MacRuby-devel mailing list
>> [email protected]
>> http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel
> 
> ___
> MacRuby-devel mailing list
> [email protected]
> http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel

___
MacRuby-devel mailing list
[email protected]
http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel