• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: NSScroller methods not being called
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSScroller methods not being called


  • Subject: Re: NSScroller methods not being called
  • From: John Stiles <email@hidden>
  • Date: Fri, 25 Jan 2008 15:35:55 -0800

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.)


Michael Watson wrote:
Thanks for the heads-up, Troy. I was tempted to override -drawRect, but wasn't sure if it was the "right way", 'cause of the docs.

Don't suppose there's a method to tell if the scroller is horizontal that isn't in the docs, is there?


-- m-s

On 25 Jan, 2008, at 16:24, Troy Stephens wrote:

Hi Michael,

The above methods are holdovers from the OpenStep API and aren't actually used on Mac OS X; they were obsoleted in the transition to the Aqua scroller appearance in 10.0. The reference documentation on them is out of date. (I'm filing a bug to get that fixed.)

If you need to do custom scroller drawing, overriding one or more of:

- (void)drawRect:(NSRect)rect;
- (void)drawKnob;
- (void)drawKnobSlotInRect:(NSRect)slotRect highlight:(BOOL)flag;
- (void)highlight:(BOOL)flag;

is the way to go.

Sorry for the confusion.

--
Troy Stephens
Cocoa Frameworks
Apple, Inc.

_______________________________________________

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
_______________________________________________

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


  • Follow-Ups:
    • Re: NSScroller methods not being called
      • From: Michael Watson <email@hidden>
References: 
 >NSScroller methods not being called (From: Michael Watson <email@hidden>)
 >Re: NSScroller methods not being called (From: Troy Stephens <email@hidden>)
 >Re: NSScroller methods not being called (From: Michael Watson <email@hidden>)

  • Prev by Date: Re: Getting the content-type in a HTTP response
  • Next by Date: Re: The mouse is where?
  • Previous by thread: Re: NSScroller methods not being called
  • Next by thread: Re: NSScroller methods not being called
  • Index(es):
    • Date
    • Thread