Hallo,
ich frage mich schon die ganze Zeit, wieso NSMenuItems keine target/action Bindings haben. Buttons haben target/action Bindings. Diese werden von mir gerne benutzt, um ohne Code zu schreiben Actions auszulösen. Besonders praktisch, sobald man mehrere nibs benutzt.
Ich quote mal die Doku:
"For every item in a menu, there’s an instance of NSMenuItem and NSMenuItemCell. NSMenuItem holds the item’s data and NSMenuItemCell displays it."
OT: Wobei das mit der NSMenuItemCell seine Gültigkeit verloren hat. "Note: NSMenuItemCell is no longer used to draw menus. Using it will not affect the appearance of your menus." Aber das nur am Rande.
Gibt es für das Fehlen dieser Bindings eine Erklärung? Technisch nicht realisierbar? Einfach "vergessen"? Von der Mehrheit der Entwickler nicht benötigt?
Danke.
ich frage mich schon die ganze Zeit, wieso NSMenuItems keine target/action Bindings haben. Buttons haben target/action Bindings. Diese werden von mir gerne benutzt, um ohne Code zu schreiben Actions auszulösen. Besonders praktisch, sobald man mehrere nibs benutzt.
Ich quote mal die Doku:
"For every item in a menu, there’s an instance of NSMenuItem and NSMenuItemCell. NSMenuItem holds the item’s data and NSMenuItemCell displays it."
OT: Wobei das mit der NSMenuItemCell seine Gültigkeit verloren hat. "Note: NSMenuItemCell is no longer used to draw menus. Using it will not affect the appearance of your menus." Aber das nur am Rande.
Gibt es für das Fehlen dieser Bindings eine Erklärung? Technisch nicht realisierbar? Einfach "vergessen"? Von der Mehrheit der Entwickler nicht benötigt?
Danke.
Die Objective-Cloud ist fertig wenn sie fertig ist. Beta heißt Beta.
Objective-C und Cocoa Band 2: Fortgeschrittene
Cocoa/Objective-C Seminare von [co coa:ding].
Objective-C und Cocoa Band 2: Fortgeschrittene
Cocoa/Objective-C Seminare von [co coa:ding].