[MacRuby-devel] EXC_BAD_ACCESS When Reopening NSDate

steve ross cwdinfo at gmail.com
Sat Feb 6 14:40:54 PST 2010


This code creates an EXC_BAD_ACCESS error:

class NSDate
  def to_s
    NSLog "#{__LINE__} NSDate#to_s %@", self
    'hello'
  end
end

NSDate.date.to_s


If I change the NSLog statement to:

NSLog "#{__LINE__} NSDate#to_s hello"

Then I get the log entry and no EXC_BAD_ACCESS. Any idea what's causing this?

Thanks


More information about the MacRuby-devel mailing list