• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Custom Views and Dragging ...
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.


  • Follow-Ups:
    • Re: Custom Views and Dragging ... [ with attitude ]
      • From: J Nozzi <email@hidden>
References: 
 >Custom Views and Dragging ... (From: J Nozzi <email@hidden>)

  • Prev by Date: Inhibiting sorting from IB?
  • Next by Date: Re: System Preferences...
  • Previous by thread: Custom Views and Dragging ...
  • Next by thread: Re: Custom Views and Dragging ... [ with attitude ]
  • Index(es):
    • Date
    • Thread