• 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
Editing in NSOutlineView
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Editing in NSOutlineView


  • Subject: Editing in NSOutlineView
  • From: Gokul Hegde <email@hidden>
  • Date: Mon, 22 Apr 2002 20:13:37 +0530 (GMT+05:30)

Hi everybody

In my application, I am trying to edit the items which I display in
NSOutlineView. When I double click on the items, I am able to edit it. But,
I find that on pressing 'Return', to finish my editing, the next item gets
selected and editing for it begins. (I find the same behaviour in
'DragAndDrop' sample). But I want it to stop editing once I change the name
of the present item being edited and press 'Return'. (as it happens in
'Finder' when we change the name of a file).

I have tried over riding the function

"- (BOOL)outlineview: (NSOutlineView *)outlineView shouldEditTableColumn:
(NSTableColumn *)tableColumn item: (id)item"

in the delegate / datasource for NSOutlineView and returning 'NO' from it.
But I find a very peculier behaviour. This function is called for all the
items displayed and after completing all the items, editing for the item
just before the presently edited item begins!

Has any body found a soulution for this? How do I make the NSOutlineView
stop this editing of next item?

With regards

Gokul


--------------------------------------------------------------
Robosoft Technologies, Mangalore, India
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: Editing in NSOutlineView
      • From: Ondra Cada <email@hidden>
  • Prev by Date: Taking photos with Image Capture SDK
  • Next by Date: Re: Export data to Excel
  • Previous by thread: Re: Taking photos with Image Capture SDK
  • Next by thread: Re: Editing in NSOutlineView
  • Index(es):
    • Date
    • Thread