[MacRuby-devel] REXML

2009-05-22 Thread Robert Rice
Dear MacRuby development team: I am new to Ruby and I have an application that I would like to port to MacRuby. The two extensions I will need are XML and serial port I/O. So far I have not been able to get them to work: Last login: Fri May 22 12:31:48 on ttys000 new-host:~ robertrice$ macirb

Re: [MacRuby-devel] REXML

2009-05-22 Thread Robert Rice
ruby.org/trac/ticket/134 Regarding the serialport library, I can't seem to see it on rubyforge, so I'm not sure what you are referring to. - Matt On Fri, May 22, 2009 at 9:44 AM, Robert Rice wrote: Dear MacRuby development team: I am new to Ruby and I have an application that I woul

Re: [MacRuby-devel] REXML

2009-05-23 Thread Robert Rice
tch I mentioned there: http://www.macruby.org/trac/ticket/134 Regarding the serialport library, I can't seem to see it on rubyforge, so I'm not sure what you are referring to. - Matt On Fri, May 22, 2009 at 9:44 AM, Robert Rice wrote: Dear MacRuby development team: I am new to Rub

Re: [MacRuby-devel] macruby nightly build 2009-09-10

2009-09-11 Thread Robert Rice
How would I track down the following error from the nightly build? [Session started at 2009-09-11 12:43:22 -0400.] GNU gdb 6.3.50-20050815 (Apple version gdb-1344) (Fri Jul 3 01:19:56 UTC 2009) Copyright 2004 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Publ

Re: [MacRuby-devel] macruby nightly build 2009-09-10

2009-09-12 Thread Robert Rice
b Rice On Sep 11, 2009, at 12:53 PM, Laurent Sansonetti wrote: Looks like we are hitting an assertion in the symbol generator... Could you send us what you are trying to execute here? Laurent Sent from my iPhone On Sep 11, 2009, at 9:48 AM, Robert Rice wrote: How would I track down the

Re: [MacRuby-devel] macruby nightly build 2009-09-10

2009-09-23 Thread Robert Rice
. Thanks, Bob Rice # # JBH_F7575101_WindowController.rb # Cocoa-Ruby Driver Assistant # # Created by Robert Rice on 9/4/09. # Copyright (c) 2009 Rice Audio. All rights reserved. # class JBH_F7575101_WindowController < NSWindowController # require 'TextUtilities'; include TextUtilitie

Re: [MacRuby-devel] macruby nightly build 2009-09-10

2009-09-23 Thread Robert Rice
Hi Laurent: Thanks for your quick reply. I have attached another file that causes a similar crash without a call to autorelease. Bob Rice # # OutlineRowNode.rb # Cocoa-Ruby Driver Assistant # # Created by Robert Rice on 9/4/09. # Copyright (c) 2009 Rice Audio. All rights reserved

Re: [MacRuby-devel] macruby nightly build 2009-09-10

2009-09-23 Thread Robert Rice
d macruby to not crash in case autorelease or dealloc is used, but keep in mind that using these selectors won't do anything. Laurent On Sep 23, 2009, at 2:46 PM, Robert Rice wrote: ___ MacRuby-devel mailing list MacRuby-devel@lists.macosforge.or

Re: [MacRuby-devel] macruby nightly build 2009-09-10

2009-09-23 Thread Robert Rice
On Sep 23, 2009, at 8:23 PM, Laurent Sansonetti wrote: Hi Robert, This one will be hard to debug without your code. At least, from gdb, could you do a "bt" and copy/paste the output? Laurent On Sep 23, 2009, at 5:17 PM, Robert

[MacRuby-devel] NSTimer

2009-10-11 Thread Robert Rice
Congratulations MacRuby Development Team: My application almost runs now in MacRuby. Is NSTimer class supported in MacRuby? I was doing background processing using NSTimer as follows: @timer = NSTimer.scheduledTimerWithTimeInterval( 5.0, :target, self, :selector, :periodicUpdate, :userInfo,

Re: [MacRuby-devel] NSTimer

2009-10-11 Thread Robert Rice
nection delegates or timers) - but for data crunching using all cores I will use something like Laurent's barber shop code: http://www.macruby.org/blog/2009/10/07/macruby05b1.html . J On Oct 11, 2009, at 6:19 PM, Robert Rice wrote: Congratulations MacRuby Development Team: My applic

Re: [MacRuby-devel] NSTimer

2009-10-11 Thread Robert Rice
;this is a test" rescue Exception => e raise "#{e.message} #{e.backtrace}" end - Matt On Sun, Oct 11, 2009 at 11:45 AM, Robert Rice wrote: Thanks John:: I wasn't familiar with this new syntax. I was using the old syntax "NSTimer.scheduledTimerWithTimeInterval_ta

Re: [MacRuby-devel] NSTimer

2009-10-11 Thread Robert Rice
see some performance problems it might be better to switch to a Thread instead. Laurent On Oct 11, 2009, at 12:55 PM, Robert Rice wrote: Hi Matt: I am using the most recent build. I get a traceback for compile errors but not for execution errors on the NS run loop. Bob On Oct 11, 20

Re: [MacRuby-devel] NSTimer

2009-10-11 Thread Robert Rice
Thanks: I filed the request. Bob Rice On Oct 11, 2009, at 5:10 PM, Jordan K. Hubbard wrote: On Oct 11, 2009, at 1:45 PM, Robert Rice wrote: NSTimer wil work well for my app except I will still need to use a thread to read data from my GPS receiver unless I can find a non- blocking serial

[MacRuby-devel] Obj C objects

2009-10-12 Thread Robert Rice
Hi Team: Converting a RubyCocoa project to MacRuby should I convert my Objective C objects to normal Ruby objects (excluding NS objects) and get rid of the call to alloc? Bob Rice ___ MacRuby-devel mailing list MacRuby-devel@lists.macosforge.org

Re: [MacRuby-devel] Obj C objects

2009-10-12 Thread Robert Rice
On Oct 12, 2009, at 3:15 PM, Laurent Sansonetti wrote: Hi Robert, Could you be more explicit? I don't understand your question :) Thanks, Laurent On Oct 12, 2009, at 8:15 AM, Robert Rice wrote: Hi Team: Converting a RubyCocoa project to MacRuby should I convert my Objective C ob

[MacRuby-devel] Serial Port I/O

2009-10-17 Thread Robert Rice
Hi Team: Do you have a recommended way to do serial port I/O in a MacRuby environment? I was using ruby-serialport in the RubyCocoa environment but the gem gives me the following error: Password: ERROR: While executing gem ... (RuntimeError) MacRuby does not support native extensions y

[MacRuby-devel] String methods missing in MacRuby

2009-11-28 Thread Robert Rice
Hi Group: The string.each method is undefined in MacRuby. I can work around it by using string.each_byte then convert the fixnum back to a character using the i.chr method. Also string.split( "" ) does not convert the string to an array as it did before. Bob Rice __

Re: [MacRuby-devel] String methods missing in MacRuby

2009-11-28 Thread Robert Rice
; does. > > each is not a method on String in 1.9 either, so I don't think this is a > MacRuby problem. > > You should file a bug for the problem with split(). > > On Nov 28, 2009, at 14:30, Robert Rice wrote: > >> Hi Group: >> >> The string.each

Re: [MacRuby-devel] String methods missing in MacRuby

2009-11-29 Thread Robert Rice
books? They don't like each as valid for String in 1.9. > > If you need to file a bug though (especially for your split problem) try > https://www.macruby.org/trac/report > > Jordan > > On Nov 28, 2009, at 18:09, Robert Rice wrote: > >> Hi Jordon: >> >&g

Re: [MacRuby-devel] String methods missing in MacRuby

2009-11-29 Thread Robert Rice
ov 29, 2009 at 12:37 PM, Conrad Taylor wrote: > On Sun, Nov 29, 2009 at 10:14 AM, Robert Rice wrote: > Thanks Jordon: > > I didn't realize that some core Ruby class methods changed for 1.9. I will > update my documentation. > > Bob Rice > > > Bob, this

Re: [MacRuby-devel] UTF8 Strings

2009-12-06 Thread Robert Rice
Hi Laurent: Can't comment on NSXMLDocument but I have been using REXML with MacRuby without any problems. Great job! Bob Rice On Dec 6, 2009, at 3:43 PM, s.ross wrote: > Laurent-- > > Sorry to be pesty about this XML thing, but I have Objective-C like this: > > NSString* xml = @"steve123

[MacRuby-devel] Error Handling

2009-12-29 Thread Robert Rice
MacRuby is working out well for my application with the exception of error handling. I find that I cannot get a traceback of all errors even when I have a rescue pushed on the stack. Sending a message to an undefined class action causes a hang with no error message that I cannot recover from. No

[MacRuby-devel] Input field list

2009-12-29 Thread Robert Rice
This is an unrelated Cocoa newbe question but I'm sure someone could help me. Is there a way to programmatically get a list of the input and control field objects in a view rather than linking all of the fields separately in Interface Builder? Thanks, Bob Rice _

[MacRuby-devel] REXML broken

2010-01-26 Thread Robert Rice
This problem started with either the 1/23 or the 1/24 nightly. Last login: Mon Jan 25 19:18:11 on console new-host:~ robertrice$ macirb irb(main):001:0> require "rexml/document" Assertion failed: (chmaxlen < sizeof(chbuf)), function unescape_escaped_nonascii, file re.c, line 2205. Abort trap new-

Re: [MacRuby-devel] REXML broken

2010-01-26 Thread Robert Rice
; On Jan 25, 2010, at 11:40 PM, Robert Rice wrote: > >> This problem started with either the 1/23 or the 1/24 nightly. >> >> Last login: Mon Jan 25 19:18:11 on console >> new-host:~ robertrice$ macirb >> irb(main):001:0> require "rexml

Re: [MacRuby-devel] Macruby and serialport

2010-02-04 Thread Robert Rice
Hi Jordan: Paolo Bosettti put an ObjC class on github several months ago that works well. Bob Rice On Feb 4, 2010, at 1:03 PM, Jordan K. Hubbard wrote: > > On Feb 4, 2010, at 8:03 AM, John-Paul Bader wrote: > >> Do you guys have any idea how to make macruby talk to the serial port or do >>

[MacRuby-devel] New error

2010-03-16 Thread Robert Rice
After loading the latest nightly build I have a new error message generated by the following string: "#{degrees}° #{minutes}' #{seconds}\"" returns: incompatible character encodings: US-ASCII and UTF-8 Is there something I can change so that I can use special characters again? Bob Rice

[MacRuby-devel] String functions not working in 3/17/2010 build

2010-03-17 Thread Robert Rice
Hi group: UTF-8 default is working again in 3/17 build but I have new problems with strings: Given: def reportDate return nil if @calendar.nil? desc = @calendar.dateValue.description desc.slice(0..3) + desc.slice(5..6) + de

[MacRuby-devel] NSView.knowsPageRange( range )

2010-05-22 Thread Robert Rice
I'm have some trouble understanding the new Pointer class. In older versions of MacRuby I used: def knowsPageRange( range ) # Override pagination. Image my clip on some printers # The range is passed by reference. range.location = 1 # first page number

Re: [MacRuby-devel] NSView.knowsPageRange( range )

2010-05-23 Thread Robert Rice
; > I don't know why range.location=1 was working in earlier versions of MacRuby. > It should really be a Pointer object. > > Laurent > > On May 22, 2010, at 9:50 PM, Robert Rice wrote: > >> I'm have some trouble understanding the new Pointer class. In older v

[MacRuby-devel] REXML

2010-06-09 Thread Robert Rice
Note to REXML users. I suspect that there is a bug in the each_element method of REXML. In the each_element loop I would get intermittent errors where the index was not a REXML element or I would get a Bad Instruction crash with no traceback. My system became stable after replacing calls to eac

[MacRuby-devel] ImageAndTextCell

2010-06-09 Thread Robert Rice
Has anyone used Apple's ImageAndTextCell in a MacRuby example? ImageAndTextCell is included in the "DragNDropOutlineView" sample code. Thanks, Bob Rice ___ MacRuby-devel mailing list MacRuby-devel@lists.macosforge.org http://lists.macosforge.org/mailma

[MacRuby-devel] malloc error

2010-07-26 Thread Robert Rice
MacRuby 0.6 is working well for me but I recently started getting the following malloc error while using the custom page size dialog in Page Setup: MacRuby 0.6 Release(774,0x7fff7045cc20) malloc: reference count underflow for 0x20275e080, break on auto_refcount_underflow_error to debug. MacRuby

[MacRuby-devel] PDF_View - Quartz Framework

2010-08-12 Thread Robert Rice
I recently added the Quartz framework and a PDF_View to my app. The PDF_View works great except for these warnings when I start my app: 2010-08-12 10:49:45.297 MacDriverLog[265:a0f] [QL] image sp_zoomp_handle not found 2010-08-12 10:49:45.300 MacDriverLog[265:a0f] [QL] image sp_zoomp_track_left

[MacRuby-devel] MacRuby hanging

2010-08-12 Thread Robert Rice
Hi MacRuby developers: Using MacRuby 0.6 stable, the most time consuming problem debugging is the tendency of MacRuby to hang without generating an error when calling an undefined method name. I usually can breakpoint until I find my error but occasionally the undefined method is called from a

Re: [MacRuby-devel] Break Points. Was Re: MacRuby hanging

2010-08-13 Thread Robert Rice
d that this class usually indicates a memory allocation problem. This problem started when I added PDFView and the Quartz.framework to my app. I don't want to have to remove my PDFView from my app. Bob Rice On Aug 12, 2010, at 10:31 PM, Henry Maddocks wrote: > > On 13/08/2010, at

[MacRuby-devel] Warnings from print operation

2010-08-15 Thread Robert Rice
Hi Developers: I get the followings warning from my PrintOperation: SimpleX_ViewController.print 2010-08-15 12:25:12.609 MacDriverLog-0.7[243:a0f] -[NSView(NSPrinting) beginPrologueBBox:creationDate:createdBy:fonts:forWhom:pages:title:] was deprecated before Mac OS 10.0 and overrides of it are

Re: [MacRuby-devel] Warnings from print operation

2010-08-15 Thread Robert Rice
ecated objective-c calls :-) > > -- > Thibault Martin-Lagardette > > > > On Aug 15, 2010, at 09:44, Robert Rice wrote: > >> Hi Developers: >> >> I get the followings warning from my PrintOperation: >> >> SimpleX_ViewController.print &

[MacRuby-devel] Fwd: Warnings from print operation

2010-08-15 Thread Robert Rice
end puts "view #{ currentOperation.view.class }" # OK super # super returns NSMakePoint( 0, 0 ) end end Thanks, Bob Rice Begin forwarded message: > From: Laurent Sansonetti > Date: August 16, 2010 12:18:21

Re: [MacRuby-devel] Warnings from print operation

2010-08-16 Thread Robert Rice
t; Could you show your source code? Just from what you pasted I would assume > you're using deprecated APIs. > > Laurent > > On Aug 15, 2010, at 3:19 PM, Robert Rice wrote: > >> Hi Thibault Martin-Lagardette: >> >> Yes, but the deprecated calls are originat

Re: [MacRuby-devel] Warnings from print operation

2010-08-19 Thread Robert Rice
les) 1.7MB? That's quite big for > a sample project, but maybe we can reduce its length. > > In any case, feel free to post it somewhere or e-mail it to me directly :) > > As for your bug, did you try building your main project for something higher > than 10.5? > >

[MacRuby-devel] super method

2010-09-07 Thread Robert Rice
Questions on the super method: Is the super method unique to MacRuby? super forwards the current message to the superclass with the same method name and arguments. Is there a way to send a message to the superclass method with different arguments either from within the subclass method of the sa

Re: [MacRuby-devel] super method

2010-09-07 Thread Robert Rice
it's not unique to MacRuby (Ruby and Obj-C support that feature) and yes > you can pass other arguments :) > > - Matt > > Sent from my iPhone > > On Sep 7, 2010, at 12:16, Robert Rice wrote: > >> Questions on the super method: >> >> Is the su

Re: [MacRuby-devel] super method

2010-09-08 Thread Robert Rice
> > - Matt > > Sent from my iPhone > > On Sep 7, 2010, at 12:53, Robert Rice wrote: > >> Thanks Matt: >> >> I didn't see super in the ruby-doc.org/ruby-1.9/index.html unless super is >> short for superclass. >> >> Can I reach a super

Re: [MacRuby-devel] super method

2010-09-08 Thread Robert Rice
Thanks Matt: I don't think I've seen any examples using the initWith method. Is that method called after init? Bob Rice On Sep 8, 2010, at 12:22 PM, Matt Aimonetti wrote: > initWith ___ MacRuby-devel mailing list MacRuby-devel@lists.macosforge.org

[MacRuby-devel] FYI - Update on NSView printing problem

2010-09-10 Thread Robert Rice
I tracked down my NSView printing problem to the NSPrintPanel preview view. My view printing now works again by overriding the default option to display the small preview view: def print po = NSPrintOperation.printOperationWithView( @printableView ) po.printPanel.setOptions( 0 )

Re: [MacRuby-devel] FYI - Update on NSView printing problem

2010-09-14 Thread Robert Rice
use this code into a new > Xcode project? > > If it only crashes in your app, maybe it's related to your view. How complex > is the view? > > Laurent > > On Sep 10, 2010, at 9:30 AM, Robert Rice wrote: > >> I tracked down my NSView printing problem t

Re: [MacRuby-devel] backtrace in cocoa callbacks ...

2010-09-14 Thread Robert Rice
Hi Steven: I've noticed that my backtraces (when I get them) are often incomplete. Some method calls will be missing from the backtrace. But I'm more concerned that some errors, e.g., undefined method names, will often cause a loop that I can't catch. And if I don't kill it quickly enough it wi

Re: [MacRuby-devel] Noob question: Interface builder not picking up MacRuby definitions

2010-09-15 Thread Robert Rice
Hi Iain: As my app has grown IB became very, very slow to update my MacRuby class information. Because of that I tend to avoid using IB to link outlets. Instead I tag my subfields and search for then in my initialization scripts using view.viewWithTag and for my new MacRuby classes I paste in t

Re: [MacRuby-devel] Noob question: Interface builder not picking up MacRuby definitions

2010-09-15 Thread Robert Rice
#x27;m > sure the team would be very interested in a perf problem that makes IB that > unusable. > > Matt > > On Sep 15, 2010, at 9:35 AM, Robert Rice wrote: > >> Hi Iain: >> >> As my app has grown IB became very, very slow to update my MacRuby class >

Re: [MacRuby-devel] Noob question: Interface builder not picking up MacRuby definitions

2010-09-15 Thread Robert Rice
download to start. > > /F > > 2010/9/15 Iain Barnett : >> >> On 15 Sep 2010, at 17:35, Robert Rice wrote: >> >>> Hi Iain: >>> >>> As my app has grown IB became very, very slow to update my MacRuby class >>> information. Because of t

Re: [MacRuby-devel] backtrace in cocoa callbacks ...

2010-09-17 Thread Robert Rice
Sep 2010, at 00:00, Robert Rice wrote: > >> After viewing the introduction to Xcode 4 and LLVM, I am curious if MacRuby >> compiler could be integrated into and directly compiled by LLVM. LLVM claims >> to have much improved diagnostics and an enviable analysis phase. Is this

Re: [MacRuby-devel] backtrace in cocoa callbacks ...

2010-09-18 Thread Robert Rice
00 PM, Ernest N. Prabhakar, Ph.D. wrote: > Hi Bob, > > On Sep 17, 2010, at 12:56 PM, Robert Rice wrote: >>>> After viewing the introduction to Xcode 4 and LLVM, I am curious if >>>> MacRuby compiler could be integrated into and directly compiled by LLVM. >>&

[MacRuby-devel] CSV class crashes macirb since 5/31/2010

2010-09-22 Thread Robert Rice
from macruby_nightly-2010-06-02.pkg: Last login: Thu Sep 23 00:44:07 on ttys001 new-host:~ robertrice$ macirb irb(main):001:0> require "CSV" Assertion failed: ((b->flags & flags) == flags), function rb_vm_prepare_block, file dispatcher.cpp, line 1481. Abort trap new-host:~ robertrice$ from mac

Re: [MacRuby-devel] CSV class crashes macirb since 5/31/2010

2010-09-23 Thread Robert Rice
Hi Laurent: OK. Remind me how to file a ticket. Bob Rice On Sep 23, 2010, at 4:21 PM, Laurent Sansonetti wrote: > Hi Robert, > > Could you report this as a ticket? > > Thanks, > Laurent > > On Sep 22, 2010, at 10:25 PM, Robert Rice wrote: > >> fr

Re: [MacRuby-devel] CSV class crashes macirb since 5/31/2010

2010-09-24 Thread Robert Rice
; FYI, you can access the tracker here: http://www.macruby.org/trac/ > > Laurent > > On Sep 23, 2010, at 1:37 PM, Robert Rice wrote: > >> Hi Laurent: >> >> OK. Remind me how to file a ticket. >> >> Bob Rice >> >> >> On Sep 23, 2010

[MacRuby-devel] 0.7 Release

2010-10-02 Thread Robert Rice
Hi Laurent: Great work! You have to reload version 0.6 to fully appreciate the performance increase. Today's nightly build deletes version 0.7 from the MacRuby framework but my project still references it: dyld: Library not loaded: /Library/Frameworks/MacRuby.framework/Versions/0.7/usr/lib/li

Re: [MacRuby-devel] 0.7 Release

2010-10-02 Thread Robert Rice
In the future we won't use the MacRuby version number in the link path to > avoid these problems :) > > Laurent > > On Oct 2, 2010, at 11:43 AM, Robert Rice wrote: > >> Hi Laurent: >> >> Great work! You have to reload version 0.6 to fully appreciate the >> perf

Re: [MacRuby-devel] 0.7 Release

2010-10-02 Thread Robert Rice
plain the missing symbol. Are you sure MacRuby.framework is included in > your Xcode project as a dependency? If yes, try removing it and adding it > again, maybe. > > Laurent > > On Oct 2, 2010, at 1:24 PM, Robert Rice wrote: > >> Hi Laurent: >> >> Tha

Re: [MacRuby-devel] Frameworks Help

2010-10-19 Thread Robert Rice
Hi Shaun: Lower case method names is only a convention. MacRuby will work fine using upper case, i.e., constant, method names. I know because I only recently changed my project to conform to the convention. Bob Rice On Oct 19, 2010, at 7:17 PM, Shaun August wrote: > Hi There, > > I am attemp

[MacRuby-devel] rtf gem

2010-10-28 Thread Robert Rice
I would like to use Peter Wood's rtf-0.1.0 gem but it requires deprecated file 'parsedate'. LoadError: no such file to load -- parsedate Can anyone suggest how I could get this gem to work? Thanks, Bob Rice ___ MacRuby-devel mailing list MacRuby-devel

Re: [MacRuby-devel] rtf gem

2010-10-28 Thread Robert Rice
28, 2010 at 8:48 AM, Robert Rice wrote: >> I would like to use Peter Wood's rtf-0.1.0 gem but it requires deprecated >> file 'parsedate'. >> LoadError: no such file to load -- parsedate >> Can anyone sugge

Re: [MacRuby-devel] Compiled Ruby files

2010-11-03 Thread Robert Rice
Hi Laurent: Does macruby_deploy have an option to compile .rb files in subdirectories of the Resources directory? For a large project some of us may want to better organize our source files. Thanks, Bob Rice On Nov 2, 2010, at 4:25 AM, Laurent Sansonetti wrote: > Hi Larry, > > Indeed, the R

Re: [MacRuby-devel] Compiled Ruby files

2010-11-05 Thread Robert Rice
Resources/**/*.rb')) > > without breaking anything, and without the need to add an option to the tool. > > Laurent > > On Nov 3, 2010, at 2:35 PM, Robert Rice wrote: > >> Hi Laurent: >> >> Does macruby_deploy have an option to compile .rb files in s

[MacRuby-devel] System crash - MacRuby priority

2010-11-06 Thread Robert Rice
I determined that my system crash was not due to an endless loop - rather due to a very inefficient algorithm. MacRuby seems to run at such a high priority that it can cause the system to crash - especially if a streaming video is running. Can I lower the priority of my MacRuby application? Th

Re: [MacRuby-devel] System crash - MacRuby priority

2010-11-07 Thread Robert Rice
what's > going on. Feel free to upload the profile somewhere if you want us to have a > look. > > Laurent > > On Nov 6, 2010, at 4:19 PM, Robert Rice wrote: > >> I determined that my system crash was not due to an endless loop - rather >> due to a very ine

Re: [MacRuby-devel] Compiled Ruby files

2010-11-09 Thread Robert Rice
reaking anything, and without the need to add an option to the tool. > > Laurent > > On Nov 3, 2010, at 2:35 PM, Robert Rice wrote: > >> Hi Laurent: >> >> Does macruby_deploy have an option to compile .rb files in subdirectories of >> the Resources dire

[MacRuby-devel] Compile target

2010-12-01 Thread Robert Rice
Hi MacRuby devotees: Would it be possible to configure XCODE and macruby_deploy to produce the compiled output in a separate folder and not delete the .rb source files? The .rbo files should be given the same time stamp as the .rb file so that recompiling could be optimized to only the files th

[MacRuby-devel] macirb malloc error

2010-12-04 Thread Robert Rice
I got this error using macirb but I couldn't reproduce it. Last login: Fri Dec 3 12:40:15 on ttys000 new-host:~ robertrice$ macirb irb(main):001:0> Deg_To_Rad = Math::PI / 180.0 => 0.0174532925199433 irb(main):002:0> Median_Radius_Feet= 20902221.0 => 20902221.0 irb(main):003:0> Median_Rad_Miles =

[MacRuby-devel] Segmentation fault

2010-12-06 Thread Robert Rice
Would it be possible to catch this error rather than allowing MacRuby to crash with a Segmentation fault: Last login: Mon Dec 6 11:05:14 on console new-host:~ robertrice$ macirb irb(main):001:0> nil.alloc.init Segmentation fault new-host:~ robertrice$ Thanks, Bob Rice

Re: [MacRuby-devel] csv.rb oddity

2011-01-07 Thread Robert Rice
Hi Gang: The CSV package provides several different methods to read and parse CSV files and I use several of the options in my application without any problems. The CSV.open method returns an instance of CSV as the error indicates. You invoke the shift method on a CSV instance to parse a line f

[MacRuby-devel] Help subclassing NSXMLElement

2011-01-09 Thread Robert Rice
I've been trying to subclass NSXMLElement in MacRuby without success. I have implemented NSXMLDocument.replacementClassForClass returning my custom subclass to replace NSXMLElement but the parser returns NSXMLFidelityElement instances rather than my custom class instances. Has anyone done this

Re: [MacRuby-devel] Help subclassing NSXMLElement

2011-01-09 Thread Robert Rice
> On Jan 9, 2011, at 11:47 AM, Robert Rice wrote: > >> I've been trying to subclass NSXMLElement in MacRuby without success. I have >> implemented NSXMLDocument.replacementClassForClass returning my custom >> subclass to replace NSXMLElement but the parser returns

[MacRuby-devel] Question on Hash performance

2011-01-13 Thread Robert Rice
I suspect that there is considerably more overhead in creating a Hash as compared to an Array and that using an Array is more efficient unless the Array will become large. I am wondering about how large the Array would have to be before it becomes more efficient to use a Hash. Consider the foll

[MacRuby-devel] is_a? method

2011-01-19 Thread Robert Rice
Hi: I notice that the obj.is_a? method does not work on a class constant. It only works on an instance of the class. Is this the way it should work? Do I need to create a loop checking using the superclass method to check the inheritance of a class or is there an easier way? Thanks, Bob Rice

Re: [MacRuby-devel] is_a? method

2011-01-19 Thread Robert Rice
will return true > a.kind_of? String will return false > > assuming I haven't miss understood your question. > > Dave. > > On 19 Jan 2011, at 21:06, Robert Rice wrote: > >> Hi: >> >> I notice that the obj.is_a? metho

[MacRuby-devel] macruby command in console

2011-01-19 Thread Robert Rice
Entering macruby by mistake on the console command line instead of macirb gets no reply. The user must type ctrl-C to abort it. Probably macruby should reply with usage information and exit. Bob Rice ___ MacRuby-devel mailing list MacRuby-devel@lists.

Re: [MacRuby-devel] is_a? method

2011-01-19 Thread Robert Rice
Hi Caio: Yep. That will work. I didn't find the <= class method in the RDoc. Thanks, Bob Rice On Jan 19, 2011, at 6:15 PM, Caio Chassot wrote: > On 2011-01-19, at 20:50 , Robert Rice wrote: >> >> You instantiated AnArray. Try this: >> >> class AnArray

Re: [MacRuby-devel] macruby command in console

2011-01-19 Thread Robert Rice
Hi Caio: Is macruby similar to macirb but without the prompts? Thanks, Bob Rice On Jan 19, 2011, at 6:17 PM, Caio Chassot wrote: > On 2011-01-19, at 20:55 , Robert Rice wrote: >> >> Entering macruby by mistake on the console command line instead of macirb >> gets no

[MacRuby-devel] MacDriverLog Installer

2011-01-24 Thread Robert Rice
Hi MacRubyists: MacDriverLog is an application I am developing for truckers using MacRuby. I can't fully test the installer without a second machine. I would appreciate it if someone could download it from http://MacDriverLog.com and let me know if the install package works. Thanks, Bob Rice

Re: [MacRuby-devel] MacDriverLog Installer

2011-01-25 Thread Robert Rice
1Q2K2C > > PS I know this is not what your question was about, feel free to ignore it, > but the font on that page you linked to is really not friendly on the eyes > imho. > > On Jan 25, 2011, at 3:22 AM, Robert Rice wrote: > >> Hi MacRubyists: >> >> MacDr

Re: [MacRuby-devel] MacDriverLog Installer

2011-01-25 Thread Robert Rice
t; Created as relative link with: $ ln -s original/For\ those\ who\ took\ the\ > effort.jpg > > On Jan 25, 2011, at 4:59 PM, Robert Rice wrote: > >> Hi Eloy: >> >> Thanks for the feedback. I used an alias file. Will a symlink work better >> than an alias file w

Re: [MacRuby-devel] is_a? method

2011-01-29 Thread Robert Rice
Hi Eric: Thanks, the ancestors method will work better. Do class objects inherit all of the Module methods? Bob Rice On Jan 29, 2011, at 1:22 AM, Eric Christopherson wrote: > On Wed, Jan 19, 2011 at 5:15 PM, Caio Chassot wrote: >> On 2011-01-19, at 20:50 , Robert Rice wrote: >

[MacRuby-devel] Ruby sort algorithm

2011-01-30 Thread Robert Rice
Hi: Does the Ruby Array sort algorithm maintain the relative position for children returning the same value for the comparison? I had an instance where two children having the compare value were interchanged. Thanks, Bob Rice ___ MacRuby-devel mailin

Re: [MacRuby-devel] Ruby sort algorithm

2011-01-30 Thread Robert Rice
gt; stable, for example. > > This is a common problem; most systems don't need a stable sort, so they use > Quicksort as a 'best general purpose' algorithm. > > -- Morgan > > On Sun, Jan 30, 2011 at 12:03 PM, Robert Rice wrote: > Hi: > > Does the Ruby A

Re: [MacRuby-devel] Ruby sort algorithm

2011-01-31 Thread Robert Rice
as a higher second (sequence) number, > meaning" > > puts "it's out of order now." > > puts paired.sort {|x,y| x.first <=> y.first }.inspect > > puts > > puts "Now we sort exclusively on the value, while preserving ordering;" >

Re: [MacRuby-devel] Ruby sort algorithm

2011-01-31 Thread Robert Rice
Hi Morgan: Thanks for all your help with the sort algorithm. It occurred to me that in my app I could sort my elements as I create them in my NSXMLParser delegate methods such that I wouldn't need to use a sort algorithm. I now have: def add_child( child ) change

[MacRuby-devel] Xcode 4

2011-03-14 Thread Robert Rice
Hi: Is MacRuby fully compatible with Xcode 4 or should I wait a while before upgrading? Thanks, Bob Rice ___ MacRuby-devel mailing list MacRuby-devel@lists.macosforge.org http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel

[MacRuby-devel] Degree symbol in toolTip

2011-03-29 Thread Robert Rice
I'm having trouble getting the degree symbol ° to display correctly in toolTips and Alert dialogs. Do I need to escape this special character somehow? Thanks, Bob Rice ___ MacRuby-devel mailing list MacRuby-devel@lists.macosforge.org http://lists.macosf

[MacRuby-devel] Computer Serial Number

2011-04-05 Thread Robert Rice
Hi Gang: Could anyone help me to read the computer's serial number from a MacRuby program. Since I don't know Objective C, I haven't been able to figure out how to access it. Thanks, Bob Rice ___ MacRuby-devel mailing list MacRuby-devel@lists.macosfo

Re: [MacRuby-devel] Computer Serial Number

2011-04-06 Thread Robert Rice
9:26 AM, Henry Maddocks wrote: > >> >> On 6/04/2011, at 9:10 AM, Robert Rice wrote: >> >>> Hi Gang: >>> >>> Could anyone help me to read the computer's serial number from a MacRuby >>> program. Since I don't know Objective C, I

[MacRuby-devel] NSString.to_data

2011-04-18 Thread Robert Rice
Using the Scripting Bridge to process e_mails, the bridge return NSString rather than String class when reading the message content. This works fine except that the .to_data method is undefined for NSString. I am able to use dataUsingEncoding as in the following: content = message.conte

[MacRuby-devel] Constant definitions

2011-05-24 Thread Robert Rice
Hi Fans: What changed on 5/19/2011? I haven't been able to use the nightly builds since 5/18/2011. Constant definitions stopped working and I get an uninitialized constant xxx (NameError) message wherever my code tries to reference a constant defined in the same class. Thanks, Bob Rice _

Re: [MacRuby-devel] Constant definitions

2011-05-24 Thread Robert Rice
o introduces others. We have tickets > covering the new bugs and Kouji-san is working on them. > > https://www.macruby.org/trac/ticket/1292 > https://www.macruby.org/trac/ticket/1288 > https://www.macruby.org/trac/ticket/1285 > > Laurent > > On May 24, 2011, at 8:

[MacRuby-devel] Serialport IO and OS X Lion

2011-08-20 Thread Robert Rice
Hi devotees, I was using an Obj-C wrapper for serial port IO written by Paolo Bosetti but I found that it no longer works in Lion. Does anyone know what might have changed? Does MacRuby have a better solution for serial IO yet than using an Obj-C wrapper? Thanks, Bob Rice

[MacRuby-devel] New warning message

2011-08-20 Thread Robert Rice
I get this new warning message running my MacRuby app on Lion: MacDriverLog(262,0x104f0e000) malloc: *** auto malloc[262]: error: GC operation on unregistered thread. Thread registered implicitly. Break on auto_zone_thread_registration_error() to debug. This doesn't crash my app. Can I safely i

Re: [MacRuby-devel] New warning message

2011-08-21 Thread Robert Rice
y GC warning that MacRuby has on Lion right now. > > Could you log a bug against MacRuby for this issue? > > Thanks, > Mark > > > On 2011-08-20, at 8:44 PM, Robert Rice wrote: > >> I get this new warning message running my MacRuby app on Lion: >> >

Re: [MacRuby-devel] Serialport IO and OS X Lion

2011-09-20 Thread Robert Rice
ails on this? Some system frameworks shipped > with GC regressions in Lion, maybe that's the problem here. > > Laurent > > On Sat, Aug 20, 2011 at 9:42 PM, Robert Rice wrote: >> Hi devotees, >> >> I was using an Obj-C wrapper for serial port IO written by Pao

Re: [MacRuby-devel] Document based application template

2012-01-08 Thread Robert Rice
Hi, I see that I'm not the only one having trouble using the MacRuby document-based project template although I am still using Xcode 3.2.4. I can create a new "MacRuby Application" project and the empty project will build and run ok, but now I to write a document-based application and the empty

  1   2   >