• 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
NSTextView with custom space width
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSTextView with custom space width


  • Subject: NSTextView with custom space width
  • From: Дмитрий Николаев <email@hidden>
  • Date: Mon, 18 Apr 2011 13:37:19 +0400

Hi to all!

I need to implement custom separator with custom width between two part of paragraph in text view:

AAAA AA A      BBB BBBBB B

This is separator must be included as non-editable character. So user can't delete it or modify.
I understand, that i must overload standard behavior of textview in some points (for example, when user press "delete" right after separator nothing will be deleted)

I have several ideas how accomplish this task:

1. Use elastic glyph attribute (there are mentions in documentation about it). But I can't find any documentation about how to use it.

2. Use tab symbol and NSTextTab for each paragraph, and in any modification to the paragraph recalculate position of tab.

I will be very grateful for any right direction.

_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: NSTextView with custom space width
      • From: Michael Dautermann <email@hidden>
  • Prev by Date: is it has lack of understanding & full of errors ??
  • Next by Date: Re: Does not allow to Uninstall the application when it is running.
  • Previous by thread: Re: is it has lack of understanding & full of errors ??
  • Next by thread: Re: NSTextView with custom space width
  • Index(es):
    • Date
    • Thread