View Full Version : How can show file name and path of files in NSListView on launching of NSWindow?

Jun 6, 2011, 01:47 AM
Hi all,

i have 2 NSWindow,one is main app window and other is secondary window.

on button click on Main app window i m launching secondary window.

NSTableView use in secondary window.

i want when Secondary Window it show the file name and path of files of given location that is already assign in main window.

please help me for this.

thanks in advance.

Jun 6, 2011, 05:49 AM
So Learner, let's see what you've learnt so far.

What ideas do you have for doing this? May be not detailed plans, but you should by now at least be able to come up broad ideas.

What research have you done around NSListView? (Psst, Cocoa doesn't have a class called NSListView, it does though have a class called NSTableView).

Have you tried anything so far? What's been the results of what you've tried?

Jun 7, 2011, 03:02 AM
i have no idea about this sir.

but i really want to learn about this.

Jun 7, 2011, 03:14 AM
i have no idea about this sir.

but i really want to learn about this.

Okay, perhaps start off by learning about table views. Particularly about creating a data source for a table view. The Table View Programming Guide (http://developer.apple.com/library/mac/#documentation/Cocoa/Conceptual/TableView/TableView.html) will teach you about this.

Then come back with some ideas about how you could set up a data source of filenames and paths. I tell you if you're on the right track.