• 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
NSTextField bound to NSAtrributedString
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSTextField bound to NSAtrributedString


  • Subject: NSTextField bound to NSAtrributedString
  • From: m <email@hidden>
  • Date: Thu, 6 Oct 2005 14:54:00 -0700

I have several NSAttributedStrings in my model.

Each NSAttributedString is bound to a NSTextField's value binding. Text attribute editing in the text field is enabled. Also enabled is the "Continuously Updates Value" option in the text fields value binding.

Something strange is happening: while the user is typing, the setter in my model for the corresponding field is receiving NSString objects, NOT NSAttributedString objects as expected. However, once editing has completed (user hits enter or return, or changes to another field), an NSAttributedString object is recieved by my models setter.

Am I doing something wrong? Have I missed some setup? Is this a bug?

(I am using NSTextFields instead of NSTextViews because NSTextFields already support the standard "editing multiple text items in a dialog" interaction model.)


_murat



_______________________________________________
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


  • Prev by Date: Re: Making combo box popup wide enough
  • Next by Date: Re: CoreData - sqlite - statement is still active
  • Previous by thread: Re: Validating the contents of an accessory view
  • Next by thread: Problems with NSImage?
  • Index(es):
    • Date
    • Thread