Re: Best way of displaying draggable file icons?
Re: Best way of displaying draggable file icons?
- Subject: Re: Best way of displaying draggable file icons?
- From: Christoffer Lerno <email@hidden>
- Date: Wed, 10 Nov 2004 23:06:29 +0100
On Nov 10, 2004, at 08:50, j o a r wrote:
On 2004-11-10, at 08.11, Christoffer Lerno wrote:
Now, how do I make this work most efficiently? I'd like to be able to
drag several of these icons together as well as one by one.
Displaying and dragging representations of files is pretty straight
forward - check the documentation that Apple provides on these topics.
Yeah, I think I know how to do that.
Is there some NSView or something which already have a similar
behaviour?
There is no NS* view that provides this out of the box, but it
shouldn't be that difficult for you to write one, especially if you
would base your implementation on NSBrowser or NSOutlineView. If you
don't like the concept of writing your own implementation, I think you
can find it from third parties (the PathFinder frameworks perhaps? I
haven't looked at them myself so I don't know for sure.) - check the
list archives and Cocoa resource web sites.
What I am looking for is basically to have the icons lining up
horizontally, maybe looking a little like the apple+tab application
switcher (or like the dock for that matter). I tried to implement this
using an NSMatrix but that gave me pretty weird results to say the
least. I don't have much (read: any) experience working with NSCell and
NSMatrix before this little experiment, so I might be making some
simple mistake. However, before I go on a quest to explore how to do
this with NSMatrix, perhaps it's best to ask if there's not some
simpler way of doing it.
/C
_______________________________________________
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