• 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
Odd problem with NSOutlineView
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Odd problem with NSOutlineView


  • Subject: Odd problem with NSOutlineView
  • From: Andrew White <email@hidden>
  • Date: Tue, 07 Nov 2006 14:25:18 +1100


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: This email sent to email@hidden
  • Prev by Date: Re: Dock menu with indented items (like iTunes), how?
  • Next by Date: Re: scrolling and drawing porblems
  • Previous by thread: Re: Dock menu with indented items (like iTunes), how?
  • Next by thread: Re: Odd problem with NSOutlineView
  • Index(es):
    • Date
    • Thread