• 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
setSelectedRange doesn't work properly...
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

setSelectedRange doesn't work properly...


  • Subject: setSelectedRange doesn't work properly...
  • From: Тимофей Даньшин <email@hidden>
  • Date: Sat, 28 Feb 2009 22:56:52 +0300

Hello.
In my NSDocument-based application I use a number of my own attributes to the NSTextStorage in that document.
The funny thing is when i set the cursor to the desired point and begin typing, one of those attributes gets broken, i.e. the range containing the text that i type in doesn't have that attribute. However, if i move the cursor from that position and back to it using the arrow keys, the text typed in has that attribute. Another funny thing is that it happens only to one of two custom attributes that are set for that position in the text.
Am I doing something wrongly? How can I fix/work around it?


Thank you.
_______________________________________________

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


  • Prev by Date: Spotlight
  • Next by Date: reloading IKImageBrowserView in an IBAction
  • Previous by thread: Spotlight
  • Next by thread: reloading IKImageBrowserView in an IBAction
  • Index(es):
    • Date
    • Thread