• 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: View-based outline view problem
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: View-based outline view problem


  • Subject: Re: View-based outline view problem
  • From: Quincey Morris <email@hidden>
  • Date: Thu, 10 Jul 2014 23:54:16 -0700

On Jul 10, 2014, at 23:34 , Ken Thomases <email@hidden> wrote:

> Have you connected the delegate outlet of your text view (field?)?

This was my first thought, too, but:

1. The delegate method ‘control:textShouldBeginEditing:’ seems like it’s called too late. Presumably the selection change needs to be done when the text field gets first responder status, not when the text is actually changed.

2. It’s not obvious to me how the text field gets first responder status. In the TableViewPlayground sample code, it does, without any apparent support, so I assume this is something built into NSOutlineView -> NSTableViewCell -> textField outlet (when you press Return). I don’t know how you’d customize that if you have a non-standard table cell view. In particular, I don’t see how you’d know *when* this was happening.

I guess you could solve it with a NSTextField subclass that overrides becoming first responder. Or is there a more direct solution, do you think?

_______________________________________________

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: View-based outline view problem
      • From: Bill Cheeseman <email@hidden>
References: 
 >View-based outline view problem (From: Shane Stanley <email@hidden>)
 >Re: View-based outline view problem (From: Quincey Morris <email@hidden>)
 >Re: View-based outline view problem (From: Shane Stanley <email@hidden>)
 >Re: View-based outline view problem (From: Shane Stanley <email@hidden>)
 >Re: View-based outline view problem (From: Ken Thomases <email@hidden>)

  • Prev by Date: Re: View-based outline view problem
  • Next by Date: Re: View-based outline view problem
  • Previous by thread: Re: View-based outline view problem
  • Next by thread: Re: View-based outline view problem
  • Index(es):
    • Date
    • Thread