diff options
author | konablend <[email protected]> | 2012-09-21 18:45:29 +0000 |
---|---|---|
committer | konablend <[email protected]> | 2012-09-21 18:45:29 +0000 |
commit | 9b3ab50a16042a2be298d15549cf30cbbc28f1c5 (patch) | |
tree | 1195f2c9ed9104393a5dd2fe69fb37b244d75bc0 /macosx/DockTextField.h | |
parent | 07c7f911312f4a72872507185a3088685d171ca4 (diff) |
- fix issue:
abort() called
*** Terminating app due to uncaught exception 'NSInvalidArgumentException'
reason: '*** -blueComponent not defined for the NSColor NSCustomColorSpace Generic RGB colorspace 0.5 0.5 0.5 1; need to first convert colorspace.'
- remove superfluous color conversions; according to NSGradient docs, any needed colorspace conversions of params are automatic
- use [NSColor colorWithAlphaComponent] to force alpha
- change [NSColor colorWithSRGBRed] to [NSColor colorWithDeviceRed] for 10.6 API compatibilty
- [cosmetic] rename parm withEndColor -> endColor
- [leak] release NSGradient
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@4972 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'macosx/DockTextField.h')
-rw-r--r-- | macosx/DockTextField.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/macosx/DockTextField.h b/macosx/DockTextField.h index a269211c7..593855b6b 100644 --- a/macosx/DockTextField.h +++ b/macosx/DockTextField.h @@ -12,6 +12,6 @@ @property (nonatomic,retain) NSColor *startColor; @property (nonatomic,retain) NSColor *endColor; -- (void)changeGradientColors:(NSColor*)startColor withEndColor:(NSColor*)endColor; +- (void)changeGradientColors:(NSColor*)startColor endColor:(NSColor*)endColor; @end |