* GormCore/GormPalettesManager.m: Cleanup

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/apps/gorm/trunk@26489 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Gregory John Casamento 2008-05-04 22:10:22 +00:00
parent bbedb6dd68
commit 2dc0287a63
2 changed files with 8 additions and 23 deletions

View file

@ -1,3 +1,7 @@
2008-05-04 18:09-EDT Gregory John Casamento <greg_casamento@yahoo.com>
* GormCore/GormPalettesManager.m: Cleanup
2008-05-04 18:00-EDT Gregory John Casamento <greg_casamento@yahoo.com>
* GormCore/GormPalettesManager.m: Crrrection for issue with palette

View file

@ -510,17 +510,6 @@ static NSImage *dragImage = nil;
window = [palette originalWindow];
[window setExcludedFromWindowsMenu: YES];
// Resize the window appropriately so that we don't have issues
// with scrolling.
if([window styleMask] & NSBorderlessWindowMask)
{
// [window setFrame: NSMakeRect(0,0,272,160) display: NO];
}
else
{
// [window setFrame: NSMakeRect(0,0,272,192) display: NO];
}
// manage palette data.
[palettesDict setObject: palette forKey: className];
[palettes addObject: palette];
@ -633,16 +622,6 @@ static NSImage *dragImage = nil;
[panel setTitle: [NSString stringWithFormat: @"Palettes (%@)",
[palette className]]];
/*
* Move the views from their original window into our drag view.
* Resize our drag view to the right size fitrst.
*/
wv = [[palette originalWindow] contentView];
if(wv)
{
// [dragView setFrameSize: [wv frame].size];
}
// iterate over the subviews and add them to the dragview.
enumerator = [[wv subviews] objectEnumerator];
while ((sv = [enumerator nextObject]) != nil)
@ -676,8 +655,10 @@ static NSImage *dragImage = nil;
NSMethodSignature *signature = [cls instanceMethodSignatureForSelector: sel];
if([signature numberOfArguments] == 3)
{
if([actionSig isEqual: signature] && NSEqualRanges([methodName rangeOfString: @"set"], setRange) == NO &&
[methodName isEqual: @"encodeWithCoder:"] == NO && [methodName isEqual: @"mouseDown:"] == NO)
if([actionSig isEqual: signature] &&
NSEqualRanges([methodName rangeOfString: @"set"], setRange) == NO &&
[methodName isEqual: @"encodeWithCoder:"] == NO &&
[methodName isEqual: @"mouseDown:"] == NO)
{
[actionsArray addObject: methodName];
}