Ticket #659 (closed defect: fixed)
ER: Calling #== on an Obj-C object calls -isEqual:
| Reported by: | joshua.ballanco@… | Owned by: | lsansonetti@… |
|---|---|---|---|
| Priority: | blocker | Milestone: | MacRuby 0.7 |
| Component: | MacRuby | Keywords: | |
| Cc: |
Description
It would be nice if calling #== on an Obj-C object which defines -isEqual: used this method instead of doing a straight pointer comparison:
framework 'Foundation'
a = NSDate.dateWithNaturalLanguageString('today')
b = NSDate.dateWithNaturalLanguageString('today')
if a == b
p :ok
elsif a.isEqual(b)
p :ko
end
Change History
Note: See
TracTickets for help on using
tickets.

