From 8167c46cfce3e2777f70f6ae4b8eb5f129cfa479 Mon Sep 17 00:00:00 2001 From: Aparajita Fishman Date: Tue, 20 Mar 2012 12:51:30 -0700 Subject: [PATCH] Added documentation for registerThemeValues methods --- AppKit/CPView.j | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/AppKit/CPView.j b/AppKit/CPView.j index ace7030b6..5369033f7 100644 --- a/AppKit/CPView.j +++ b/AppKit/CPView.j @@ -2593,6 +2593,13 @@ setBoundsOrigin: return (_themeAttributes && _themeAttributes[aName] !== undefined); } +/*! + Registers theme values encoded in an array at runtime. The format of the data in the array + is the same as that used by ThemeDescriptors.j. For more information see the comments + at the top of ThemeDescriptors.j. + + @param themeValues array of theme values +*/ - (void)registerThemeValues:(CPArray)themeValues { for (var i = 0; i < themeValues.length; ++i) @@ -2609,6 +2616,15 @@ setBoundsOrigin: } } +/*! + Registers theme values encoded in an array at runtime. The format of the data in the array + is the same as that used by ThemeDescriptors.j. The values in \c inheritedValues are + registered first, then those in \c themeValues override/augment the inherited values. + For more information see the comments at the top of ThemeDescriptors.j. + + @param themeValues array of base theme values + @param inheritedValues array of overridden/additional theme values +*/ - (void)registerThemeValues:(CPArray)themeValues inherit:(CPArray)inheritedValues { // Register inherited values first, then override those with the subtheme values.