• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
NSLayoutManager question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSLayoutManager question


  • Subject: NSLayoutManager question
  • From: Paul Bayley <email@hidden>
  • Date: Tue, 19 Feb 2002 17:56:34 -0800

Hello,
I wish to change the text area selection behavior of a Cocoa application and I'm a bit lost. I believe this is handled by NSLayoutManager but not certain. I'm sure somebody will correct me if I'm wrong.

The behavior I wish to change is when selecting text via dragging I do not want to select the trailing hard return (linefeed). The current behavior selects the linefeed when selecting right or down. I do not wish to change the triple-click behavior which selects a line including the trailing linefeed.

I also want to create a click-and-hold gesture as well as a drag-the-selection gesture, but those are secondary concerns.

It seems to me, browsing Apple's documentation, that the selection behavior is performed by NSLayoutManager. However I'm not quite sure how to alter the behavior of NSLayoutManager to my liking.
_______________________________________________
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.

  • Follow-Ups:
    • Re: NSLayoutManager question
      • From: Douglas Davidson <email@hidden>
  • Prev by Date: Re: Command-Line Compilers?
  • Next by Date: Re: NSQueue equivalent?
  • Previous by thread: Re: Accessor called once, fires twice
  • Next by thread: Re: NSLayoutManager question
  • Index(es):
    • Date
    • Thread