mirror of
https://github.com/Ranchero-Software/NetNewsWire
synced 2025-08-12 06:26:36 +00:00
Move sentence about bindings to the right section.
This commit is contained in:
@@ -112,12 +112,14 @@ Stack views are not allowed in table and outline view cells, but they can be use
|
||||
|
||||
Use nil-targeted actions and the responder chain when appropriate.
|
||||
|
||||
Use Cocoa bindings extremely rarely — for a checkbox in a preferences window, for instance. `NSArrayController` and similar are never used. Binding via code is also not done.
|
||||
Use Cocoa bindings extremely rarely — for a checkbox in a preferences window, for instance.
|
||||
|
||||
### Notifications and Bindings
|
||||
|
||||
Key-Value Observing (KVO) is entirely forbidden. KVO is where the crashing bugs live. (The only possible exception to this is when an Apple API requires KVO, which is rare.)
|
||||
|
||||
`NSArrayController` and similar are never used. Binding via code is also not done.
|
||||
|
||||
Instead, we use NotificationCenter notifications, and we use Swift’s `didSet` method on accessors.
|
||||
|
||||
All notifications must be posted on the main queue.
|
||||
|
||||
Reference in New Issue
Block a user