Non-Document App & Binding to Delegate ...
Non-Document App & Binding to Delegate ...
- Subject: Non-Document App & Binding to Delegate ...
- From: SA Dev <email@hidden>
- Date: Wed, 6 Jul 2005 08:33:56 -0400
List:
I have a table full of tasks. In the table, I have a column of
'inspector' buttons. I want these buttons to open the inspector for
the corresponding task. Because I'm a lazy lazy man, I've just been
stuffing everything in the app delegate; it works. I already have a
working -openTaskInspectorForTask:(id)task method and I wired up my
double-click action to make sure it was working. All's well there.
Now to get the inspector button to work, I broke the double-click
connection and:
- I've bound the inspector button column's target to File's Owner
(NSApplication), to the key path 'delegate'. I specified
"openTaskInspectorForTask:" (w/out quotes, but with the colon).
- I've bound the column's argument to my Tasks array controller's
arrangedObjects (no key path).
I build, run, click ... and the method doesn't get called (I have
an NSLog() call to show me if the method's even being called).
What seems to be my misconception *today*? ;-)
_______________________________________________
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