[MacRuby-devel] HotCocoa on_notification Method with Snow Leopard

2009-10-03 Thread Trevor Hills
I have a small MacRuby/HotCocoa application that uses the  
on_notification method described by Richard Kilmer in his post of Sept  
19 2008 http://lists.macosforge.org/pipermail/macruby-devel/2008-September/000539.html


This application worked well under MacRuby 0.4 and Mac OS 10.5. It  
intercepts Spotify Growl messages to obtain track title and artist  
information to pass into an AppleScript Studio application I wrote.  
The MacRuby/HotCocoa app was provided by a friendly software  
developer, Peter MacRobert, for me since ASS did not have the  
appropriate inter-process message handling capability.


I upgraded to Snow Leopard and discovered that the app crashed out  
with MacRuby 0.4. I succeeded in downloading and installing MacRuby  
0.5 and now the app loads successfully with no error messages as  
before under Leopard.


Unfortunately the on_notification code does not get triggered any  
longer. No error messages, just stubbornly refuses to respond when the  
Distributed Notifications Center gets the Spotify message. I am able  
to see that the message is there by firing up Growl which shows the  
message each time Spotify plays a track.


I'm looking for guidance if anybody has any words of wisdom please?  
Has something changed under MacOS 10.6.1 to do with the Distributed  
Notifications Center or is it likely that my re-installation of  
MacRuby 0.5 is incorrect and I have to do something additional to get  
the on_notification method re-enabled?


My googling efforts suggest that there are changes in inter-process  
security with Snow Leopard but I am unable to discover any security  
violation error messages.


Regards

Trevor Hills
___
MacRuby-devel mailing list
[email protected]
http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel


[MacRuby-devel] [MacRuby] #363: IO.copy_stream dont handle copyfile.

2009-10-03 Thread MacRuby
#363: IO.copy_stream dont handle copyfile.
+---
 Reporter:  kazuh...@…  |   Owner:  lsansone...@…
 Type:  defect  |  Status:  new  
 Priority:  minor   |   Milestone:  MacRuby 0.5  
Component:  MacRuby |Keywords:   
+---
 I try to run folloing script.
 {{{
   src = open("a")
   dst = open("b","w+")
   IO.copy_stream(src,dst)
   src.close
   dst.close
 }}}
 I expected to run via copyfile function . but not.
 because src/dst object is indicated as not T_FILE by rb_type.(T_NATIVE)

-- 
Ticket URL: 
MacRuby 

___
MacRuby-devel mailing list
[email protected]
http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel


Re: [MacRuby-devel] [MacRuby] #363: IO.copy_stream dont handle copyfile.

2009-10-03 Thread MacRuby
#363: IO.copy_stream dont handle copyfile.
+---
 Reporter:  kazuh...@…  |   Owner:  lsansone...@…
 Type:  defect  |  Status:  new  
 Priority:  minor   |   Milestone:  MacRuby 0.5  
Component:  MacRuby |Keywords:   
+---

Comment(by lsansone...@…):

 Currently, copyfile() is only used if both operands are file paths
 (strings), otherwise we simulate it.

 If an operand is of T_FILE and if its seek offset is 0 and if it has a
 path, we could potentially use copyfile() too (and update the seek offset
 in case it's the destination operand).

-- 
Ticket URL: 
MacRuby 

___
MacRuby-devel mailing list
[email protected]
http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel