Skip navigation.
 
mlRe: Get a value from NSTableView and put it in a NSString
FROM : Shawn Erickson
DATE : Wed Aug 23 16:41:03 2006

On Aug 23, 2006, at 7:28 AM, Bastiaan wrote:

> Dear readers,
>
> I have a question and i think it will be easy to solve but i just 
> don't seem to come up with the solution myself, read trial and 
> error for hours now!
> So now i turn to this mailingslist in hope somebody can tell me or 
> show me how!
>
> Anyway, here is the problem:
>
> What i have is a NSTableView filled with data. my ArrayController 
> has a key called "file" which holds the names of diffrent files.
> I also have a download button which activates when a selection is 
> made in the list.
>
> We are now at the point where i get stuck!
> How do i get the value stored in the key "file" into a NSString, so 
> i can use that string in a NSUrlRequest to get the right file to 
> download.
>
> I really hope somebody outthere can help me with this problem!


Your NSTableView doesn't contain you data, it is just a view of your 
data. You do not get your data from it.

That table view, in your case, appears to be bound to an array 
controller. This array controller is connected or bound to an array 
instance some place (likely an array of NSDictionary instances).

So you get your data from that array either directly or via the array 
controller.

-Shawn

Related mailsAuthorDate
mlGet a value from NSTableView and put it in a NSString Bastiaan Aug 23, 16:28
mlRe: Get a value from NSTableView and put it in a NSString Felix Franz Aug 23, 16:40
mlRe: Get a value from NSTableView and put it in a NSString Shawn Erickson Aug 23, 16:41