• 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: scrolling and drawing porblems
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: scrolling and drawing porblems


  • Subject: Re: scrolling and drawing porblems
  • From: m <email@hidden>
  • Date: Mon, 6 Nov 2006 19:39:02 -0800
  • Resent-date: Mon, 6 Nov 2006 19:39:18 -0800
  • Resent-from: m <email@hidden>
  • Resent-message-id: <email@hidden>
  • Resent-to: Cocoa Dev <email@hidden>


On Nov 6, 2006, at 6:56 PM, Ivan Kourtev wrote:

On Nov 6, 2006, at 6:53 PM, Erik Buck wrote:

Here are a bunch of ideas in roughly decreasing order of sensibility:
  1) Try turning off copies on scroll behavior:

setCopiesOnScroll: Controls whether the receiver copies rendered images while scrolling.
- (void)setCopiesOnScroll:(BOOL)flag
3) You can also draw your immovable graphics as part of the clip view or part of the enclosing scroll view instead of part of the scrollview's document view. Think about the way the scrollview draws rulers. You can do that too via overriding the -tile method.



# (1) above easily did what I needed, although in the process of thinking about it I had already started thinking about going the way of (3).


Right now I simply drop my custom view inside a scrollview using IB. If I want to subclass the clip view, is it enough to create the subclass and then invoke setContentView for the scroll view?

You shouldn't need to subclass the clip view at all. Just disable copiesOnScroll from your custom view.


_murat
_______________________________________________
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


  • Prev by Date: Odd problem with NSOutlineView
  • Next by Date: Re: Scroll the text in NSTextField
  • Previous by thread: First click in custom window?
  • Next by thread: Dock menu with indented items (like iTunes), how?
  • Index(es):
    • Date
    • Thread