bug-gnustep
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Problems with NSTextStorage


From: Philippe C.D. Robert
Subject: Problems with NSTextStorage
Date: Sun, 10 Feb 2002 19:59:38 +0100

Hi,

I am currently implementing an integrated editor in ProjectCenter. Therefore
I create the textsystem 'by hand' and connect the objects manually. But doing

  storage = [[NSTextStorage alloc] initWithString:aString attributes:nil];
  lm = [[NSLayoutManager alloc] init];
  [storage addLayoutManager:lm];

does not work, addLayoutManager crashes upon adding 'lm' with a 
NSRangeException (index out of bounds). Any ideas what is happening here 
exactly? 

Furthermore calling init instead of initWithString:attributes: is not 
implemented/supported at all, although it should be, according to Apple's 
documentation, explaining the text system. What is correct here?

-Phil
-- 
Philippe C.D. Robert
Software Engineer
Silicon Graphics, Inc.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]