• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Get a value from NSTableView and put it in a NSString
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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: Felix Franz <email@hidden>
  • Date: Wed, 23 Aug 2006 16:40:27 +0200

Hi Bastian,

you can use the 'selection' or selectedObjects method of the ArrayController.
See
http://developer.apple.com/documentation/Cocoa/Conceptual/ CocoaBindings/Concepts/CntrlSelection.html#//apple_ref/doc/uid/ TP40002146


for the details. For example [arrayController valueForKeyPath: @"selection.file"] would return the value of the file-property.

Cheers,

felix




On Aug 23, 2006, at 4:28 PM, 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!

Regards Bastiaan




_______________________________________________ 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

_______________________________________________ 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
References: 
 >Get a value from NSTableView and put it in a NSString (From: Bastiaan <email@hidden>)

  • Prev by Date: Get a value from NSTableView and put it in a NSString
  • Next by Date: Re: Get a value from NSTableView and put it in a NSString
  • Previous by thread: Get a value from NSTableView and put it in a NSString
  • Next by thread: Re: Get a value from NSTableView and put it in a NSString
  • Index(es):
    • Date
    • Thread