• 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
Problem adding subview to NSScroller subclass
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Problem adding subview to NSScroller subclass


  • Subject: Problem adding subview to NSScroller subclass
  • From: Gideon King <email@hidden>
  • Date: Sat, 07 Jul 2012 18:38:29 +1000

Hi all, I am creating a subclass of NSScroller so that I can add an accessory view. I have worked out the position to add it, and added it as a subview, but it is never drawn.

I have overridden the rectForPart: method to adjust the scroller size, and that leaves the gap as it should.

I overrode the drawSelf: method and got it to draw the frame of the accessory view, to make sure it was positioned correctly, and it drew in the right place.

Any ideas what I might be missing? Has anybody successfully added a subview to an NSScroller?


Thanks

Gideon







_______________________________________________

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: Problem adding subview to NSScroller subclass
      • From: Graham Cox <email@hidden>
    • Re: Problem adding subview to NSScroller subclass
      • From: Kyle Sluder <email@hidden>
    • Re: Problem adding subview to NSScroller subclass
      • From: Andy Lee <email@hidden>
  • Prev by Date: Re: Getting NSApplicationDelegate protocol
  • Next by Date: Re: Custom NSViews
  • Previous by thread: Re: NSTextView scrolls to top when text storage changes
  • Next by thread: Re: Problem adding subview to NSScroller subclass
  • Index(es):
    • Date
    • Thread