Re: Custom Views and Dragging ...
Re: Custom Views and Dragging ...
- Subject: Re: Custom Views and Dragging ...
- From: Allan Odgaard <email@hidden>
- Date: Thu, 22 Apr 2004 02:33:34 +0200
On 21. Apr 2004, at 22:17, J Nozzi wrote:
- How NSScrollView and NSClipView objects work together.
See
http://developer.apple.com/documentation/Cocoa/Conceptual/DrawViews/
index.html
Among the articles are:
o About Scroll Views
o About Clip Views
- What the difference between containerView and documentView really
is.
The contentView is an NSClipView which clips the document. The
documentView is the actual document.
- How to *properly* make a custom NSView subclass draggable ONLY
within the bounds of a superview (I'm using NSContainsRect([superView
bounds], rect) as a hit test).
- How to drag and drop a custom view between two different
superviews (okay, this one is probably well-explained, I just don't
get it).
Huh??? When do you need to do these things? and why? Normally the user
drags around a simple image, it could depict some custom view, but it
is not the actual view you drag around.
** Cocoa FAQ: <
http://www.alastairs-place.net/cocoa/faq.txt> **
_______________________________________________
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.