• 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: Disallow edit for rows in NSOutlineView
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Disallow edit for rows in NSOutlineView


  • Subject: Re: Disallow edit for rows in NSOutlineView
  • From: James Bucanek <email@hidden>
  • Date: Thu, 15 Jun 2006 07:46:12 -0700

Fredrik Olsson wrote on Thursday, June 15, 2006:

>I can disallow drag and drop, and selection of rows in an outline view,
>but how can I disallow the user to edit some rows?
>
>A logiclal delegate method would be
>-outlineView:shouldBeginEditingItem:forTableColumn:
>But I can not find anything resembling that in the documentation, nor
>google :/.

Apparently you didn't Google NSOutlineView's superclass: NSTableView  ;)

- (BOOL)tableView:(NSTableView *)aTableView shouldEditTableColumn:(NSTableColumn *)aTableColumn row:(int)rowIndex

<file:///Developer/ADC Reference Library/documentation/Cocoa/Reference/ApplicationKit/Classes/NSTableView_Class/Reference/Reference.html#//apple_ref/occ/instm/NSObject/tableView:shouldEditTableColumn:row:>

--
James Bucanek
 _______________________________________________
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

References: 
 >Disallow edit for rows in NSOutlineView (From: Fredrik Olsson <email@hidden>)

  • Prev by Date: Re: Application does not run on double click
  • Next by Date: Re: Drawing text on top of a progress bar
  • Previous by thread: Disallow edit for rows in NSOutlineView
  • Next by thread: Re: Disallow edit for rows in NSOutlineView
  • Index(es):
    • Date
    • Thread