mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-30 03:50:39 +00:00
Fixed problems galore. :-)
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@4599 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
e43e92b68b
commit
d518bc6a5e
8 changed files with 593 additions and 57 deletions
|
@ -43,26 +43,22 @@
|
|||
|
||||
// This variant will create the text network (textStorage, layoutManager, and a container).
|
||||
- initWithFrame:(NSRect)frameRect
|
||||
{ return [self initWithFrame:frameRect textContainer:nil];
|
||||
}
|
||||
|
||||
#ifdef 0
|
||||
- initWithFrame:(NSRect)frameRect
|
||||
{
|
||||
textStorage = [[NSTextStorage alloc] init];
|
||||
|
||||
textStorage = [NSTextStorage new];
|
||||
// layoutManager = [NSLayoutManager new];
|
||||
// [textStorage addLayoutManager:layoutManager];
|
||||
// [layoutManager release];
|
||||
if (![textStorage delegate])
|
||||
NSLog(@"No delegate set.");
|
||||
|
||||
textContainer = [[NSTextContainer alloc]
|
||||
initWithContainerSize:frameRect];
|
||||
// [layoutManager addTextContainer:textContainer];
|
||||
[textContainer release];
|
||||
layoutManager = [[NSLayoutManager alloc] init];
|
||||
[textStorage addLayoutManager:layoutManager];
|
||||
[layoutManager release];
|
||||
|
||||
textContainer = [[NSTextContainer alloc] initWithContainerSize:frameRect.size];
|
||||
[layoutManager addTextContainer:textContainer];
|
||||
[textContainer release];
|
||||
|
||||
return [self initWithFrame:frameRect textContainer:textContainer];
|
||||
}
|
||||
#endif
|
||||
|
||||
/***************** Get/Set the container and other stuff *****************/
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue