• 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 11:04:01 +0100

> I would create a class, say, SignalChannel, with "name" (for description, but we may not ant to use "description" for obvious reasons...) and "channelID" properties. I would then populate the NSPopupButtonCell with SignalChannel objects. This will abstract the model from the view, which is better form anyway.

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.
_______________________________________________

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


  • Follow-Ups:
    • Re: NSMenu in NSTableView column
      • From: Keary Suska <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>)

  • Prev by Date: Re: NSSpellChecker exception
  • Next by Date: Translating to Swift
  • Previous by thread: Re: NSMenu in NSTableView column
  • Next by thread: Re: NSMenu in NSTableView column
  • Index(es):
    • Date
    • Thread