I look forward to your book with impatience. From the other stuff I have seen of yours, I expect that it will be both informative and literate.
May I put in a plea, hopefully before it is too late? Could you please either make mastery of xcode optional---which I would prefer---or provide a mental model for it that makes it coherent? Every purported introduction attempts to lead me by the hand through a morass of totally unmotivated complexity while expecting me to be grateful for how it is simplifying my life. It would be a great pity if the elegance of Macruby could only be appreciated after hacking ones way through miles of xcode underbrush. --Martin Kay On Dec 29, 2009, at 10:46 PM, macruby-devel-requ...@lists.macosforge.org wrote: > Send MacRuby-devel mailing list submissions to > macruby-devel@lists.macosforge.org > > To subscribe or unsubscribe via the World Wide Web, visit > http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel > or, via email, send a message with subject or body 'help' to > macruby-devel-requ...@lists.macosforge.org > > You can reach the person managing the list at > macruby-devel-ow...@lists.macosforge.org > > When replying, please edit your Subject line so it is more specific > than "Re: Contents of MacRuby-devel digest..." > > > Today's Topics: > > 1. Error Handling (Robert Rice) > 2. Input field list (Robert Rice) > 3. Re: Input field list (Steven Canfield) > 4. Re: Input field list (Matt Aimonetti) > 5. detect the language of a string (Matt Aimonetti) > 6. Re: detect the language of a string (Conrad Taylor) > > > ---------------------------------------------------------------------- > > Message: 1 > Date: Tue, 29 Dec 2009 20:42:00 -0500 > From: Robert Rice <rice.au...@pobox.com> > To: "MacRuby development discussions." > <macruby-devel@lists.macosforge.org> > Subject: [MacRuby-devel] Error Handling > Message-ID: <22addfa8-03f6-4136-993c-26d3d7f47...@pobox.com> > Content-Type: text/plain; charset="us-ascii" > > 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. Nor can I > always get useful information from the "bt" command in GDB if GDB even > remains running after the error. > > Is there a way to trace actions calls from NSApplicationMain? > > Thanks, > Bob Rice > -------------- next part -------------- > An HTML attachment was scrubbed... > URL: > <http://lists.macosforge.org/pipermail/macruby-devel/attachments/20091229/570d90dd/attachment-0001.html> > > ------------------------------ > > Message: 2 > Date: Wed, 30 Dec 2009 00:01:33 -0500 > From: Robert Rice <rice.au...@pobox.com> > To: "MacRuby development discussions." > <macruby-devel@lists.macosforge.org> > Subject: [MacRuby-devel] Input field list > Message-ID: <df3450da-deb9-4146-9164-feedf2c71...@pobox.com> > Content-Type: text/plain; charset=us-ascii > > 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 > > > > ------------------------------ > > Message: 3 > Date: Tue, 29 Dec 2009 22:51:19 -0700 > From: Steven Canfield <stevencanfield.macr...@gmail.com> > To: "MacRuby development discussions." > <macruby-devel@lists.macosforge.org> > Cc: "MacRuby development discussions." > <macruby-devel@lists.macosforge.org> > Subject: Re: [MacRuby-devel] Input field list > Message-ID: <8475e755-d3bf-436f-9d98-1e72f48e8...@gmail.com> > Content-Type: text/plain; charset=us-ascii; format=flowed; > delsp=yes > > Get the views subviews and iterate on them by class name. - > isKindOfClass is the method. You could write filter / utility methods > to make this easier. > > Steve Canfield > > On Dec 29, 2009, at 10:01 PM, Robert Rice <rice.au...@pobox.com> wrote: > >> 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 mailing list >> MacRuby-devel@lists.macosforge.org >> http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel > > > ------------------------------ > > Message: 4 > Date: Wed, 30 Dec 2009 01:08:47 -0500 > From: Matt Aimonetti <mattaimone...@gmail.com> > To: "MacRuby development discussions." > <macruby-devel@lists.macosforge.org> > Subject: Re: [MacRuby-devel] Input field list > Message-ID: > <20fefa50912292208l737e788el5b25c26530fb0...@mail.gmail.com> > Content-Type: text/plain; charset="utf-8" > > note that Obj-C's isKindOfClass is the same as Ruby's #is_a? > > I would personally iterate on the subviews and use a switch case statement > to look at each item's class and act on them accordingly. > > - Matt > > On Wed, Dec 30, 2009 at 12:51 AM, Steven Canfield < > stevencanfield.macr...@gmail.com> wrote: > >> Get the views subviews and iterate on them by class name. -isKindOfClass is >> the method. You could write filter / utility methods to make this easier. >> >> Steve Canfield >> >> >> On Dec 29, 2009, at 10:01 PM, Robert Rice <rice.au...@pobox.com> wrote: >> >> 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 mailing list >>> MacRuby-devel@lists.macosforge.org >>> http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel >>> >> _______________________________________________ >> MacRuby-devel mailing list >> MacRuby-devel@lists.macosforge.org >> http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel >> > -------------- next part -------------- > An HTML attachment was scrubbed... > URL: > <http://lists.macosforge.org/pipermail/macruby-devel/attachments/20091230/0d0ef9c4/attachment-0001.html> > > ------------------------------ > > Message: 5 > Date: Wed, 30 Dec 2009 01:20:26 -0500 > From: Matt Aimonetti <mattaimone...@gmail.com> > To: "MacRuby development discussions." > <macruby-devel@lists.macosforge.org> > Subject: [MacRuby-devel] detect the language of a string > Message-ID: > <20fefa50912292220r7bd28211veece8c6f84e09...@mail.gmail.com> > Content-Type: text/plain; charset="utf-8" > > Curious of seeing if I could use a Cocoa framework to detect the language of > a string, I ended up finding a surprisingly clean and easy solution. > I decided to post my findings online since I couldn't find anything when I > googled the topic: > > http://merbist.com/2009/12/29/fun-with-macruby/ > > In less than 10LOC, here is how to implement this feature: > > > framework 'Foundation' > class String > > def language > CFStringTokenizerCopyBestStringLanguage(self, CFRangeMake(0, self.size)) > > end > end > > "bonne ann?e!".language # => "fr" > > - Matt > -------------- next part -------------- > An HTML attachment was scrubbed... > URL: > <http://lists.macosforge.org/pipermail/macruby-devel/attachments/20091230/d2366100/attachment-0001.html> > > ------------------------------ > > Message: 6 > Date: Tue, 29 Dec 2009 22:46:07 -0800 > From: Conrad Taylor <conra...@gmail.com> > To: "MacRuby development discussions." > <macruby-devel@lists.macosforge.org> > Subject: Re: [MacRuby-devel] detect the language of a string > Message-ID: > <7317d7610912292246i3127b84dgfae9c8b403491...@mail.gmail.com> > Content-Type: text/plain; charset="iso-8859-1" > > On Tue, Dec 29, 2009 at 10:20 PM, Matt Aimonetti > <mattaimone...@gmail.com>wrote: > >> Curious of seeing if I could use a Cocoa framework to detect the language >> of a string, I ended up finding a surprisingly clean and easy solution. >> I decided to post my findings online since I couldn't find anything when I >> googled the topic: >> >> http://merbist.com/2009/12/29/fun-with-macruby/ >> >> In less than 10LOC, here is how to implement this feature: >> >> framework 'Foundation' >> class String >> >> >> def language >> CFStringTokenizerCopyBestStringLanguage(self, CFRangeMake(0, self.size)) >> >> >> end >> end >> >> "bonne ann?e!".language # => "fr" >> >> - Matt >> >> > Matt, this is very cool and thanks for the post. > > -Conrad > > >> _______________________________________________ >> MacRuby-devel mailing list >> MacRuby-devel@lists.macosforge.org >> http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel >> >> > -------------- next part -------------- > An HTML attachment was scrubbed... > URL: > <http://lists.macosforge.org/pipermail/macruby-devel/attachments/20091229/28aa9d63/attachment.html> > > ------------------------------ > > _______________________________________________ > MacRuby-devel mailing list > MacRuby-devel@lists.macosforge.org > http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel > > > End of MacRuby-devel Digest, Vol 22, Issue 62 > ********************************************* _______________________________________________ MacRuby-devel mailing list MacRuby-devel@lists.macosforge.org http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel