• 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: My Slider has spikes
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: My Slider has spikes


  • Subject: Re: My Slider has spikes
  • From: Ron Fleckner <email@hidden>
  • Date: Fri, 13 Apr 2007 11:12:20 +1000


On 13/04/2007, at 10:37 AM, Andrew Farmer wrote:

On 12 Apr 07, at 17:26, Ron Fleckner wrote:
Hi,
I make a popup window for a slider in my app. My problem is that the slider has strange little barbs or spikes near the ends of it's 'track' and the ends of the track are squared off rather than rounded. Here's the whole code I use to create the window...
<snip>

My first guess would be that the slider dimensions are wrong - a full-size slider is 21 pixels wide, and you're trying to make it stretch to 32. (Is there any reason you aren't putting this all in a nib?)

Hi Andrew,

setting the slider width to 32 (35 actually) makes it position nicely in it's window. But, if a slider must be 21, I'll do that and adjust it's origin. Murat Konar saw the problem: I'd flipped the slider's view and the rounded ends were being drawn at the wrong ends, leading to the rounded parts intruding into the slider's track as spikes.

Thanks for your info

Ron
_______________________________________________

Cocoa-dev mailing list (email@hidden)

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


References: 
 >My Slider has spikes (From: Ron Fleckner <email@hidden>)
 >Re: My Slider has spikes (From: Andrew Farmer <email@hidden>)

  • Prev by Date: Re: My Slider has spikes
  • Next by Date: Re: My Slider has spikes
  • Previous by thread: Re: My Slider has spikes
  • Next by thread: Re: My Slider has spikes
  • Index(es):
    • Date
    • Thread