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
Don't make assumptions about a reverse-dependency's implementation. AKA, don't assume NSApp or NSApp's delegate conforms to a given protocol (even checking for conformance is wrong, because you shouldn't know about
Provide a delegate property in this case, don't directly access the application delegate. The application delegate could be your delegate, but you shouldn't know or care, only the Application Delegate would know or care in that case.
Rationale
These types of reverse dependencies make it harder to refactor and reorganize code and make components inherently less reusable.
Example
TBD
The text was updated successfully, but these errors were encountered:
Convention
Rationale
These types of reverse dependencies make it harder to refactor and reorganize code and make components inherently less reusable.
Example
TBD
The text was updated successfully, but these errors were encountered: