• 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: Focus issues with NSTableView in NSPanel
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Focus issues with NSTableView in NSPanel


  • Subject: Re: Focus issues with NSTableView in NSPanel
  • From: Corbin Dunn <email@hidden>
  • Date: Tue, 21 Aug 2012 10:41:48 -0700

On Aug 21, 2012, at 9:38 AM, Kyle Sluder <email@hidden> wrote:

> On Aug 21, 2012, at 9:07 AM, Jean Suisse <email@hidden> wrote:
>
>> Well, then you just need to override:
>>
>> - (BOOL)needsPanelToBecomeKey
>>
>> in the NSTableView (subclass) and return NO.
>
> I'll try it, but frankly this doesn't make sense. I *do* want the panel to become key when the user clicks the table view.

Yeah, but you also don't want the standard NSTableView HI behavior, so you have to do something custom.

corbin

> When I return YES from this method, the table view becomes first responder and the panel containing it becomes key, just like I expect, but the selection in the table view does not change to match the item that was clicked.
>
> --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

References: 
 >Focus issues with NSTableView in NSPanel (From: Jean Suisse <email@hidden>)
 >Re: Focus issues with NSTableView in NSPanel (From: Corbin Dunn <email@hidden>)
 >Re: Focus issues with NSTableView in NSPanel (From: Kyle Sluder <email@hidden>)
 >Re: Focus issues with NSTableView in NSPanel (From: Jean Suisse <email@hidden>)
 >Re: Focus issues with NSTableView in NSPanel (From: Kyle Sluder <email@hidden>)

  • Prev by Date: Re: Focus issues with NSTableView in NSPanel
  • Next by Date: Re: Set icon for files and folder
  • Previous by thread: Re: Focus issues with NSTableView in NSPanel
  • Next by thread: Re: Focus issues with NSTableView in NSPanel
  • Index(es):
    • Date
    • Thread