• 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: Context menu for NSTableView cell
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Context menu for NSTableView cell


  • Subject: Re: Context menu for NSTableView cell
  • From: Andreas Mayer <email@hidden>
  • Date: Fri, 7 Oct 2005 17:33:12 +0200


Am 07.10.2005 um 17:08 Uhr schrieb Steve Pettifer:

From what i've read and googled, i'm guessing that i somehow have to link the menu with the fieldeditor, but i've not been able to find a way of identifying the particular column i'm interested in, and of making the menu appear only for that column/fieldeditor and not for every text column in my table.

I'd try to subclass NSTextFieldCell and overwrite

setUpFieldEditorAttributes:

Then use that class as data cell class for the column in question.

Maybe you also need to subclass NSText (for the field editor) and overwrite

menuForEvent:


Andreas _______________________________________________ Do not post admin requests to the list. They will be ignored. Cocoa-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
References: 
 >Context menu for NSTableView cell (From: Steve Pettifer <email@hidden>)

  • Prev by Date: Text field that takes hexadecimal values
  • Next by Date: [Meeting] Next CocoaHeads: Oct 11 (Portland), Oct 13 (PIT, STL, BOS, SiliconValley)
  • Previous by thread: Context menu for NSTableView cell
  • Next by thread: Text field that takes hexadecimal values
  • Index(es):
    • Date
    • Thread