• 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: NSTableView - Responder - 'Focus'
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSTableView - Responder - 'Focus'


  • Subject: Re: NSTableView - Responder - 'Focus'
  • From: Peter Wollschlaeger <email@hidden>
  • Date: Fri, 27 Feb 2004 22:23:45 +0100

Am 27.02.2004 um 21:49 schrieb cricket:

You can ask the window that contains the tableviews for its firstResponder. Something like:

NSTableView *tv = [[_tv1 window] firstResponder];
if (tv == _tv1) {
// first tableview is selected
} else if (tv == _tv2) {
// second tableview is selected
}

- cricket

May I add a question, because cricket uses the underline character. I know in C++ names staring with 2 underline characters or with one followed by a uppercase letter are forbidden because they are reserved for libraries. Is there a similar restriction in Cocoa too?
- Peter

On Feb 27, 2004, at 12:40 PM, Ruediger Merz wrote:

Hi,

I am a software developer since 20 years (Pascal,C,OpenWindows,Motif, WinDSK, UNIX) but I am new to Cocoa.
I am just developing my first app in Cocoa/ObjC.
The app is document based which has two NSTableViews and 3 buttons.
Two of this buttons a responsible to add a item to either of the tables.
I rather would like to have only one button to do that.
How am I able to know which TableView is selected ?
I would appreciate if someone could help. Especially in combination with IB.
I still have to adapt to the new terminology. Please be patient with me.;)

Thanks in advanced, I appreciate it.

Styx
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.


  • Follow-Ups:
    • Re: NSTableView - Responder - 'Focus'
      • From: Ondra Cada <email@hidden>
References: 
 >NSTableView - Responder - 'Focus' (From: Ruediger Merz <email@hidden>)
 >Re: NSTableView - Responder - 'Focus' (From: cricket <email@hidden>)

  • Prev by Date: NSToolTipAttributeName won't save
  • Next by Date: Re: how to create status bar?
  • Previous by thread: Re: NSTableView - Responder - 'Focus'
  • Next by thread: Re: NSTableView - Responder - 'Focus'
  • Index(es):
    • Date
    • Thread