Ticket #651 (closed defect: fixed)
NSString#stringByDeletingPathExtension: not returning a String
| Reported by: | koudelka@… | Owned by: | lsansonetti@… |
|---|---|---|---|
| Priority: | minor | Milestone: | MacRuby 0.6 |
| Component: | MacRuby | Keywords: | stringByDeletingPathExtension |
| Cc: |
Description
The NSString docs for stringByDeletingPathExtension: indicate that it should return an NSString pointer, but doesn't seem to do so in macruby.
In macirb:
"/a/b/c.d".stringByDeletingPathExtension => "/a/b/c"
"/a/b/c.d".stringByDeletingPathExtension + 'aa'
TypeError: wrong argument type NSPathStore2 (expected String)
from (irb):2:in `<main>'
"/a/b/c.d".stringByDeletingPathExtension.class => NSPathStore2
My macruby version string is: MacRuby version 0.5 (ruby 1.9.0) [universal-darwin10.0, x86_64]
--Mike
Change History
Note: See
TracTickets for help on using
tickets.

