Permalink
Browse files

Disabled "Show Document Palette" menu item

Currently the menu item's action method, popDocumentPalette:, just forces a crash
  • Loading branch information...
tedge committed Jan 22, 2011
1 parent 9e8f4c3 commit ddf108ffc6212b29bf0b231115d47e929ed2ba16
Showing with 3 additions and 0 deletions.
  1. +3 −0 Pixen Application/Canvas/PXCanvasWindowController_IBActions.m
@@ -181,6 +181,8 @@ - (BOOL)validateMenuItem:(NSMenuItem *)anItem
}
else if ([anItem action] == @selector(setPatternToSelection:))
return [[self canvas] hasSelection] && [[[PXToolPaletteController sharedToolPaletteController] currentTool] supportsPatterns];
+ else if ([anItem action] == @selector(popDocumentPalette:))
+ return NO; // currently no document palette, so disable the menu item
return YES;
}
@@ -360,6 +362,7 @@ - (IBAction)selectNone: (id) sender
- (IBAction)popDocumentPalette:sender
{
//FIXME: no palette, memory concerns, change this architecture some
+ // note: if this is implemented in the future, need to remove code in validateMenuItem: that disables the menu item
assert(0);
// [PXPalettePanel popWithPalette:[canvas palette] fromWindow:[NSColorPanel sharedColorPanel]];
}

0 comments on commit ddf108f

Please sign in to comment.