• 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: Possible to send a tableViewSelectionDidChange notification?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >Possible to send a tableViewSelectionDidChange notification? (From: Daniel Weber <email@hidden>)

  • Prev by Date: Re: Tiger-style toolbars
  • Next by Date: Re: Tiger-style toolbars
  • Previous by thread: Possible to send a tableViewSelectionDidChange notification?
  • Next by thread: Problems making a framework (was tabbed class like Safari)
  • Index(es):
    • Date
    • Thread