Ticket #144 (closed defect: fixed)
require of hotcocoa fails on case sensitive file system
| Reported by: | rune@… | Owned by: | rich@… |
|---|---|---|---|
| Priority: | trivial | Milestone: | MacRuby 0.4 |
| Component: | MacRuby | Keywords: | hotcocoa |
| Cc: |
Description
When hotcocoa includes the Cocoa library it uses the wrong case, resulting on the following stack trace when you are using a case sensitive file system:
>> require 'hotcocoa' RuntimeError: framework `cocoa' not found from /Library/Frameworks/MacRuby.framework/Versions/0.3/usr/lib/ruby/1.9.0/hotcocoa.rb:1:in `framework' from /Library/Frameworks/MacRuby.framework/Versions/0.3/usr/lib/ruby/1.9.0/hotcocoa.rb:1:in `<top (required)>' from (irb):2:in `require' from (irb):2 from /usr/local/bin/macirb:12:in `<main>'
The fix is easy; change the first line of hotcocoa.rb to: framework 'Cocoa'
Change History
Note: See
TracTickets for help on using
tickets.

