FROM : Johnny Lundy
DATE : Sun Apr 20 19:21:48 2008
That works. I did not use the selectedObjects before because my
understanding was that was for detail controllers of detail views.
It is passed wrapped in a one-element NSArray, and I can extract the
dictionary with objectAtIndex:0.
Thanks ever so much - two days struggling with this. I was literally
starting to write to dts and burn one of my Tech Support Incidents
when I saw your reply.
Johnny
On Apr 20, 2008, at 12:39 PM, <email_removed> wrote:
> Date: Sun, 20 Apr 2008 08:30:44 -0600
> From: Keary Suska <<email_removed>>
> Subject: Re: NSPopupButton Bindings
> To: "Cocoa-Dev (Apple)" <<email_removed>>
> Message-ID: <C430AFB4.216B8%<email_removed>>
> Content-Type: text/plain; charset="US-ASCII"
>
> 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 19:21:48 2008
That works. I did not use the selectedObjects before because my
understanding was that was for detail controllers of detail views.
It is passed wrapped in a one-element NSArray, and I can extract the
dictionary with objectAtIndex:0.
Thanks ever so much - two days struggling with this. I was literally
starting to write to dts and burn one of my Tech Support Incidents
when I saw your reply.
Johnny
On Apr 20, 2008, at 12:39 PM, <email_removed> wrote:
> Date: Sun, 20 Apr 2008 08:30:44 -0600
> From: Keary Suska <<email_removed>>
> Subject: Re: NSPopupButton Bindings
> To: "Cocoa-Dev (Apple)" <<email_removed>>
> Message-ID: <C430AFB4.216B8%<email_removed>>
> Content-Type: text/plain; charset="US-ASCII"
>
> 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 |
|---|---|---|
| No related mails found. | ||






Cocoa mail archive

