gnustep-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: corebase runloop integration


From: Luboš Doležel
Subject: Re: corebase runloop integration
Date: Tue, 04 Feb 2014 00:14:52 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.1.1

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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]