• 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: NSMenu in NSTableView column
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSMenu in NSTableView column


  • Subject: Re: NSMenu in NSTableView column
  • From: Jonathan Taylor <email@hidden>
  • Date: Wed, 13 Aug 2014 16:05:21 +0100

>> Ah, I've worked out the underlying problem I've been having. I had been trying things along these lines and completely failing to get the popup menu to populate correctly. It was working for a standalone popup but not within the table, and I was assuming I was doing something wrong and/or it was more complex than I realised, and had basically decided not to continue stumbling around trying to make it work. Then I found this:
>> http://stackoverflow.com/questions/14708947/nspopupbutton-in-view-based-nstableview-getting-bindings-to-work
>> which describes what seems to be a bug in the implementation, along with the workaround (binding to an outlet property on the file's owner, rather than directly to the array controller). Weird.
>
> That link refers to a view-based table view, which is a different animal altogether. Is your table view cell or view based? It makes a big difference...

As it stands right now, it's view based (I switched it in InterfaceBuilder). Things seem to be working fine with that workaround.

I started writing a long email to the list on the question of view- vs cell-based tables, but as is often the case, in the course of writing it I worked out the answer to my particular question at the time. I ended up with view based because Apple give clear instructions for how to bind things for them in "Table View Programming Guide for Mac". Their advice for cell-based tables is rather unhelpful, just saying that it's "very different" and you should "configure the column’s cell’s bindings". Well thanks Apple! Their instructions for view-based tables were clear, so I went with that.
_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden


References: 
 >NSMenu in NSTableView column (From: Jonathan Taylor <email@hidden>)
 >Re: NSMenu in NSTableView column (From: Keary Suska <email@hidden>)
 >Re: NSMenu in NSTableView column (From: Jonathan Taylor <email@hidden>)
 >Re: NSMenu in NSTableView column (From: Jonathan Taylor <email@hidden>)
 >Re: NSMenu in NSTableView column (From: Keary Suska <email@hidden>)
 >Re: NSMenu in NSTableView column (From: Jonathan Taylor <email@hidden>)
 >Re: NSMenu in NSTableView column (From: Keary Suska <email@hidden>)

  • Prev by Date: Re: diff tool on iOS?
  • Next by Date: Re: diff tool on iOS?
  • Previous by thread: Re: NSMenu in NSTableView column
  • Next by thread: When to call super
  • Index(es):
    • Date
    • Thread