Re: Possible to send a tableViewSelectionDidChange notification?
Re: Possible to send a tableViewSelectionDidChange notification?
- Subject: Re: Possible to send a tableViewSelectionDidChange notification?
- From: Brian Stern <email@hidden>
- Date: Fri, 18 Nov 2005 19:51:15 -0500
At 7:35 PM -0500 11/18/05, Daniel Weber wrote:
>When I delete a row from an NSTableView, I want the selection to
>remain the same (i.e. if row 3 was selected, I want row 3 to remain
>selected after the deletion, even though the item is different). But I
>want tableViewSelectionDidChange: to be triggered because this is
>where I update all of the other GUI objects to reflect the new change.
>By default, I see that the same row is left selected, but this method
>is not called. Even if I do something like deselect the current row
>and then select it again, tableViewSelectionDidChange is still not
>called! Is there a way to call this method directly?
>
>Thanks for your help (I'm new to cocoa if you couldn't tell : )
// Post the notification since super doesn't do it for programmatic changes of
// the selection
[[NSNotificationCenter defaultCenter]
postNotificationName:NSTableViewSelectionDidChangeNotification
object:self userInfo:nil];
--
Brian Stern
email@hidden
_______________________________________________
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