• 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
Re: NSTextView, style, and weird Core Data issue
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSTextView, style, and weird Core Data issue


  • Subject: Re: NSTextView, style, and weird Core Data issue
  • From: Martin Wierschin <email@hidden>
  • Date: Thu, 27 Jul 2006 00:27:43 -0700

The docs say: "Typing attributes are reset automatically whenever the
selection changes." Well, the selection *is* changing. But the typing
attributes are not being reset (at least, I would not describe this
behaviour using the word "reset" - I would describe it as "remaining the
same as before").

It says "reset", but probably "recalculated" is a more appropriate word. Also, I do not think the preservation of the typing attributes when you clear the NSTextView's content is a bug. Consider the following case:


1. User enters some text.
2. Selects all and applies bold.
3. Changes their mind and deletes all the text.
4. Starts typing.

In step 4 they most likely prefer that the new text be bold. This is normally convenient, but you'll have to work around it, as a zero length NSAttributedString has no attributes to apply to the NSTextView.

~Martin

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >Re: NSTextView, style, and weird Core Data issue (From: Matt Neuburg <email@hidden>)

  • Prev by Date: Re: NSPopUpButtonCell as NSTableView header problem
  • Next by Date: Re: NSLayoutManager additional temporary attributes
  • Previous by thread: Re: NSTextView, style, and weird Core Data issue
  • Next by thread: Re: NSTextView, style, and weird Core Data issue
  • Index(es):
    • Date
    • Thread