Re: NSScroller methods not being called
Re: NSScroller methods not being called
- Subject: Re: NSScroller methods not being called
- From: Michael Watson <email@hidden>
- Date: Fri, 25 Jan 2008 19:54:17 -0500
As I hit send, the thought occurred to me that my assumption was bad.
(As those things tend to go.) It would make more sense that the method
is simply a private compartmentalization for scroller part drawing
that I shouldn't rely on.
--
m-s
On 25 Jan, 2008, at 19:51, 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.
--
m-s
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