You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
false is returned here because the custom methods are not applied to objects not created by HotCocoa.
Why should custom methods only apply to objects created by HotCocoa?
I think that custom methods should work everywhere. Mixing in methods only once to the class should be more efficient and would solve this issue. However, we need to be careful of inheritance and not break the lazy loading feature.
The text was updated successfully, but these errors were encountered:
The proper way to handle this is to subclass NSNetServer and then to include HotCocoa::Behaviors, which will mix in HotCocoa custom methods and delegate hooks.
However, there still exists the case where object is created by Cocoa and you have no control over that. For instance, when browsing for bonjour services, a new NSNetService will be created for you for each service that is found. It would still be nice if we could handle this case.
It returns
true
because the custom method is mixed in to the singleton class instead of the actual class.false
is returned here because the custom methods are not applied to objects not created by HotCocoa.Why should custom methods only apply to objects created by HotCocoa?
I think that custom methods should work everywhere. Mixing in methods only once to the class should be more efficient and would solve this issue. However, we need to be careful of inheritance and not break the lazy loading feature.
The text was updated successfully, but these errors were encountered: