[Rubycocoa-devel 423] Re: release

Back to archive index

Fujimoto Hisa hisa****@fobj*****
Sat Oct 28 10:56:13 JST 2006


On 2006/10/28, at 9:22, Laurent Sansonetti wrote:to
> Found the problem, thanks! OSX::NSApp() doesn't exist anymore. Since
> NSApp is a constant and not a function, it should be called
> OSX::NSApp. I don't create convenience methods for constants as the
> stable version does (why is the stable version creating them?). Also,
> constants are now automatically created on demand using  
> #const_missing.
>
> Index: sample/simpleapp/AppController.rb
> ===================================================================
> --- sample/simpleapp/AppController.rb   (revision 1180)
> +++ sample/simpleapp/AppController.rb   (working copy)
> @@ -21,7 +21,7 @@
>     end
>
>     def aboutApp (sender)
> -    NSApp().orderFrontStandardAboutPanelWithOptions("Copyright" =>
> "RubyCocoa #{RUBYCOCOA_VERSION}",
> +    NSApp.orderFrontStandardAboutPanelWithOptions("Copyright" =>
> "RubyCocoa #{RUBYCOCOA_VERSION}",
>
> "ApplicationVersion" => "Ruby #{VERSION}")
>     end

thank you! it works on my environment.

>> I'll keep tring. i guess sample/RubyTypingTutor has the draging
>> problem same as 0.5 preview.
>
> Just wondering, what's the problem exactly? When trying to run the
> example with the unstable branch I get:
>
> /.../RubyCocoa.framework/Versions/A/Resources/ruby/osx/objc/
> oc_wrapper.rb:17:in `method': undefined method
> `rbobjRaiseRubyException' for class `BigLetterView' (NameError)
> 	from /.../RubyCocoa.framework/Versions/A/Resources/ruby/osx/objc/
> oc_wrapper.rb:17:in `NSApplicationMain'
> 	from /.../TypingTutor.app/Contents/Resources/rb_main.rb:18
>
> Do you get the same problem in the stable branch? If I GC.disable at
> the beginning, it does not help.

No, sorry about my guess wrong. the 'rbobjRaiseRubyException' error  
occurred only on the apple-unstable, not on the trunk. And it seems  
more serious.  On the trunk, the app can run, but some command/ 
operation is serious bug. e.g. Edit/Copy, dragging the character on  
BigLetterView...
--
hisa






More information about the Rubycocoa-devel mailing list
Back to archive index