• 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: NSScrollView: General Question When does scrollRectToVisible does not scroll?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSScrollView: General Question When does scrollRectToVisible does not scroll?


  • Subject: Re: NSScrollView: General Question When does scrollRectToVisible does not scroll?
  • From: Alastair Houghton <email@hidden>
  • Date: Mon, 25 Jun 2007 18:12:55 +0100

On 24 Jun 2007, at 12:48, Georg Filios wrote:

IBOutlet NSScrollView * scrollView;

(void) doScrolling
{

BOOL success =[[scrollView contentView] scrollRectToVisible;

	// ==> success = NO (in certain cases)

}

When are you calling this method? It could be that you're calling it at a time that doesn't make sense (e.g. during an existing scroll-to- visible request).


Another thing to check would be what the rectangle you're passing looks like; stick something like

NSLog (@"(%f, %f) %f x %f", rect.origin.x, rect.origin.y, rect.size.width, rect.size.height);

in your code and see what it says. Maybe you're passing a funny rectangle.

Kind regards,

Alastair.

--
http://alastairs-place.net


_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please 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


  • Follow-Ups:
    • Re: [SOLVED] NSScrollView: General Question When does scrollRectToVisible does not scroll?
      • From: Georg Filios <email@hidden>
References: 
 >NSScrollView: General Question When does scrollRectToVisible does not scroll? (From: Georg Filios <email@hidden>)

  • Prev by Date: Re: ObjC 3D engine
  • Next by Date: Re: int to NSString?
  • Previous by thread: Re: NSScrollView: General Question When does scrollRectToVisible does not scroll?
  • Next by thread: Re: [SOLVED] NSScrollView: General Question When does scrollRectToVisible does not scroll?
  • Index(es):
    • Date
    • Thread