guide me to implement icon view table.

Discussion in 'Mac Programming' started by mkristain, Oct 11, 2011.

  1. mkristain macrumors regular

    Joined:
    Aug 18, 2011
    #1
    Hi all,

    please help me what control is use to view files icon in table.

    is IKImageBrowserView use for this or anything else

    thanks.
     
  2. Sydde macrumors 68020

    Sydde

    Joined:
    Aug 17, 2009
    #2
    Roll your own: write a subclass of NSTextFieldCell. Gives much better control and is really not terribly difficult.
     
  3. mkristain thread starter macrumors regular

    Joined:
    Aug 18, 2011
    #3
    in NSTextFieldCell can i display multiple file with their icons.
     
  4. Sydde macrumors 68020

    Sydde

    Joined:
    Aug 17, 2009
    #4
    No, you cannot display icons at all in a NSTextFieldCell. That is why you would subclass it. How many you can display depends on how you write the subclass. If you do not understand what subclassing is, you need to get a book and learn Objective-C.
     
  5. Partron22 macrumors 68000

    Partron22

    Joined:
    Apr 13, 2011
    Location:
    Yes
    #5
    If you just want file icons in your table, use an Image Cell for one of the columns.
    NSWorkspace's iconForFile: will get you the icon, if you have a path.
    Just store that image in your datasource for the table and call NSArrayController addObjects: once you've stored all the icons you want.

    IKImageBrowserView is overkill for this simple situation.
     
  6. mkristain thread starter macrumors regular

    Joined:
    Aug 18, 2011
    #6
    i just dont want to dispaly icon in one column i want to display all list item as icon.

    same like in Finder when we select as Icon.

    so please help me.
     
  7. gnasher729 macrumors P6

    gnasher729

    Joined:
    Nov 25, 2005
    #7
    Remember the article about "Help vampires"?
    "Help vampires" suck the life out of groups that try to help people.
     
  8. mkristain thread starter macrumors regular

    Joined:
    Aug 18, 2011
    #8
    its not ok all time if i really dont know or trying to do something where i qsk my question and queries.
     
  9. gnasher729 macrumors P6

    gnasher729

    Joined:
    Nov 25, 2005
    #9
    developer.apple.com

    Apple provides all the documentation you need, tons of sample code, there is a programming course on iTunes University, there are plenty of places where you can learn.
     
  10. Partron22 macrumors 68000

    Partron22

    Joined:
    Apr 13, 2011
    Location:
    Yes
    #10
    Have you ever written code to display Icon in one column?
    Doing so will start to give you a proper grounding for learning to display arrays of images with an IKImageBrowserView.
     

Share This Page