On 02/03/2014 10:54 PM, Luboš Doležel wrote: >> To answer your question, I think that sounds fine, but why not just >> > override NSRunLoop's designated initializer and just return NSCFRunLoop >> > (or whatever you want to call it)? Wouldn't that be easier than >> > checking for a symbol? Or am I missing something? > Well... method swizzling is considered "ugly" and overriding via > categories is "not guaranteed to work". At least that's what I've heard > when I examined such possibilities for other stuff.
I looked into it again: "Methods defined in categories can replace methods defined in the class proper, but they cannot reliably replace methods defined in other categories." I suppose this could be good enough after all. I wouldn't expect any other NSRunLoop overrides around. -- Luboš Doležel _______________________________________________ Gnustep-dev mailing list Gnustep-dev@gnu.org https://lists.gnu.org/mailman/listinfo/gnustep-dev