• 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: Drawing gradients in views
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Drawing gradients in views


  • Subject: Re: Drawing gradients in views
  • From: Christopher Holland <email@hidden>
  • Date: Tue, 28 Jan 2003 21:19:03 -0600

On Tuesday, January 28, 2003, at 04:17 PM, Ian G. Gillespie wrote:

> Hi,
>
> I tried using the methods sent and I get this error:
>
> -redComponent not defined for the NSColor NSCalibratedWhiteColorSpace
> 1 1; need to first convert colorspace.
>
> How do I convert colorspace?

There is a method in NSColor to do just that. Check it out.

<
file:///System/Library/Frameworks/AppKit.framework/Versions/C/
Resources/English.lproj/Documentation/Reference/ObjC_classic/Classes/
NSColor.html >

---------------------------

colorUsingColorSpaceName:

- (NSColor *) colorUsingColorSpaceName: (NSString *) colorSpace
Creates and returns an NSColor whose color is the same as the
receiver's, except that the new NSColor is in the color space named
colorSpace . If colorSpace is nil , the most appropriate color space is
used.

Returns nil if the specified conversion cannot be done.

See Also: - colorSpaceName
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

References: 
 >Re: Drawing gradients in views (From: "Ian G. Gillespie" <email@hidden>)

  • Prev by Date: NSMessagePort
  • Next by Date: Re: [loading 16-bit png,psd|loading tiff from stdout]
  • Previous by thread: Re: Drawing gradients in views
  • Next by thread: Saving data
  • Index(es):
    • Date
    • Thread