How can show file name and path of files in NSListView on launching of NSWindow?

Discussion in 'Mac Programming' started by newformac, Jun 5, 2011.

  1. newformac, Jun 5, 2011
    Last edited by a moderator: Jun 7, 2011

    macrumors regular

    Joined:
    May 24, 2011
    #1
    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.
     
  2. jiminaus, Jun 6, 2011
    Last edited: Jun 6, 2011

    macrumors 65816

    jiminaus

    Joined:
    Dec 16, 2010
    Location:
    Sydney
    #2
    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?
     
  3. thread starter macrumors regular

    Joined:
    May 24, 2011
    #3
    How can show file name and path of files in NSTableView on launching of NSWindow?

    i have no idea about this sir.

    but i really want to learn about this.
     
  4. macrumors 65816

    jiminaus

    Joined:
    Dec 16, 2010
    Location:
    Sydney
    #4
    Okay, perhaps start off by learning about table views. Particularly about creating a data source for a table view. The Table View Programming Guide 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.
     

Share This Page