Re: Get a value from NSTableView and put it in a NSString
Re: Get a value from NSTableView and put it in a NSString
- Subject: Re: Get a value from NSTableView and put it in a NSString
- From: Shawn Erickson <email@hidden>
- Date: Wed, 23 Aug 2006 07:41:03 -0700
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
_______________________________________________
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