• 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
Avoid moving texture when resizing scrollview
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Avoid moving texture when resizing scrollview


  • Subject: Avoid moving texture when resizing scrollview
  • From: "Simon Strandgaard" <email@hidden>
  • Date: Tue, 23 Jan 2007 09:54:17 +0100

When resizing the scrollview then the osx-grey-striped-texture moves,
as if the origin is in the left/bottom corner. The view already has
flipped coordinates.

how do I change the origin to the left/top corner?



Implementation Details
I have a custom nsview inside a scrollview, that can hold a variable
number of controls. This custom nsview does not implement drawRect.
The controls have different sizes, and I programmatically assign
frame rects. I use -(BOOL)isFlipped { return YES; }, so that controls
can be added top-down while keeping track of the y-position.


-- Simon Strandgaard http://opcoders.com/ _______________________________________________

Cocoa-dev mailing list (email@hidden)

Do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Prev by Date: SOLVED: how to debug -[NSAutoreleasePool dealloc]: Exception ignored...-[_NSZombie forward::]
  • Next by Date: Trouble with bindings, NSPopupButtonCell and normal datacell
  • Previous by thread: SOLVED: how to debug -[NSAutoreleasePool dealloc]: Exception ignored...-[_NSZombie forward::]
  • Next by thread: Trouble with bindings, NSPopupButtonCell and normal datacell
  • Index(es):
    • Date
    • Thread