Search Results

Search found 4 results on 1 pages for 'nsscroller'.

Page 1/1 | 1 

  • How to make a transparent NSScroller?

    - by aquaibm
    This is my application screenshot.There is only one NSScrollView on the window.I try to make all the scrollview elements transparent,and obviously parts of my code work, but the scroller doesn't. Here is my draw code for custom NSScroller subclass. - (void) drawRect: (NSRect)dirtyRect { [[NSColor clearColor] set]; NSRectFill(dirtyRect); [self drawKnob]; } Does anyone have a clue to make this work? Thanks a lot.

    Read the article

  • How to observe NSScroller changes?

    - by Paperflyer
    I have an NSScrollView subclass and I would like to update another NSView based on the current scroll position. I tried KVC-observing the value of [self horizontalScroller] but that never gets called. // In awakeFromNib [[self horizontalScroller] addObserver:self forKeyPath:@"value" options:NSKeyValueObservingOptionNew context:NULL]; // Later in the file - (void)observeValueForKeyPath:(NSString *)keyPath ofObject:(id)object change:(NSDictionary *)change context:(void *)context { if (object == [self horizontalScroller] && [keyPath isEqualToString:@"value"]) { // This never gets called } } Do you see an error in my reasoning or know a better method of how to observe the scrolling of an NSScrollview?

    Read the article

  • how to customize NSTokenField like in "To/ CC" fields in mac mail?

    - by Miraaj
    Hi all, I am able to work with NSTokenField, it is easy to use.. but I want your suggestions on how can I customize it just like it is in "To/ CC" fields in mac mail ie. when no. of tokens in a token field increases height of "To" field gets increased to a certain limit then a vertical scroller starts appearing! By default when we use a token field neither its height gets increased nor a vertical scroller appears! I tried different combinations in IB but I could not obtain mac mail like functionality. Can anyone suggest me some solution for it?? Thanks, Miraaj

    Read the article

  • How to include other controls in a scrollbar?

    - by Paperflyer
    I want to create a scrollview with a zooming control and a button next to the scrollbar. Sort of like the "tile window" button in XCode (top right corner of the editor), it should be in the same box that usually is used by the scrollbar only. Do you have an idea of how to approach this? I was thinking to use an NSScrollView and set the scrollbars to a custom subclass of NSScroller which includes the other widgets. What kinds of buttons use the same style as the scrollbar?

    Read the article

1