Bug in NSImageView?
Bug in NSImageView?
- Subject: Bug in NSImageView?
- From: Daniel Todd Currie <email@hidden>
- Date: Tue, 20 Jul 2004 14:42:51 -0700
Before filing a bug report, I thought I'd fly this one by you folks...
I am programmatically adding custom view instances to my window like so:
- (IBAction)addGenerator:(id)sender
{
PTGeneratorView *newGeneratorView = [PTGeneratorController
newGenerator];
[generators addObject:newGeneratorView];
NSRect currentRect = [mainWindow frame];
[mainWindow setFrame:NSMakeRect(currentRect.origin.x,
(currentRect.origin.y - [newGeneratorView frame].size.height),
currentRect.size.width,
(currentRect.size.height + [newGeneratorView
frame].size.height))
display:YES
animate:YES];
[generatorListView addSubview:newGeneratorView];
[newGeneratorView setAutoresizingMask:NSViewMinYMargin |
NSViewNotSizable];
}
As I add more views, the views that I have previously added should
stick to the top of the generatorListView, and the new one placed at
the bottom of generatorListView. This works fine when
generatorListView is a "Custom View" from the IB Palette.
However, I would also like a background color in the generatorListView,
so I set it to an NSImageView and everything is ruined. My subviews no
longer stick to the top of the generatorListView, so they all pile on
top of each other at the bottom. The ONLY thing I changed was the
class of generatorListView in IB from a "Custom View" to an "Image
View".
Shouldn't the NSImageView behave the same way as the NSView?
-- DTC
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.