Re: file ICONS
Re: file ICONS
- Subject: Re: file ICONS
- From: Uli Kusterer <email@hidden>
- Date: Tue, 11 Jul 2006 18:28:06 +0200
Am 11.07.2006 um 11:23 schrieb Omer Riaz:
I am very new to COCOA and Objective C.
First thing to learn: It's "Cocoa". It's not an abbreviation for
anything, it definitely isn't a French last name, and you don't want
people to think you're SHOUTING. ;-)
I am trying to Build a file browser in which every file in certain
folder should be displayed with an icon.
Can u please how i can display a file using icons. Should I use
NSBrowser or NSOutlineView to display these Icons.
Depends on how you want it to look and behave. Finder has dozens of
views.
NSOutlineView is like the Finder's list view (and pretty easy to
do), NSBrowser is like Finder column view. If you want a view with
icons that can be dragged around, you'll need a custom view (either
write one your own, or be lazy and use the one I wrote and which can
be found on my web site).
BTW -- if this is for selecting files for another use, you may find
a better, and more Mac-like option. E.g. check out "drag and drop",
which lets your users pick the file in Finder and then simply take it
and drop it into your application, and you get its pathname and can
work with the file. There's also NSOpenPanel/NSSavePanel which let
you pick files and can be customised (within limits) to contain
additional controls.
Cheers,
-- M. Uli Kusterer
http://www.zathras.de
_______________________________________________
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: | |
| >file ICONS (From: "Omer Riaz" <email@hidden>) |