FROM : Keary Suska
DATE : Sun Apr 20 16:30:44 2008
on 4/20/08 7:27 AM, <email_removed> purportedly said:
> When I pass the selection of the Array Controller to my method, all I
> get for the parameter in NSLog is
>
> victim: <_NSControllerObjectProxy: 0x1059790> for the first parameter
> that was passed to the method.
>
> and trying to log [victim selection] or [victim selectionIndex], since
> it claims that it is an arrayController proxy, of course returns
> Unrecognized Selector.
>
> I just want to get either the index or the value of the array that my
> popupButton/NSArrayController combo has when the user selects an item
> from the popup. Anything that will just tell me which of the seven
> items the user chose from the popup (without using IBAction).
>
> What's the secret? If I could get an integer that is the array index,
> or the content of that selected array member, that's all that I need.
> The array is a mutable array of seven mutable dictionaries, and the
> same technique works fine for passing the selected item (i.e. the row)
> of a one-column tableView.
This is as documented. If you need the actual object, use -selectedObjects
instead.
HTH,
Keary Suska
Esoteritech, Inc.
"Demystifying technology for your home or business"
DATE : Sun Apr 20 16:30:44 2008
on 4/20/08 7:27 AM, <email_removed> purportedly said:
> When I pass the selection of the Array Controller to my method, all I
> get for the parameter in NSLog is
>
> victim: <_NSControllerObjectProxy: 0x1059790> for the first parameter
> that was passed to the method.
>
> and trying to log [victim selection] or [victim selectionIndex], since
> it claims that it is an arrayController proxy, of course returns
> Unrecognized Selector.
>
> I just want to get either the index or the value of the array that my
> popupButton/NSArrayController combo has when the user selects an item
> from the popup. Anything that will just tell me which of the seven
> items the user chose from the popup (without using IBAction).
>
> What's the secret? If I could get an integer that is the array index,
> or the content of that selected array member, that's all that I need.
> The array is a mutable array of seven mutable dictionaries, and the
> same technique works fine for passing the selected item (i.e. the row)
> of a one-column tableView.
This is as documented. If you need the actual object, use -selectedObjects
instead.
HTH,
Keary Suska
Esoteritech, Inc.
"Demystifying technology for your home or business"
| Related mails | Author | Date |
|---|---|---|
| Johnny Lundy | Apr 20, 02:58 | |
| Steve Weller | Apr 20, 06:49 | |
| Johnny Lundy | Apr 20, 15:06 | |
| Johnny Lundy | Apr 20, 15:27 | |
| Keary Suska | Apr 20, 16:30 |






Cocoa mail archive

