3 ms·
>- - - - Delegation. A control has simple defaults but may consult you if you provide a specific method. You don’t have to describe a complex behavior of say N
by wruza 7y ago
>- - - -
Delegation. A control has simple defaults but may consult you if you provide a specific method. You don’t have to describe a complex behavior of say NSTableView beforehand, you just set yourself as its delegate and then decide at beforedraw-time which rows will be group rows, how to patch cell’s colors and fonts, etc. It is a very good part of desktop ui design. Web controls never delegate anything beyond trivial onaction=f(event).