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

Fwd: how do I disable cell editing in NSTableView?


  • Subject: Fwd: how do I disable cell editing in NSTableView?
  • From: Alex Reynolds <email@hidden>
  • Date: Sun, 17 Nov 2002 14:44:15 -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.

  • Follow-Ups:
    • Re: how do I disable cell editing in NSTableView?
      • From: Hasan Diwan <email@hidden>
    • Re: how do I disable cell editing in NSTableView?
      • From: email@hidden
  • Prev by Date: Re: If Object-C is "the" language, then why is no one using it?
  • Next by Date: Re: If Object-C is "the" language, then why is no one using it?
  • Previous by thread: how do I disable cell editing in NSTableView?
  • Next by thread: Re: how do I disable cell editing in NSTableView?
  • Index(es):
    • Date
    • Thread