• 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: bug in NSGradient?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: bug in NSGradient?


  • Subject: Re: bug in NSGradient?
  • From: "Stephen J. Butler" <email@hidden>
  • Date: Sat, 22 Nov 2008 13:29:03 -0600

On Sat, Nov 22, 2008 at 4:12 AM, Graham Cox <email@hidden> wrote:
> Just noticed this, not what I was expecting. I'll file a bug unless someone
> can convincingly explain it's correct behaviour...
>
> [NSGradient interpolatedColorAtLocation:<value>];

[snip]

> For the case above this depends on whether the gradient will be drawn with
> the colour extending flags set, but since this method doesn't know about
> those flags, it's not well-defined. I would suggest that the method should
> assume the flags are set, since that's a useful assumption, whereas the
> opposite isn't.

Well, from a terminology point of view, nil is the right answer. You
can't "interpolate" beyond the end points. That's "extrapolation".
_______________________________________________

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

References: 
 >bug in NSGradient? (From: Graham Cox <email@hidden>)

  • Prev by Date: Re: bug in NSGradient?
  • Next by Date: Re: Testing components within an application
  • Previous by thread: bug in NSGradient?
  • Next by thread: Re: bug in NSGradient?
  • Index(es):
    • Date
    • Thread