Don't get an initial tableViewSelectionDidChange
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