• 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 redraw while resigning first responder (sequel)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSTextView redraw while resigning first responder (sequel)


  • Subject: Re: NSTextView redraw while resigning first responder (sequel)
  • From: Kyle Sluder <email@hidden>
  • Date: Mon, 9 Aug 2010 10:03:50 -0700

On Mon, Aug 9, 2010 at 8:03 AM, vincent habchi <email@hidden> wrote:
> Kyle,
>
> sorry for disturbing you once more.
>
> You suggested I use a custom layout manager for the NSTextField editor. However, I see no way to set a layout editor for a NSTextField – I tried to attach a custom field editor, but it fails the same way (that is to say, the string reverts to its normal state when the field looses first responder status). How should I proceed?

[Bringing this back on-list.]

Oops. We have custom analogues of NSTextFieldCell that allow us to
specify an NSTextStorage in -setObjectValue:. I forgot that
NSTextFieldCell doesn't let you do this; it always uses its own layout
manager.

I believe you will need to implement drawing yourself.

--Kyle Sluder
_______________________________________________

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 redraw while resigning first responder (sequel)
      • From: vincent habchi <email@hidden>
References: 
 >NSTextView redraw while resigning first responder (From: vincent habchi <email@hidden>)
 >Re: NSTextView redraw while resigning first responder (From: Kyle Sluder <email@hidden>)
 >Re: NSTextView redraw while resigning first responder (From: vincent habchi <email@hidden>)
 >Re: NSTextView redraw while resigning first responder (From: Kyle Sluder <email@hidden>)
 >Re: NSTextView redraw while resigning first responder (From: vincent habchi <email@hidden>)

  • Prev by Date: Re: KVO and Core data
  • Next by Date: Re: Core Data bindings: add entity to relationship
  • Previous by thread: Re: NSTextView redraw while resigning first responder
  • Next by thread: Re: NSTextView redraw while resigning first responder (sequel)
  • Index(es):
    • Date
    • Thread