• 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: NSTableView like iTunes
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSTableView like iTunes


  • Subject: Re: NSTableView like iTunes
  • From: Shawn Erickson <email@hidden>
  • Date: Sat, 31 Jul 2004 10:30:13 -0700

The delegate is different then the data source. You can still use your array controller as the data source via bindings.

-Shawn

On Jul 31, 2004, at 10:13 AM, Luca Torella wrote:

I thought the same thing, but, since I'm using NSArrayController, I believe/hope that there is a way to do that with bindings.

Best,
Luca.
Hi,
I think you could use NSTableView and implement it's delegate method -tableView:mouseDownInHeaderOfTableColumn: to receive that kinds of events. And then you could call NSMenu's class method +popUpContextMenu:withEvent:fromView: to popup your menu.
HTH,
James

On Jul 30, 2004, at 11:45 PM, Luca Torella wrote:

Hi all,
I'd like to know how to create a table view like iTunes one. I mean, in iTunes, if you control click with your mouse on the top-right corner a menu shows up. A menu in which the user can choose what columns to display and what columns hide.

Regards,
Luca.
_______________________________________________
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: 
 >NSTableView like iTunes (From: Luca Torella <email@hidden>)
 >Re: NSTableView like iTunes (From: Luca Torella <email@hidden>)

  • Prev by Date: Re: NSTableView like iTunes
  • Next by Date: Re: The problem with bindings
  • Previous by thread: Re: NSTableView like iTunes
  • Next by thread: Setting font for NSTextView
  • Index(es):
    • Date
    • Thread