Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Odd problem with NSOutlineView




I have an NSOutline view that displays label strings, some of which may be edited. When a label string is edited, it kicks off a process that may cause all the editable items in the DataSource to be replaced with new items; these are then rerendered via reloadData.


Unfortunately, the currently edited cell seems to get orphaned in this process. Sometimes it just hangs around as a visual flaw, other times it causes the program to crash when outlineView:setObjectValue:forTableColumn:byItem: is called with an invalid item.

(1) How can I prevent this behaviour (other than by making all the objects in the view placeholders for real objects rather than real objects)?

(2) Is there any way to force the outline view not to move the edit field to editing a new cell when return is pressed, and just stop editing the current selection (but leave it selected)?

Thanks

--
Andrew White


-------------------------------------------------------------------------- This email and any attachments may be confidential. They may contain legally privileged information or copyright material. You should not read, copy, use or disclose them without authorisation. If you are not an intended recipient, please contact us at once by return email and then delete both messages. We do not accept liability in connection with computer virus, data corruption, delay, interruption, unauthorised access or unauthorised amendment. This notice should not be removed. _______________________________________________ Do not post admin requests to the list. They will be ignored. Cocoa-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/email@hidden

This email sent to email@hidden


Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.