• 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: Switching between editable and not in a NSTableView
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Switching between editable and not in a NSTableView


  • Subject: Re: Switching between editable and not in a NSTableView
  • From: Malte Tancred <email@hidden>
  • Date: Mon, 3 Jun 2002 16:52:53 +0200

On monday, june 3, 2002, at 03:38 , Frank Blome wrote:
is there really no way to switch the editable mode of a cell in a NSTableView programmaticly? I've look over the documentation, but I can't find it...

A delegate to the table view can control when editing is allowed, on a per cell basis. Just implement the following method in the delegate:

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

You'll find a description of the method at the end of the NSTableView class documentation.

Cheerio,
Malte
_______________________________________________
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.

References: 
 >Switching between editable and not in a NSTableView (From: Frank Blome <email@hidden>)

  • Prev by Date: Re: controlTextDidEndEditing vs controlTextDidChange
  • Next by Date: Re: Hunting for System Preferences
  • Previous by thread: Re: Switching between editable and not in a NSTableView
  • Next by thread: MallocDebug problem
  • Index(es):
    • Date
    • Thread