Re: [MacRuby-devel] [hotcocoa] MVC helper?

2009-04-16 Thread s.ross
Thanks for this. I think it's pretty slick. I think the view name for the default project should be AccountSetupView, but other than that, cool. I'm just struggling with MacRuby and HotCocoa right now -- doing much more Rails, so maybe I'm the wrong person to ask. But the M ... as far as I

[MacRuby-devel] hpricot and MacRuby

2009-04-21 Thread s.ross
I've been toying around with MacRuby and I'm particularly interested in the MVC stuff that's been mentioned of late. I decided to do a proof of concept that consumes an XML-RPC Web service and wanted to parse it using hpricot. But... the gem won't build. Questions: Is it just me or has this

Re: [MacRuby-devel] hpricot and MacRuby

2009-04-21 Thread s.ross
0.5 pretty soon. In the mean time, HotCocoa has a XML parser which works pretty well, check the hotcocoa mappings + do a search on this mailing list to find a quick example wrote by Rich Kilmer. - Matt On Tue, Apr 21, 2009 at 3:00 PM, s.ross wrote: I've been toying around with Mac

[MacRuby-devel] Is There A List of Gems That Don't Install on 0.4?

2009-08-27 Thread s.ross
I'm wanting to access a Web service via XML-RPC. My Ruby solution includes XML-RPC and Nokogiri. I'm unable to get these gems to install under MacRuby 0.4 (and probably shouldn't expect that). Is there a good solution for doing this or should I be patient? Thanks, Steve ___

[MacRuby-devel] Failed Assertion from 2009-09-04 Nightly Build

2009-09-13 Thread s.ross
Not sure whether this is the right way to report this, but I have a trivial XCode MacRuby project that consistently causes the assertion shown below. I can package up the project if need be. OSX 10.6.1 Here is the console log (did a Build > Clean All Targets, the Build & Run): run [Switc

Re: [MacRuby-devel] Failed Assertion from 2009-09-04 Nightly Build

2009-09-15 Thread s.ross
pcoming release. Laurent On Sep 13, 2009, at 3:39 PM, s.ross wrote: Not sure whether this is the right way to report this, but I have a trivial XCode MacRuby project that consistently causes the assertion shown below. I can package up the project if need be. OSX 10.6.1 Here is the console l

Re: [MacRuby-devel] Failed Assertion from 2009-09-04 Nightly Build

2009-09-28 Thread s.ross
uter? This could explain the problem, MacRuby trunk doesn't currently run on 32-bit machines. This will be solved for the upcoming release. Laurent On Sep 13, 2009, at 3:39 PM, s.ross wrote: Not sure whether this is the right way to report this, but I have a trivial XCode MacRu

Re: [MacRuby-devel] trunk status update

2009-10-05 Thread s.ross
Great progress. I'm pretty sure you would have mentioned it in the release notes if it were stable, but has there been any progress making MacRuby work properly on Snow Leopard 32-bit architectures like the Core Duo? (nag, nag :) Thx On Oct 5, 2009, at 2:34 PM, Laurent Sansonetti wrote:

Re: [MacRuby-devel] trunk status update

2009-10-05 Thread s.ross
Laurent Sansonetti wrote: Hi, I fixed several 32-bit bugs, so it should be better. However, the specs don't pass at 100% yet (a notable thing is that ruby exceptions cannot be intercepted by objc). Feel free to give it a try and let us know if it's better now :) Laurent On Oct 5,

Re: [MacRuby-devel] trunk status update

2009-10-06 Thread s.ross
Hello- On Oct 5, 2009, at 10:48 PM, Vincent Isambart wrote: [Switching to process 1982] Running… 2009-10-05 22:29:51.141 IStockCocoa[1982:80f] Error loading /Library/InputManagers/GearsEnabler.old/GearsEnabler.bundle/ Contents/MacOS/GearsEnabler: dlopen(/Library/InputManagers/GearsEnabler.old/

Re: [MacRuby-devel] trunk status update

2009-10-06 Thread s.ross
Whoa, thanks for the help with the Gears enabler. It didn't relate to the problem. It was, as is most often the case, user error on my part. Reduced: class ControllerBase < NSObject end class TitleController < ControllerBase @ControllerBase.setTextColor(NSColor::redColor) # <= yeah, right.

Re: [MacRuby-devel] trunk status update

2009-10-06 Thread s.ross
arch -i386 macruby -e "@foo.bar" -e:in `': undefined method `bar' for nil:NilClass (NoMethodError) It would be awesome if you could extract the crash to a separate project and attach it to a Trac ticket. Laurent On Oct 6, 2009, at 8:18 AM, s.ross wrote: Whoa, than

Re: [MacRuby-devel] NSTimer

2009-10-11 Thread s.ross
Well in the meantime, doesn't a daemon that issues distributed notifications accomplish a similar goal? Hunted and pecked from my iPhone On Oct 11, 2009, at 2: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 s

Re: [MacRuby-devel] Using Gems in MacRuby

2009-10-15 Thread s.ross
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 web but have not found a good explanation on how to use gems in a MacRuby project. Is there a tutorial I am missing? We should definitely

Re: [MacRuby-devel] Using Gems in MacRuby

2009-10-15 Thread 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 web but have not found a good explanation

[MacRuby-devel] Implementing Undo In RaiseMan / MacRuby

2009-10-25 Thread s.ross
I'm trying to implement the RaiseMan example from Aaron Hillegass's book in MacRuby. All has gone pretty well until I reached undo. The idea is to handle the insertObject message each time a Person is inserted and manipulate the undo stack. def insertObject(p, inEmployeesAtIndex:index)

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

2009-10-25 Thread s.ross
On Oct 25, 2009, at 5:00 PM, Matt Aimonetti wrote: 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 It looks like it's time for me to move my tutorials http://merbist.com/category/macruby/

Re: [MacRuby-devel] Implementing Undo In RaiseMan / MacRuby

2009-10-26 Thread s.ross
ne? if not perhaps you could post somewhere the MyDocument.rb code for us to look at? Cheers, J On Sun, Oct 25, 2009 at 7:17 PM, s.ross wrote: I'm trying to implement the RaiseMan example from Aaron Hillegass's book in MacRuby. All has gone pretty well until I reached undo. The i

Re: [MacRuby-devel] Implementing Undo In RaiseMan / MacRuby

2009-10-28 Thread s.ross
debugging as opposed to wiring things up in code IMO. Not a solution but perhaps you can work around it, by using your own controller actions, and then exploring the undo aspects? Cheers, John On Mon, Oct 26, 2009 at 4:06 PM, s.ross wrote: John-- I've started a github repo at

Re: [MacRuby-devel] [MacRuby] #394: Unrecognized runtime type _NSRange=II

2009-10-29 Thread s.ross
On Oct 28, 2009, at 11:25 PM, MacRuby wrote: #394: Unrecognized runtime type _NSRange=II --- + Reporter: cwdi...@… |Owner: lsansone...@… Type: defect | Status: closed Priority: b

[MacRuby-devel] rSpec for MacRuby

2009-11-01 Thread s.ross
When installing the gem using macgem, a shebang line is written pointing to macruby. The "spec" binary copied into /usr/bin forever after (or until manually edited or reinstalled) contains that shebang. Until MacRuby is close to parity with MRI (say... when MRI can run Rails), this may make

[MacRuby-devel] UTF8 Strings

2009-12-05 Thread s.ross
My code receives XML data from a Web Service API call that is in UTF8 encoding. This winds up in a string. return_data = NSURLConnection.sendSynchronousRequest(@request, returningResponse: response, error: error) str = NSString.alloc.initWithData(return_data, encoding: NSUTF8StringEncod

Re: [MacRuby-devel] UTF8 Strings

2009-12-05 Thread s.ross
Laurent-- Thanks for the quick reply. See comments below: On Dec 5, 2009, at 4:22 PM, Laurent Sansonetti wrote: > Hi Steve, > > On Dec 5, 2009, at 1:45 PM, s.ross wrote: > >> My code receives XML data from a Web Service API call that is in UTF8 >> encoding. T

Re: [MacRuby-devel] UTF8 Strings

2009-12-06 Thread s.ross
ocumentTidyXML constant is not defined so I just transcribed the equivalent bitshift * The resultant XML document is null I'm not filing this as a bug because I think it might be a failure on my part to understand how this set of methods maps onto MacRuby. Thanks, Steve On Dec 5, 2009,

Re: [MacRuby-devel] UTF8 Strings [resolved]

2009-12-06 Thread s.ross
This was a combination of what Vincent said [read the documentation... sorry about my snippy reply earlier] and what is apparently my misreading of the "How Does MacRuby Work?" Wiki page. Brian, your pointer led me down the path toward understanding the underlying mapping of types that caused th

Re: [MacRuby-devel] UTF8 Strings

2009-12-06 Thread s.ross
On Dec 6, 2009, at 6:41 PM, Laurent Sansonetti wrote: > Hi Steve, > > On Dec 5, 2009, at 5:10 PM, s.ross wrote: >> What I really want to use is Nokogiri. My main issue is that I'm having to >> reimplement XML-RPC because the Ruby Std. Lib version is broken over SSL.

Re: [MacRuby-devel] UTF8 Strings [resolved]

2009-12-06 Thread s.ross
I tidied up the code and put a bunch of comments in it. You can see it on: http://github.com/sxross/MacRuby-Examples/tree/master/nsxml_example/ --steve On Dec 6, 2009, at 7:20 PM, Jordan K. Hubbard wrote: > > On Dec 6, 2009, at 7:17 PM, s.ross wrote: > >> So the working

[MacRuby-devel] Would a macruby-newbie List Be Worthwhile?

2009-12-15 Thread s.ross
There are a number of questions I know I have coming from a Ruby/Rails and not a Cocoa background. These questions can be difficult to answer in the context of Objective-C (and heck, Ruby makes a lot of the Objective-C syntactic vinegar just go away). They are also not specifically about MacRuby