[Top][All Lists]

[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


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 

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?

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

reply via email to

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