FROM : Jens Alfke
DATE : Tue Mar 25 05:49:31 2008
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
DATE : Tue Mar 25 05:49:31 2008
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
| Related mails | Author | Date |
|---|---|---|
| Adam Gerson | Mar 25, 05:18 | |
| Jens Alfke | Mar 25, 05:49 | |
| Adam Gerson | Mar 25, 06:42 | |
| Jonathan Dann | Mar 25, 15:29 | |
| Adam Gerson | Mar 26, 04:12 | |
| Adam Gerson | Mar 26, 04:24 | |
| Jonathan Dann | Mar 26, 20:49 | |
| Adam Gerson | Mar 27, 18:17 | |
| Hamish Allan | Mar 27, 20:07 | |
| Adam Gerson | Mar 30, 09:44 | |
| Jonathan Dann | Mar 31, 22:38 |






Cocoa mail archive

