New MacOS 10.4 methods for NSView plus some clean up and corrections.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@24783 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
fredkiefer 2007-03-06 16:11:45 +00:00
parent 459f7f2797
commit d7f2bb2e66
5 changed files with 276 additions and 118 deletions

View file

@ -67,8 +67,13 @@
//
- (id) initWithFrame: (NSRect)frameRect
{
[super initWithFrame: frameRect];
NSView *cv;
self = [super initWithFrame: frameRect];
if (!self)
return self;
_cell = [[NSCell alloc] initTextCell: @"Title"];
[_cell setAlignment: NSCenterTextAlignment];
[_cell setBordered: NO];
@ -80,10 +85,10 @@
_title_position = NSAtTop;
_title_rect = NSZeroRect;
[self setAutoresizesSubviews: NO];
_content_view = [NSView new];
[super addSubview: _content_view];
[_content_view setFrame: [self calcSizesAllowingNegative: NO]];
RELEASE(_content_view);
cv = [NSView new];
[self setContentView: cv];
RELEASE(cv);
return self;
}