there you go: http://ofps.oreilly.com/titles/9781449380373/ch01.html#_syntactic_sugar
- Matt On Fri, Mar 25, 2011 at 7:24 AM, dan sinclair <d...@everburning.com> wrote: > Sweet, didn't know about the automatic translation of objectForKey:. Will > keep that in mind before wrapping it, heh. Are there any other methods to > keep in mind that MacRuby automatically translates to a Ruby-ish version? > > Thanks, > dan > > > On 2011-03-25, at 3:14 AM, Thibault Martin-Lagardette wrote: > > > That's pretty cool :-). > > > > Although "def [](key)" in nsuserdefaults_additions.rb seems to be > unnecessary, because macruby should already do that. It should automatically > replace [] and []= calls to objectForKey: and setObject:forKey: (when > necessary only, of course). > > I see you added deletion and sync on []=, which is why I didn't point it > being unnecessary :-) > > > > > > -- > > Thibault Martin-Lagardette > > > > On Friday, March 25, 2011 at 02:21, 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. > >> > >> Out of curiosity, what's the correct way to mark a gem as MacRuby only > so I can push it up to rubygems.org? > >> > >> dan > >> > >> > >> > >> > >> On Mar 24, 2011, at 8:56 PM, Matt Aimonetti wrote: > >> > >>> Rich just sold his company to Living Social and I'm sure he's really > busy ATM. > >>> If people are willing to hack on this project and maintain it (the core > team won't), we probably should move it to its own repo and give commit > rights to people. > >>> > >>> Who's interested in created a HotCocoa team? > >>> > >>> Thanks, > >>> > >>> - Matt > >>> > >>> > >>> On Thu, Mar 24, 2011 at 11:37 AM, Manfred Stienstra <manf...@gmail.com> > wrote: > >>> > >>> On Mar 24, 2011, at 6:57 PM, Perry E. Metzger wrote: > >>> > >>>> Would anyone who was previously involved in the maintenance of the > >>>> project explain what would be involved in a new set of people > >>>> maintaining the code base? > >>> > >>> The blessed repository is on GitHub [1]. I'm sure Rich would love to > accept patches for the from anyone who's interested in working on it. > >>> > >>> Manfred > >>> > >>> [1] https://github.com/richkilmer/hotcocoa > >>> _______________________________________________ > >>> 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 > >> > >> _______________________________________________ > >> 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 > > _______________________________________________ > 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