Re: Image on TableView
Re: Image on TableView
- Subject: Re: Image on TableView
- From: Kerry Hazelgren <email@hidden>
- Date: Tue, 20 Jan 2004 22:13:56 -0700
On Jan 20, 2004, at 8:42 AM, Michael Becker wrote:
I need to do the following: I have a drag&drop-enabled tableview. Now,
if there are no items in the tableview, it's supposed to display a
picture and a text below, saying "Drag your files here". So far, I've
tried to put an imageview on top of the table. But when the image is
displayed in the imageview, and I try to drop files on the tableview,
it doesn't respond if I drop my file on the imageview.
Is there any way of maybe making the imageview (or customview) not
respond to anything? So that the tableview thinks the imageview wasn't
even there and still displays the focusring-border even when I drag my
files on the imageview?
Since a table view is usually contained in an NSScrollView,
specifically the table view is a subview of the content view (clip
view) of a scroll view, you could install your own view as the content
view of the scroll view in which your table view resides, then you can
display your own image in that content view. This would take some
trial and error, but I don't see why it shouldn't work.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.