Re: NSScroller methods not being called
Re: NSScroller methods not being called
- Subject: Re: NSScroller methods not being called
- From: Troy Stephens <email@hidden>
- Date: Fri, 25 Jan 2008 17:02:10 -0800
On Jan 25, 2008, at 4:51 PM, Michael Watson wrote:
This is what I was doing originally, but I thought I'd see if there
was a property for it.
So I would /assume/ that this method is also a NeXT hold-over:
- (void)drawArrow:(NSScrollerArrow)arrow highlightPart:(int)flag
Yes/no? It does appear to get used, but if -drawRect: is what I
should be using, that's what I'll use. Thanks guys.
That method isn't part of NSScroller's published API (note its absence
from NSScroller.h). Therefore it's subject to disappearing without
warning in a future release, and you should avoid any reliance on it
in your code.
Troy
On 25 Jan, 2008, John Stiles & Troy Stephens wrote:
I don't know about an official answer, but empirically, I've found
that the real NSScroller determines whether it is horizontal or
vertical by the frame that's passed in when it is first
initialized. Changing the frame after its first initialization
actually has no effect on its orientation. (Perhaps this helps in
cases when windows are resized to super-small sizes.)
There isn't a method for this specific purpose, but an NSScroller
considers itself horizontal if NSWidth(frame) > NSHeight(frame) at
the time it's created; vertical otherwise.
_______________________________________________
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