Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

mkristain

macrumors regular
Original poster
Aug 18, 2011
115
0
Hi all,

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

is IKImageBrowserView use for this or anything else

thanks.
 
Roll your own: write a subclass of NSTextFieldCell. Gives much better control and is really not terribly difficult.
 
in NSTextFieldCell can i display multiple file with their icons.

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.
 
what control is use to view files icon in table.
is IKImageBrowserView use for this or anything else
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.
 
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.
 
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.

Remember the article about "Help vampires"?
"Help vampires" suck the life out of groups that try to help people.
 
Remember the article about "Help vampires"?
"Help vampires" suck the life out of groups that try to help people.

its not ok all time if i really dont know or trying to do something where i qsk my question and queries.
 
its not ok all time if i really dont know or trying to do something where i qsk my question and queries.

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.
 
i just dont want to dispaly icon in one column i want to display all list item as icon.

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.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.