• 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 to prevent NSTableColumn from moving
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

How to prevent NSTableColumn from moving


  • Subject: How to prevent NSTableColumn from moving
  • From: Sarven Sabunciyan <email@hidden>
  • Date: Sun, 16 Nov 2003 21:42:56 -0500

I have an NSTableView which acts like a spreadsheet. The first
column is just numbers for rows so I don't want it to be selectable
nor editable. I also don't want the user to be able to move that
column to another spot in the table. I use:

- (BOOL)tableView:(NSTableView*) tableView
shouldSelectTableColumn:(NSTableColumn*)tableColumn

so that column is not selected (I figured out the preventing the
editing bit). However, the headercell can still be selected and the
column can be moved. How do I prevent this? Thanks in advance.

Sarven
_______________________________________________
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: Programming a game
  • Next by Date: Re: Programming a game
  • Previous by thread: Re: Subclassing From Code?
  • Next by thread: Formatter - 2 decimal places
  • Index(es):
    • Date
    • Thread