• 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: When to relayout view in NSScrollView?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: When to relayout view in NSScrollView?


  • Subject: Re: When to relayout view in NSScrollView?
  • From: Allan Odgaard <email@hidden>
  • Date: Sun, 29 Feb 2004 17:50:40 +0100

On 29. Feb 2004, at 16:16, Allan Odgaard wrote:

Currently I implement 'viewDidMoveToSuperview' and do my (initial) layout there. [...]

An additional question: when I use setFrame: the view expands in the upper direction, i.e. the scroll view shows the bottom of my view.

I would like it to show the top of my view instead, should I use scrollPoint: or similar after setFrame:? i.e. can I be sure that the scroll view has reacted to my frame change?

Btw: if I flip my coordinates, I do get the desired behavior, but unfortunately I need to draw text with ATSUI, and this cannot handle a flipped view (it can, by giving a transform matrix with -1 for y, but metrics are fucked, like ascender, descender etc. and underline is drawn at the wrong position).
_______________________________________________
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.


References: 
 >When to relayout view in NSScrollView? (From: Allan Odgaard <email@hidden>)

  • Prev by Date: Cursor attribute won't save
  • Next by Date: Re: Databasing and Cocoa
  • Previous by thread: When to relayout view in NSScrollView?
  • Next by thread: Cursor attribute won't save
  • Index(es):
    • Date
    • Thread