query NSPopupButtonCell (bindings newbie)
query NSPopupButtonCell (bindings newbie)
- Subject: query NSPopupButtonCell (bindings newbie)
- From: Saggau <email@hidden>
- Date: Sat, 6 May 2006 18:36:00 -0400
I have an NSTable Column that uses NSPopupButtonCell to allow selection from
the contents of an array controller (soundFilePaths). The NSTable is
getting data from another array controller (triggerModels).
How do I create the binding that allows me to fire a method in the
appDelegate that takes the currently selected triggerModel and the
soundFilePath as arguments when the user selects one of the soundFilePaths
from the NSPopupButtonCell in the NSTableColumn?
| NSTableColumn
_________________________________________________________________
(Trigger Model 0) | NSPopupButtonCell listing the contents of the
soundFilePaths array controller
_________________________________________________________________
(Trigger Model 1) | NSPopupButtonCell listing the contents of the
soundFilePaths array controller
_________________________________________________________________
(Trigger Model 2) | NSPopupButtonCell listing the contents of the
soundFilePaths array controller
User selects a soundFilePath from the NSPopupButtonCell corresponding to
Trigger Model 2 ^
Bindings then call:
[AppDelegate setSoundFilepath: soundFilePath // <-- selected path in
NSPopupButtonCell
forTriggerModel: triggerModel] // <--- triggerModel
corresponding to table row
Cheers,
Jonathan Saggau
--
The extent to which an individual can resist being blindly led by tradition
is a good measure of his vitality. - Harry Partch
There is a computer disease that anybody who works with computers knows
about. It's a very serious disease and it interferes completely with the
work. The trouble with computers is that you 'play' with them! - Richard P.
Feynman
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden