Re: NSScroller question

2008-03-29 Thread slasktrattenator
This works perfectly, just what I was looking for. Many thanks! F. On Sat, Mar 29, 2008 at 4:39 PM, Steve Weller <[EMAIL PROTECTED]> wrote: > > Try looking at the source for TextEdit. TextEdit adds a pop-up at the > end of the horizontal scroller by overriding NSScrollView's tile: > method. Yo

Re: NSScroller question

2008-03-29 Thread Steve Weller
Try looking at the source for TextEdit. TextEdit adds a pop-up at the end of the horizontal scroller by overriding NSScrollView's tile: method. You may be able to change the layout so that the end of the NSScroller is clipped off. On Mar 29, 2008, at 4:57 AM, [EMAIL PROTECTED] wrote: Tha

Re: NSScroller question

2008-03-29 Thread slasktrattenator
Thanks Troy for the in-depth account. Yes, my goal is to customize the scroller's appearance, and yes, I wish this process involved less guess-work. As you say, there is no empty space when you let the scroller draw normally. You only see this when drawing a custom scroller based on the rects retur

Re: NSScroller question

2008-03-28 Thread Troy Stephens
As Hamish Allan pointed out, a scroller has logical "parts", but they are not subviews. -rectForPart: returns the bounding rects that are used for hit-testing those parts. In the olden days of OpenStep-style Scrollers and their purely rectangular parts, these were exact and the same rects

Re: NSScroller question

2008-03-27 Thread Hamish Allan
On Fri, Mar 28, 2008 at 1:17 AM, <[EMAIL PROTECTED]> wrote: > The white part above the slot is by > default black, but here I made it white by filling the rect returned > by calling [self rectForPart:NSScrollerNoParts]. [self rectForPart:NSScrollerNoPart] simply returns a rect in the scroller

Re: NSScroller question

2008-03-27 Thread slasktrattenator
Yes, I meant scroller, not slider. Just had a glass of wine too much :-) Actually I don't want to add an accessory view, I want to get rid of the one that appears to be there by default. I have attached a screenshot showing what I'm talking about. The yellow part is the knob, drawn by filling the

Re: NSScroller question

2008-03-27 Thread Troy Stephens
On Mar 27, 2008, at 4:26 PM, [EMAIL PROTECTED] wrote: Thanks, but the corner view is the right side corner of the header view, right? I was talking about the small view just below it, on top of the vertical slider and part of the slider itself. It's a tiny view of about 2 pixels height. I believ

Re: NSScroller question

2008-03-27 Thread slasktrattenator
Thanks, but the corner view is the right side corner of the header view, right? I was talking about the small view just below it, on top of the vertical slider and part of the slider itself. It's a tiny view of about 2 pixels height. I believe it corresponds to NSScrollerNoPart, but I'm not sure.

Re: NSScroller question

2008-03-27 Thread Troy Stephens
On Mar 27, 2008, at 9:50 AM, [EMAIL PROTECTED] wrote: Hi, NSScroller has a small view, by default two pixels high, just above the scroller and below the NSTableHeaderView's corner view. How can I get at this view? If you look at the XCode interface you can see they have put an icon in this view

NSScroller question

2008-03-27 Thread slasktrattenator
Hi, NSScroller has a small view, by default two pixels high, just above the scroller and below the NSTableHeaderView's corner view. How can I get at this view? If you look at the XCode interface you can see they have put an icon in this view (the one that splits the editor view) and made it larger