• 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
scrollPoint in NSScrollView does not scroll
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

scrollPoint in NSScrollView does not scroll


  • Subject: scrollPoint in NSScrollView does not scroll
  • From: Benjamin Rindt <email@hidden>
  • Date: Fri, 14 Jun 2013 01:53:43 +0200

Hey,
I'm trying this for I think over 3 hours just to get my View to scroll to a point when loaded. But not to start and cut off the rest of it, just be scrolled to there.

Tried it in my real project, didn't work, made small test project, doesn't work either.

    NSScrollView* myscrollview = [[NSScrollView alloc] initWithFrame:NSMakeRect(0, 0, 200, 200)];
    NSClipView* myclipview = [[NSClipView alloc] initWithFrame:NSMakeRect(0, 0, 500, 400)];
    [myscrollview setHasVerticalScroller:YES];
    [myscrollview setHasHorizontalScroller:YES];
    [myscrollview setDocumentView:myclipview];

    [[myscrollview documentView] scrollPoint:NSMakePoint(300.0, 300.0)];

    [self.window.contentView addSubview:myscrollview];


but this isn't scrolling anywhere. I'm shure I'm missing something. Thanks for reply!
_______________________________________________

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: scrollPoint in NSScrollView does not scroll
      • From: Keary Suska <email@hidden>
  • Prev by Date: How to share a temp file between Mac apps
  • Next by Date: Animating constraints iOS
  • Previous by thread: How to share a temp file between Mac apps
  • Next by thread: Re: scrollPoint in NSScrollView does not scroll
  • Index(es):
    • Date
    • Thread