• 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
Don't get an initial tableViewSelectionDidChange
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Don't get an initial tableViewSelectionDidChange


  • Subject: Don't get an initial tableViewSelectionDidChange
  • From: "Theodore H. Smith" <email@hidden>
  • Date: Thu, 9 Jun 2005 18:20:07 +0100

Hi list,

I'm trying to make a NSTableView display some data, in a modal window.

My code goes something like this:

...
    NSWindow* wi = [H window];
    [NSApp runModalForWindow:wi];
...

Now, the problem is, that once my window is run as a modal, the tableview does not get an initial tableViewSelectionDidChange event. Each line of the tableview has a corresponding description, which is displayed into a textfield, when that line is selected.

So, what happens is, that the first row does get selected, but it does not get an tableViewSelectionDidChange for this initial selection!

And if I were to put code after runModal, well it's too late then, because the dialog has already closed.

How is the most graceful way to trap an event equivalent to what should be the first call of tableViewSelectionDidChange? Can I just send a tableViewSelectionDidChange call during the first time my numberOfRowsInTableView is called?

--
http://elfdata.com/plugin/ Industrial strength string processing, made easy.


"All things are logical. Putting free-will in the slot for premises in
a logical system, makes all of life both understandable, and free."

_______________________________________________
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


  • Follow-Ups:
    • Re: Don't get an initial tableViewSelectionDidChange
      • From: Pontus Ilbring <email@hidden>
  • Prev by Date: Re: Base-64 decode (was Property List Editor)
  • Next by Date: Re: Base-64 decode (was Property List Editor)
  • Previous by thread: Re: Multi-User using Core Data?
  • Next by thread: Re: Don't get an initial tableViewSelectionDidChange
  • Index(es):
    • Date
    • Thread