New To Mac-Forums?

Welcome to our community! Join the discussion today by registering your FREE account. If you have any problems with the registration process, please contact us!

Get your questions answered by community gurus Advice and insight from world-class Apple enthusiasts Exclusive access to members-only contests, giveaways and deals

Join today!

 
Start a Discussion
 

Mac-Forums Brief

Subscribe to Mac-Forums Brief to receive special offers from Mac-Forums partners and sponsors

Join the conversation RSS
OS X - Development and Darwin Discussion and questions about development for Mac OS X.

ScrollView and Scroller problem


Post Reply New Thread Subscribe

 
Thread Tools
tohihaho

 
Member Since: May 19, 2008
Posts: 2
tohihaho is on a distinguished road

tohihaho is offline
The situation is like this:
I have a subclass of NSView, which in enclosed by NSScrollView.
I don't know if I have done it right:
in init function I have:
Code:
 if ((self = [super initWithFrame:frameRect]) != nil) 
    {
        [[self enclosingScrollView] setDocumentView: self];
...
So ... when I open the window, where this nsview is drawn, the scrolling won't work till I click on the knob of the scroller (only vertical scroller). The same is when I make:
Code:
[[[self enclosingScrollView] verticalScroller] setFloatValue:value];
After that when I roll the scroller of the mouse - the NSScrollView scrolls from the last "scrolled" place.
I read that the method trackKnob "tells" the scroller that the knob has been clicked, and I tried to use it but as it seems, I can't create appropriate Event to send to it.
Anyone can help me? Pleeeease
QUOTE Thanks

Post Reply New Thread Subscribe


« xcode question | help a desperate AP Computer Science high school student »
Thread Tools

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off
Forum Jump

All times are GMT -4. The time now is 10:29 AM.

Powered by vBulletin
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
X

Welcome to Mac-Forums.com

Create your username to jump into the discussion!

New members like you have made this community the ultimate source for your Mac since 2003!


(4 digit year)

Already a member?