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

Re: how do I disable cell editing in NSTableView?


  • Subject: Re: how do I disable cell editing in NSTableView?
  • From: email@hidden
  • Date: Sun, 17 Nov 2002 23:37:53 +0100

On dimanche, novembre 17, 2002, at 08:44 PM, Alex Reynolds wrote:

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?

The method prototype is:

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

not:

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

You current method will never be called.
_______________________________________________
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: 
 >Fwd: how do I disable cell editing in NSTableView? (From: Alex Reynolds <email@hidden>)

  • Prev by Date: Re: (That Obj-C/Java Req -- Re: Jobs) - Java GUIs
  • Next by Date: Re: (That Obj-C/Java Req -- Re: Jobs) - Java GUIs
  • Previous by thread: Fwd: how do I disable cell editing in NSTableView?
  • Next by thread: Re: how do I disable cell editing in NSTableView?
  • Index(es):
    • Date
    • Thread