Minor radio button change on init and info plist dependency.

Reviewed by me.
This commit is contained in:
Francisco Ryan Tolmasky I
2009-11-14 10:57:19 -08:00
parent 9d50b33268
commit d584b4dccf
2 changed files with 12 additions and 2 deletions
+2 -2
View File
@@ -98,7 +98,7 @@
if (self)
{
[self setRadioGroup:aRadioGroup || [CPRadioGroup new]];
[self setRadioGroup:aRadioGroup];
[self setHighlightsBy:CPContentsCellMask];
[self setShowsStateBy:CPContentsCellMask];
@@ -115,7 +115,7 @@
- (id)initWithFrame:(CGRect)aFrame
{
return [self initWithFrame:aFrame radioGroup:nil];
return [self initWithFrame:aFrame radioGroup:[CPRadioGroup new]];
}
- (CPInteger)nextState
@@ -388,6 +388,16 @@ BundleTask.prototype.defineInfoPlistTask = function()
if (infoPlistPath && FILE.exists(infoPlistPath))
filedir (infoPlistProductPath, [infoPlistPath]);
// FIXME: ? We do this because adding a .j file should cause Info.plist to be updated.
// Any better way to handle this? Perhaps this should happen unconditionally.
this.flattenedEnvironments().forEach(function(/*Environment*/ anEnvironment)
{
if (!anEnvironment.spritesImages())
return;
filedir (infoPlistProductPath, this.buildProductStaticPathForEnvironment(anEnvironment));
}, this);
this.enhance([infoPlistProductPath]);
}