Re: NSLayoutManager vs BBEdit (Was Re: Carbon vs Cocoa arguments)
Re: NSLayoutManager vs BBEdit (Was Re: Carbon vs Cocoa arguments)
- Subject: Re: NSLayoutManager vs BBEdit (Was Re: Carbon vs Cocoa arguments)
- From: Jonathan Hendry <email@hidden>
- Date: Wed, 30 Oct 2002 21:31:59 -0500
On Tuesday, Oct 29, 2002, at 23:19 America/New_York, email@hidden
wrote:
Sigh, so is it going to be possible to alter the behavior of
NSLayoutManager or will I have to write a replacement from scratch?
The mechanisms don't appear to be exposed in the public API.
As Scott Anguish said before, this has nothing to do with
NSLayoutManager.
NSLayoutManager lays out text in a container. This has little to do
with drag and drop, apart from the required re-layout of text after a
removal or insertion, but that behavior wouldn't need changing at
all. The NSLayoutManager wouldn't care if the text was moved by
keyboard, tablet, applescript, speech control, or drag 'n drop.
The removal or insertion would happen at the NSTextStorage level,
and the NSLayoutManager would just adjust the rendering to suit the
change in the data.
You need to change the handling of selections, which would be at
the View level.
--
Jonathan W. Hendry NeXTSTEP/OpenStep/Cocoa
email@hidden programmer in Connecticut
_______________________________________________
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.