Cool, added. If you have others, feel free to fork and send me a pull request.
Thanks, dan On Mar 25, 2011, at 7:38 PM, Henry Maddocks wrote: > > On 25/03/2011, at 2:21 PM, dan sinclair wrote: > >> For me, I've basically dropped HotCocoa. After doing a few apps with it I >> quickly came to realize that I liked IB and building apps that way. The >> thing that I've missed from HotCocoa is all the little Ruby-ish extensions >> that it added to various classes. As I've built other apps I've been >> collecting up a few of those and decided to stuff them into a gem. >> >> You can see them at https://github.com/dj2/Bean if you're interested. > > > This is very good. I can see them being very useful. > > Here's one I use a lot. Feel free to add it. > > class NSIndexSet > include Enumerable > > def each > i = self.firstIndex > until i == NSNotFound > yield i > i = self.indexGreaterThanIndex(i) > end > end > > end > > > > Henry > > _______________________________________________ > 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