• 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: [Math] sin(), cos() not working? What special magic must I use to summon their powers?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Math] sin(), cos() not working? What special magic must I use to summon their powers?


  • Subject: Re: [Math] sin(), cos() not working? What special magic must I use to summon their powers?
  • From: Graham Cox <email@hidden>
  • Date: Sat, 4 Oct 2008 16:55:18 +1000


On 4 Oct 2008, at 2:17 pm, Michael Robinson wrote:

Now I'd like to replace this:

NSGradient* aGradient = [[[NSGradient alloc] initWithColorsAndLocations:[gradientColour1 color], (CGFloat)0.0, [gradientColour2 color], (CGFloat)1.0,nil] autorelease];

[aGradient drawInBezierPath:aPath angle:[gradientOpacitySlider floatValue]];


With a 10.4 compatible solution.

Though I'm sure the solution *is* in the project you referred me too, I can' t see it. I apologize for my ineptitude.

Is there a one-liner I can use to replace my current code?


Google for 'CTGradient' or 'GCGradient', both of which are similar objects to NSGradient but work on 10.4. You will probably find that it's not a one-liner, but maybe as few as two or three.


hth,

Graham
_______________________________________________

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: [Math] sin(), cos() not working? What special magic must I use to summon their powers?
      • From: Michael Robinson <email@hidden>
References: 
 >Re: [Math] sin(), cos() not working? What special magic must I use to summon their powers? (From: Alastair Houghton <email@hidden>)
 >Re: [Math] sin(), cos() not working? What special magic must I use to summon their powers? (From: Michael Robinson <email@hidden>)
 >Re: [Math] sin(), cos() not working? What special magic must I use to summon their powers? (From: David Duncan <email@hidden>)
 >Re: [Math] sin(), cos() not working? What special magic must I use to summon their powers? (From: Michael Robinson <email@hidden>)

  • Prev by Date: Re: NSOutlineView assertion failures
  • Next by Date: Re: [Math] sin(), cos() not working? What special magic must I use to summon their powers?
  • Previous by thread: Re: [Math] sin(), cos() not working? What special magic must I use to summon their powers?
  • Next by thread: Re: [Math] sin(), cos() not working? What special magic must I use to summon their powers?
  • Index(es):
    • Date
    • Thread