• 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: outlineViewSelectionDidChange not called
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: outlineViewSelectionDidChange not called


  • Subject: Re: outlineViewSelectionDidChange not called
  • From: Jens Alfke <email@hidden>
  • Date: Mon, 24 Mar 2008 21:49:31 -0700


On 24 Mar '08, at 9:18 PM, Adam Gerson wrote:

When I
remove an object from the TreeController the row representing the
deleted object disappears and OutlineView selects the next row, but
does not send a notification to the delegate method
outlineViewSelectionDidChange.

IIRC, the notification is only sent on user-generated selection changes. If you programmatically change the selected item (directly or indirectly) you need to call your observer method manually, if necessary.


On a separate but related note, when I add an object to the
TreeController is there away to get the OutlineView to automatically
select the new row?

Check the "Select Inserted Objects" box in the IB inspector for the controller.


—Jens

Attachment: smime.p7s
Description: S/MIME cryptographic signature

_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: outlineViewSelectionDidChange not called
      • From: "Adam Gerson" <email@hidden>
References: 
 >outlineViewSelectionDidChange not called (From: "Adam Gerson" <email@hidden>)

  • Prev by Date: Re: Memory Management and objects creation via static methods...
  • Next by Date: Where is it better to register with NSNotificationCenter in class?
  • Previous by thread: outlineViewSelectionDidChange not called
  • Next by thread: Re: outlineViewSelectionDidChange not called
  • Index(es):
    • Date
    • Thread