Using .new vs .init.alloc
Dr Nic
2 posts
|
In the pdf, around p47-48 it discusses the use of #new vs #init.alloc based on the latter being a descendent of NSObject. I started a RubyCocoa.tmbundle to attempt to help pick the correct one (http://github.com/drnic/rubycocoa-tmbundle/tree/master). If you’ve got:
when you press tab it autocompletes to Hopefully this is helpful for newbies like me. |
christophe
3 posts
|
thanks for that doc! |
christophe
3 posts
|
i have come up with a way it also calls initialize in cases where you just still too green behind the ears. |
3 posts, 2 voices
