[MacRuby-devel] Seeing methods of extended ObjC objects in IB

2009-09-09 Thread b . ohr
Hey guys, I added the MacRuby framework to an existing project (gitx on github, which uses GC also fortunately). After setting the build to compile 64bit only everything (-1, see below) works fine, so far I can say now. I am impressed! I defined my own controller in Ruby, call methods of

[MacRuby-devel] Flash on the iPhone via LLVM

2009-10-10 Thread B . Ohr
Hi, I found this interesting article http://www.appleinsider.com/articles/09/10/06/html5_assault_on_adobe_flash_heats_up_with_clicktoflash.html&page=2 , describing how Adobe plans to port it's Flash to the iPhone via LLVM. I have never programmed for Flash (I hate Flash), but I know, that

Re: [MacRuby-devel] MacRuby 0.5 beta 1

2009-10-11 Thread B. Ohr
Hi Laurent, I have to thank you (and all the others) for your great effort! When I first saw Obj-C (~1993, I don‘t remember exactly, I got a NeXT computer for testing purposes), my first thought was: What a weird language! At this moment absolutely nobody could foresee, that this will be t

[MacRuby-devel] XCode MacRuby templates are generating .nib files

2009-10-12 Thread B. Ohr
Hi, the XCode MacRuby templates are generating .nib files instead of xib files (like Obj-C projects). (.xib is better for diffs in git or svn) Bernd ___ MacRuby-devel mailing list MacRuby-devel@lists.macosforge.org http://lists.macosforge.org/mailm

[MacRuby-devel] Translating Obj-C to MacRuby

2009-10-14 Thread B. Ohr
Hi all! Using Cocoa in MacRuby is sometimes a hard job, because all documentation, examples and sample code is Obj-C. For example, I found this piece of code '[NSNumber numberWithBool:NO]' and asked myself how to write that in Macruby. I opened macirb and typed: > NSNumber.numberWithBool

Re: [MacRuby-devel] Translating Obj-C to MacRuby

2009-10-14 Thread B. Ohr
Hi John, Am 14.10.2009 um 10:34 schrieb John Shea: Hi Bernd, YES and NO in ObjC are translated to true and false in MacRuby. so you were probably after: NSNumber.numberWithBool(false) (I am curious as to how often that is useful actually) I will leave the table idea for others to comment

Re: [MacRuby-devel] Translating Obj-C to MacRuby

2009-10-14 Thread B. Ohr
Hi, Am 14.10.2009 um 11:04 schrieb Laurent Sansonetti: Hi, On Oct 14, 2009, at 1:03 AM, B. Ohr wrote: Hi all! Using Cocoa in MacRuby is sometimes a hard job, because all documentation, examples and sample code is Obj-C. For example, I found this piece of code '[NSN

[MacRuby-devel] Running nanoc3 with MacRuby

2009-10-15 Thread B. Ohr
Hi, I got nanoc3 working with MacRuby (http://nanoc.stoneship.org/). It‘s a static site generator like webby (I think it is more powerful). I haven't done much yet, just the basic things like create a site skeleton, replace a 'yield' in a layout page (does not work yet, ticket #386), and

Re: [MacRuby-devel] Using Gems in MacRuby

2009-10-16 Thread B. Ohr
Am 16.10.2009 um 04:55 schrieb s.ross: On Oct 15, 2009, at 6:10 PM, Conrad Taylor wrote: On Thu, Oct 15, 2009 at 5:03 PM, s.ross wrote: On Oct 15, 2009, at 1:43 PM, Laurent Sansonetti wrote: Hi Craig, On Oct 14, 2009, at 7:07 PM, Craig Williams wrote: Hi Everyone, I have searched the we

[MacRuby-devel] macgem with mixed-in ObjC

2009-10-21 Thread B. Ohr
Hi, what do you think about a macgem with mixed-in ObjC? This could be useful for supporting native C libraries without using the MRI C interface, for calling parts of the OS X framework that is not Obj-C, for speed optimized code and so on. A macgem could also be delivered with a prec

Re: [MacRuby-devel] new macruby tips: dialog window

2009-10-26 Thread B. Ohr
Am 26.10.2009 um 01:00 schrieb Matt Aimonetti: I'm back from vacation and wrote a very simple tutorial: MacRuby tips: create a Cocoa file/folder browser in a few lines of code: http://bit.ly/1VuxBZ Could you please upload the current state to the github repository? It looks like it's tim

Re: [MacRuby-devel] new macruby tips: dialog window

2009-10-26 Thread B. Ohr
Am 26.10.2009 um 08:32 schrieb Matt Aimonetti: On Mon, Oct 26, 2009 at 12:26 AM, B. Ohr wrote: Am 26.10.2009 um 01:00 schrieb Matt Aimonetti: I'm back from vacation and wrote a very simple tutorial: MacRuby tips: create a Cocoa file/folder browser in a few lines of code: http://b

Re: [MacRuby-devel] spotlight - MDItemRef

2009-10-29 Thread B. Ohr
Hi Ruben! However I'm still curious about the daily non-Xcode scripts. Image I want to write a macruby script that uses my Objective-C helper class. What's the easiest way to accomplish that outside XCode? Ruben Like you I played around a little with this issue. My current state is: If

[MacRuby-devel] Quicklook plugin, Spotlight importer

2009-11-12 Thread B . Ohr
Hi, I have written a MacRuby class that reads binary data (a special format) from a file. Is there a chance that I can use this class in a Quicklook plugin or a spotlight importer? Both targets don't support GC-memory, but all object instances are created in one procedure with autorelease

Re: [MacRuby-devel] [MacRuby] #339: YAML error with UTF-16 string

2009-11-15 Thread B. Ohr
Am 14.11.2009 um 21:17 schrieb Matthias Neeracher: On Nov 14, 2009, at 15:44 , MacRuby wrote: #339: YAML error with UTF-16 string --- + Reporter: d...@… |Owner: lsansone...@… Type: defect

Re: [MacRuby-devel] Should the HotCocoa example on the home page run on 0.5 beta 2?

2009-12-19 Thread B. Ohr
I found the same error yesterday while debugging one of my broken HotCocoa Apps. Am 19.12.2009 um 07:10 schrieb Jeremy Voorhis: > I've just installed the latest MacRuby beta binaries on my new macbook, and > this happens: > > Jeremy-Voorhiss-MacBook-Pro:~ jvoorhis$ cat test.rb > require 'hot

[MacRuby-devel] macruby in automator shell

2009-12-19 Thread B. Ohr
Hi, sometimes it´s fun „programming“ a workflow or a service with the automator (and some times not). Because there is no macruby cmd in the shell script section, I wrote this install script: # file: automator-macruby.rb # # extend the automator shell script configuration # by simply copyi

Re: [MacRuby-devel] 0.6 almost there, need help!

2010-04-23 Thread B. Ohr
My apps are working too! Unfortunately compiling to static code is broken: $ cat a.rb puts 42 $ macrubyc --static a.rb Undefined symbols: "llvm::ExecutionEngine::createJIT(llvm::ModuleProvider*, std::basic_string, std::allocator >*, llvm::JITMemoryManager*, llvm::CodeGenOpt::Level, bool, l

Re: [MacRuby-devel] 0.6 almost there, need help!

2010-04-26 Thread B. Ohr
.5. Now i am using the nightly builds... > > --static only works if you installed LLVM manually. Ooops, that’s new for me! > This is a problem that we should fix in 0.6… +1 Bernd > > Laurent > > On Apr 23, 2010, at 4:18 AM, B. Ohr wrote: > >> My apps are work

Re: [MacRuby-devel] [ANN] MacRuby 0.6

2010-05-04 Thread B. Ohr
Hi Laurent, many thanks for the new version! if I might express a wish, then this: MacRuby on the iPhone (or iPad) - Simulator (yes, the Simulator, not the iPhone itself) for the quick checkout of ideas, however, also learning around the frameworks. Prototyping in ObjC is the hell, at least

Re: [MacRuby-devel] [ANN] MacRuby 0.6

2010-05-04 Thread B. Ohr
f other > things that have a higher priority. However, I'm sure that if the community > gets organized, that feature can be added without the direct involvement of > Laurent or other Apple's employees working on the project. > > - Matt > > On Tue, May 4, 2010 at

Re: [MacRuby-devel] NSObject.to_s question

2010-05-05 Thread B. Ohr
Jordan, you can do something like that: class Object alias :old_inspect :inspect def inspect i = old_inspect if i.start_with?('#<') d = description d.start_with?('<') ? i : d else i end end end But you’re right, a better integration of „description“ woul

[MacRuby-devel] v0.7 and v0.6 timeout problem

2010-05-05 Thread B. Ohr
Hi, I have strange timeout problems with 0.6 and 0.7 $ time macruby_select 0.7 -e 'framework "Cocoa"' 2010-05-06 07:03:55.018 macruby[1922:607] __CFServiceControllerBeginPBSLoadForLocalizations timed out while talking to pbs real0m1.588s user0m0.699s sys 0m0.096s 0.6 takes even longe

Re: [MacRuby-devel] v0.7 and v0.6 timeout problem

2010-05-07 Thread B. Ohr
stions: > - That might be stupid, but did you try rebooting? > - What language are you using on your system? > - Did you ever try to "shrink" applications by getting rid of different > languages? > > Thanks :-) > > -- > Thibault Martin-Lagardette > > &g

[MacRuby-devel] 0.7 problems with complex index in a hash

2010-05-08 Thread B. Ohr
Hi, v0.7 has a different behavior than v0.5 when using a Cocoa-Obj (NSCalendarDate) as a key in a hash. I must admit that I do not know what is exactly specified in Ruby, but obviously the generated value of an hashkey of different objects is same in all other cases if the objects itself are

[MacRuby-devel] KVC: different behaviour with set and =

2010-05-17 Thread B. Ohr
I have a binding of an user interface element to my controller (Controller.self.test): The setTest does work, but the 'test =' does not. class Controller < NSWindowController attr_accessor :test def works setTest true end def doesnotwork test = true end end Is this a bug?

Re: [MacRuby-devel] KVC: different behaviour with set and =

2010-05-17 Thread B. Ohr
"set via #setSomeAttr" > "set via #someAttr=" > > -- > Thibault Martin-Lagardette > > > > On May 17, 2010, at 00:47, B. Ohr wrote: > >> >> I have a binding of an user interface element to my controller >> (Controller.self.tes

Re: [MacRuby-devel] KVC: different behaviour with set and =

2010-05-17 Thread B. Ohr
Ooops, shame on me, you are right. Now it is working…. Am 17.05.2010 um 10:20 schrieb Vincent Isambart: >> class Controller < NSWindowController >> attr_accessor :test >> def works >>setTest true >> end >> def doesnotwork >>test = true >> end >> end > > "test = true" should be "sel

Re: [MacRuby-devel] some gcd issues

2010-06-04 Thread B. Ohr
Hi Ernest, Am 04.06.2010 um 19:03 schrieb Ernest N. Prabhakar, Ph.D.: > Hmm, you should NOT need to call "group" on the @job for normal usage. > > Could you just use "@job.join" to get the behavior you want? > Thanks, I am using join now! Unfortunately join is crashing too with the main que

Re: [MacRuby-devel] has anyone played with audio frameworks?

2010-06-19 Thread B. Ohr
I’m thinking a long time about doing my own audio app, but the missing Obj-C framework stopped me every time. Somebody said, that the Obj-C method dispatching is too slow for real time audio. But now, according to Gruber (Daring Fireball) there seems to be a new upcoming framework (AV Foundatio

Re: [MacRuby-devel] Compilation Clarification

2010-06-29 Thread B. Ohr
Hi! > > In the upcoming 0.7 release static compilation will be permitted, you will be > able to generate a standalone binary that contains both the MacRuby runtime > (some features disabled) and your application code, in about 1.5MB for > regular-size apps. > I tested that and it is looking

Re: [MacRuby-devel] [MacRuby] #821: uncached ObjC stub - Abort trap

2010-08-04 Thread B. Ohr
Hi, just for those who are interested, I translated John Grubers ‚open urls in safari tabs‘-script to pure MacRuby. The rather complex regular expression for detecting URLs in text is working fine in MacRuby! (AOT-compilation does not work yet, see ticket #821) -- Bernd #!/usr/local/bin/mac

[MacRuby-devel] MacRuby and the UIKit framework for Mac OS X

2011-03-24 Thread B . Ohr
Hi, I ported a small demo the UIKit framework for Mac OS X (http://chameleonproject.org/) to MacRuby. Although the framework is not currently known to be GC-safe it is working for me: https://gist.github.com/884875 I will do further investigations in this topic because I want to learn UIKit

Re: [MacRuby-devel] MacRuby and the UIKit framework for Mac OS X

2011-03-24 Thread B. Ohr
> the headers. See `man gen_bridge_metadata` for more info. > > On Mar 24, 2011, at 12:09 PM, B. Ohr wrote: > >> Hi, >> >> I ported a small demo the UIKit framework for Mac OS X >> (http://chameleonproject.org/) to MacRuby. Although the framework is not >>

Re: [MacRuby-devel] MacRuby & MountainLion + what you can do to help the project

2012-02-18 Thread B. Ohr
> > ……. Or maybe we can just agree to only support the latest Xcode version > (thoughts?) Oh, please do not! I am still running snow leopard and Xcode 4.2! ___ MacRuby-devel mailing list MacRuby-devel@lists.macosforge.org http://lists.macosforge.org/ma

[MacRuby-devel] How can I catch segment faults?

2009-09-20 Thread B. Ohr (dev)
Hey, after installing r2590 with backtrace support (thanks for that!) now I have the problem to catch segment faults. It seems to be a problem inside of a hash#each_pair, but I have absolutely no idea where, and because it is foreign code a file name and line number would be more than use

Re: [MacRuby-devel] How can I catch segment faults?

2009-09-21 Thread B. Ohr (dev)
ier in the collector. Laurent On Sep 20, 2009, at 3:03 AM, B. Ohr (dev) wrote: Hey, after installing r2590 with backtrace support (thanks for that!) now I have the problem to catch segment faults. It seems to be a problem inside of a hash#each_pair, but I have absolutely no idea where, and

[MacRuby-devel] What is the status of autoload?

2009-09-28 Thread B. Ohr (dev)
Hi, autoload is not working: $ macruby -e 'autoload :YAML, "yaml"; p YAML' core:in `const_missing:': uninitialized constant YAML (NameError) from -e:1:in `' I saw some tags about this so I am asking before I open a ticket... ___ MacRuby-devel