• 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
how do I disable cell editing in NSTableView?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

how do I disable cell editing in NSTableView?


  • Subject: how do I disable cell editing in NSTableView?
  • From: Alex Reynolds <email@hidden>
  • Date: Sun, 17 Nov 2002 05:10:58 -0500

I have set up a table view delegate to a Document object.

In my Document.h, I have:

- (BOOL) tableView: (NSTableView *)shouldEditTableColumn: (int)rowIndex;

In my Document.m, I have:

- (BOOL) tableView: (NSTableView *)shouldEditTableColumn: (int)rowIndex
{
return NO;
}

I thought this would disable cell editing, but I can still double-click
on a cell and edit it.

My other delegates are working, so I don't believe it is a problem
related to whether the delegate outlet is working...

Does someone know what other approach I can take to disable cell
editing, using delegates?

I also tried this method:

- (BOOL) textShouldBeginEditing: (NSText *)textObject

setting the return value to NO, but this did not work, either.

Thanks in advance for any tips,

Regards,
Alex
_______________________________________________
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.

  • Prev by Date: Re: Finding keyWindow...
  • Next by Date: NSArray losing its data
  • Previous by thread: Calling drawRect: with alternate focus
  • Next by thread: Fwd: how do I disable cell editing in NSTableView?
  • Index(es):
    • Date
    • Thread