Re: [MacRuby-devel] Is this possible in MacRuby?
Hi Josh Thanks. I'm in the middle of doing a clean Lion install but will have a read up on it when I'm done - if I get anywhere with it I'll post back to let you know. Thanks again for taking the time to reply! Aston On 23 Nov 2011, at 18:17, Joshua Ballanco wrote: > Hey Aston, > > Again, this isn't a question particularly specific to MacRuby, but (since I > was just playing with it the other day) you might have a look at the > documentation for "ipfw". It can be a bit confusing and intimidating at > first, but one of the many (many, many) things that you can do with ipfw is > route traffic bound for one interface on the local machine to a different > interface (and back again to the original, if you like). The only downside is > that you need administrator permissions to configure ipfw...but then you > would need that, regardless of the specific mechanism, to alter traffic > routing on a machine. > > Cheers, > > Josh > > > On Mon, Nov 21, 2011 at 8:16 AM, [email protected] wrote: > Hi Josh - on the same theme, would it be possible to create an app (in > MacRuby) where I could intercept web connections (/urls) and block if need be? > > I'm thinking about creating a website limiter - where you can set time limits > or time-frames for certain websites. I'm guessing something like it might be > possible as Little Snitch intercepts network connections :/ > > Thanks in advance. > > Aston > > > On 20 Nov 2011, at 00:37, Joshua Ballanco wrote: > >> On Thu, Nov 17, 2011 at 1:07 PM, [email protected] wrote: >> Hi All, >> >> Is it possible to make a Lion app(/option) with MacRuby which allows you to >> change the opacity (alpha value) of other apps/windows via the View menu? >> >> So say I have a PDF open in Preview, I'd go to: view menu > transparency, >> and then set it to 50% >> >> Is this possible? Would it be a pain to do? I don't think I've seen any >> MacRuby apps that add functionality to other apps like this so am guessing >> it's not trivial. >> >> Hi Aston, >> >> Forgive the quick and dirty description... Properties of an application's >> windows are controllable by the operating system or the application itself. >> Allowing a different application access to the window is, generally >> speaking, a violation of process separation. That said, you might look into >> SIMBL. It allows you to inject code into a running process. Not as a >> separate process, but it is possible to modify an already running process. >> >> Hope that helps. >> >> - Josh >> ___ >> MacRuby-devel mailing list >> [email protected] >> http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel > > > ___ > MacRuby-devel mailing list > [email protected] > http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel > > > ___ > MacRuby-devel mailing list > [email protected] > http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel ___ MacRuby-devel mailing list [email protected] http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel
[MacRuby-devel] MacRuby: the definitive guide
HI, I don't know if it's the right forum to post my question and I apologize if not. I have just bought The definitive guide to learn Macruby and tools to develop some applications. However, I have a problem. page 129, for Actors. In Table View, col. one: I can not edit the cell when I run the program. I open the CoreDataExample and I compare carefully my settings ... without find something ... I am on Mac OS Snow, 10.6.8 and I use Xcode3.2.6 One more thing :) p130, the explanation for choosing another cell class doesn't work: In the identity tab, in class identity field, I can not choose NSButtonCell for example. What I have to do is to drag from class library the NSButtonCell to the cell in my table and the the class identity field is set to NSButtonClass. Maybe it' the right way to do this... I am just a beginner ! Thank you for reply. Have a nice day. François ___ MacRuby-devel mailing list [email protected] http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel
[MacRuby-devel] Slideshow on OS X
Hi all, first post to this mailing list. I'm trying to implement a simple Slideshow application on OS X using Macruby. It seems the normal way of doing this in Objective-C is by using the IKSlideshow class of Quartz framework. However I quickly started having crashes, even on the simplest example. Digging further I found this openradar from 2009 (http://openradar.appspot.com/7281441) stating that IKSlideshow doesn't work under GC. I tried taking the example app of IKSlideshow, enabling GC, and I confirmed it really crashes (Xcode 4.2, OS X 10.7.2). So since Macruby uses GC, I have no way of using IKSlideshow. So my question is, do anyone know an existing framework or sample code for showing fullscreen slideshows on OS X apps? Thanks everybody! Rúben -- Will work for bandwidth ___ MacRuby-devel mailing list [email protected] http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel
Re: [MacRuby-devel] MacRuby: the definitive guide
Hello François, The book covers Xcode 4.x and not 3.x, but I'll try to see what could be the problem and I'll get back to you shortly. - Matt 2011/11/24 François Boone > HI, > > I don't know if it's the right forum to post my question and I apologize > if not. > > I have just bought The definitive guide to learn Macruby and tools to > develop some applications. > However, I have a problem. > > page 129, for Actors. > In Table View, col. one: I can not edit the cell when I run the program. > I open the CoreDataExample and I compare carefully my settings ... without > find something ... > I am on Mac OS Snow, 10.6.8 and I use Xcode3.2.6 > > One more thing :) > p130, the explanation for choosing another cell class doesn't work: In the > identity tab, in class identity field, I can not choose NSButtonCell for > example. What I have to do is to drag from class library the NSButtonCell > to the cell in my table and the the class identity field is set to > NSButtonClass. Maybe it' the right way to do this... I am just a beginner ! > > Thank you for reply. > > Have a nice day. > François > > > ___ > MacRuby-devel mailing list > [email protected] > http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel > ___ MacRuby-devel mailing list [email protected] http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel
Re: [MacRuby-devel] MacRuby promise delivered
Here’s a GUI approach to using macirb: https://github.com/alloy/Interactive-MacRuby I didn’t have time to finish it yet, but it might still be useful. On 24 nov. 2011, at 02:52, Michael Johnston wrote: > I added basic fsevents reloading in my fork > (https://github.com/lastobelus/MacRubyReload) > > Should change to check an environment var first for list of directories to > watch, and otherwise use project root. For now I just grabbed the dir of the > rb_main.loc.txt entry. > > I'm curious to experiment with automating the dynamic reloading of nib files. > Anyone have any tips for that? The problem is that there are many patterns > for using nibs, so it will be difficult to fully automate. But perhaps we can > at least make it easy for common cases. > > Another next step would be to attach a panel to any window with a running > macirb in it whose top-level context is the window controller for that > window. That might be actually fairly easy to do. > > > Cheerio, > > Michael Johnston > [email protected] > > > > > On 2011-11-15, at 10:01 AM, Jean-Denis MUYS wrote: > >> Following up on my Friday suggestion, I am happy to announce that I >> implemented a first version a Xcode MacRuby projects that dynamically >> reloads Ruby source code into a running application, allowing for a very >> dynamic incremental programming style. >> >> go to https://github.com/jdmuys/MacRubyReload to download the project. The >> ReadMe.markDown text file gives full instructions. >> >> Hopefully MacRuby Xcode templates can evolve to automatically provide a >> similar facility. >> >> This is all very simple and very primitive. There is a lot of room for >> improvement. I also apologize for my Ruby style: I probably haven't written >> more than 100 or so lines of Ruby code overall yet. >> >> I hope this gets the ball rolling. >> >> Jean-Denis >> >> ___ >> MacRuby-devel mailing list >> [email protected] >> http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel > > ___ > MacRuby-devel mailing list > [email protected] > http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel ___ MacRuby-devel mailing list [email protected] http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel
Re: [MacRuby-devel] MacRuby promise delivered
And an ‘example’ of what it looks like :) http://www.ustream.tv/recorded/16057682/highlight/188706 On 24 nov. 2011, at 02:52, Michael Johnston wrote: > I added basic fsevents reloading in my fork > (https://github.com/lastobelus/MacRubyReload) > > Should change to check an environment var first for list of directories to > watch, and otherwise use project root. For now I just grabbed the dir of the > rb_main.loc.txt entry. > > I'm curious to experiment with automating the dynamic reloading of nib files. > Anyone have any tips for that? The problem is that there are many patterns > for using nibs, so it will be difficult to fully automate. But perhaps we can > at least make it easy for common cases. > > Another next step would be to attach a panel to any window with a running > macirb in it whose top-level context is the window controller for that > window. That might be actually fairly easy to do. > > > Cheerio, > > Michael Johnston > [email protected] > > > > > On 2011-11-15, at 10:01 AM, Jean-Denis MUYS wrote: > >> Following up on my Friday suggestion, I am happy to announce that I >> implemented a first version a Xcode MacRuby projects that dynamically >> reloads Ruby source code into a running application, allowing for a very >> dynamic incremental programming style. >> >> go to https://github.com/jdmuys/MacRubyReload to download the project. The >> ReadMe.markDown text file gives full instructions. >> >> Hopefully MacRuby Xcode templates can evolve to automatically provide a >> similar facility. >> >> This is all very simple and very primitive. There is a lot of room for >> improvement. I also apologize for my Ruby style: I probably haven't written >> more than 100 or so lines of Ruby code overall yet. >> >> I hope this gets the ball rolling. >> >> Jean-Denis >> >> ___ >> MacRuby-devel mailing list >> [email protected] >> http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel > > ___ > MacRuby-devel mailing list > [email protected] > http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel ___ MacRuby-devel mailing list [email protected] http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel
Re: [MacRuby-devel] Slideshow on OS X
> So my question is, do anyone know an existing framework or sample code > for showing fullscreen slideshows on OS X apps? https://github.com/alloy/under-the-macruby-rainbow_RubyKaigi-2011-LT Have a look at simple-slides.rb and slides.rb ___ MacRuby-devel mailing list [email protected] http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel
Re: [MacRuby-devel] MacRuby: the definitive guide
Francois, feel free to contact me off the mailing list if you have more questions regarding the book. page 129, for Actors. > In Table View, col. one: I can not edit the cell when I run the program. > I open the CoreDataExample and I compare carefully my settings ... without > find something ... > I am on Mac OS Snow, 10.6.8 and I use Xcode3.2.6 I left the old Xcode 3 example in the Git repo, can you please give it a try? https://github.com/mattetti/MacRuby--The-Definitive-Guide/tree/master/chapter_7 Or maybe I misunderstood and you are saying that the example works but your code doesn't? If that's the case make sure your Actors array controller is set properly, here is a screenshot from when the code was running under Xcode 3: https://img.skitch.com/2025-pwuwercmpxe3tn2kit6bst9pnu.jpg And make sure you are trying to set the bindings properly, kind of like in this Xcode 3 example for movies: https://img.skitch.com/2025-cbwjmdgu6enj8sqd7wb2tw1yf3.jpg The other thing you can check is that the Table Column is marked as editable (in the table column settings). p130, the explanation for choosing another cell class doesn't work: In the > identity tab, in class identity field, I can not choose NSButtonCell for > example. What I have to do is to drag from class library the NSButtonCell > to the cell in my table and the the class identity field is set to > NSButtonClass. Maybe it' the right way to do this... I am just a beginner ! In Xcode 4 it autocompletes... it might be a problem with Xcode 3 behaving differently, sorry. But I'm glad you found a workaround, - Matt One more thing :) p130, the explanation for choosing another cell class doesn't work: In the identity tab, in class identity field, I can not choose NSButtonCell for example. What I have to do is to drag from class library the NSButtonCell to the cell in my table and the the class identity field is set to NSButtonClass. Maybe it' the right way to do this... I am just a beginner ! On Thu, Nov 24, 2011 at 3:56 PM, Matt Aimonetti wrote: > Hello François, > > The book covers Xcode 4.x and not 3.x, but I'll try to see what could be > the problem and I'll get back to you shortly. > > - Matt > > > 2011/11/24 François Boone > >> HI, >> >> I don't know if it's the right forum to post my question and I apologize >> if not. >> >> I have just bought The definitive guide to learn Macruby and tools to >> develop some applications. >> However, I have a problem. >> >> page 129, for Actors. >> In Table View, col. one: I can not edit the cell when I run the program. >> I open the CoreDataExample and I compare carefully my settings ... >> without find something ... >> I am on Mac OS Snow, 10.6.8 and I use Xcode3.2.6 >> >> One more thing :) >> p130, the explanation for choosing another cell class doesn't work: In >> the identity tab, in class identity field, I can not choose NSButtonCell >> for example. What I have to do is to drag from class library the >> NSButtonCell to the cell in my table and the the class identity field is >> set to NSButtonClass. Maybe it' the right way to do this... I am just a >> beginner ! >> >> Thank you for reply. >> >> Have a nice day. >> François >> >> >> ___ >> MacRuby-devel mailing list >> [email protected] >> http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel >> > > ___ MacRuby-devel mailing list [email protected] http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel
Re: [MacRuby-devel] MacRuby promise delivered
Thanks Eloy. I was playing with Interactive-MacRuby a bit last night. I think the first step to using it would be to make a target to compile as a framework and make it cocoa pod-able. Then wiring up so can launch in app terminals with the app delegate or a particular window controller as top level object. I was trying to figure out how to make it indent code as it is typed which irb does. Any thoughts on that? Cheerio, Michael Johnston [email protected] On 2011-11-24, at 2:13 PM, Eloy Duran wrote: > Here’s a GUI approach to using macirb: > https://github.com/alloy/Interactive-MacRuby > > I didn’t have time to finish it yet, but it might still be useful. > > On 24 nov. 2011, at 02:52, Michael Johnston wrote: > >> I added basic fsevents reloading in my fork >> (https://github.com/lastobelus/MacRubyReload) >> >> Should change to check an environment var first for list of directories to >> watch, and otherwise use project root. For now I just grabbed the dir of the >> rb_main.loc.txt entry. >> >> I'm curious to experiment with automating the dynamic reloading of nib >> files. Anyone have any tips for that? The problem is that there are many >> patterns for using nibs, so it will be difficult to fully automate. But >> perhaps we can at least make it easy for common cases. >> >> Another next step would be to attach a panel to any window with a running >> macirb in it whose top-level context is the window controller for that >> window. That might be actually fairly easy to do. >> >> >> Cheerio, >> >> Michael Johnston >> [email protected] >> >> >> >> >> On 2011-11-15, at 10:01 AM, Jean-Denis MUYS wrote: >> >>> Following up on my Friday suggestion, I am happy to announce that I >>> implemented a first version a Xcode MacRuby projects that dynamically >>> reloads Ruby source code into a running application, allowing for a very >>> dynamic incremental programming style. >>> >>> go to https://github.com/jdmuys/MacRubyReload to download the project. The >>> ReadMe.markDown text file gives full instructions. >>> >>> Hopefully MacRuby Xcode templates can evolve to automatically provide a >>> similar facility. >>> >>> This is all very simple and very primitive. There is a lot of room for >>> improvement. I also apologize for my Ruby style: I probably haven't written >>> more than 100 or so lines of Ruby code overall yet. >>> >>> I hope this gets the ball rolling. >>> >>> Jean-Denis >>> >>> ___ >>> MacRuby-devel mailing list >>> [email protected] >>> http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel >> >> ___ >> MacRuby-devel mailing list >> [email protected] >> http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel > > ___ > MacRuby-devel mailing list > [email protected] > http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel ___ MacRuby-devel mailing list [email protected] http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel
Re: [MacRuby-devel] MacRuby promise delivered
On Nov 24, 2011, at 4:28 PM, Michael Johnston wrote: > I think the first step to using it would be to make a target to compile as a > framework and make it cocoa pod-able. Then wiring up so can launch in app > terminals with the app delegate or a particular window controller as top > level object. > > I was trying to figure out how to make it indent code as it is typed which > irb does. Any thoughts on that? I think I'd start by throwing away all of the existing UI and starting over with something that's not line-by-line but block/scope oriented. You could fake it in the current one, I suppose, by automatically pre-pending spaces to everything the user types based on indentation level. But that would be totally skanky. :) - Jordan ___ MacRuby-devel mailing list [email protected] http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel
