Re: NSPopupButton, bindings, and item state

2014-08-15 Thread Keary Suska
On Aug 15, 2014, at 8:58 AM, Jonathan Taylor wrote: >>> After being impressed with bindings for an NSTableView, I’m looking at what >>> I can do for a standalone NSPopupButton, in the hope of reducing the amount >>> of glue code I have. The button isn’t just a simple one though, I need to: >>

Re: NSPopupButton, bindings, and item state

2014-08-15 Thread Jonathan Taylor
>> After being impressed with bindings for an NSTableView, I’m looking at what >> I can do for a standalone NSPopupButton, in the hope of reducing the amount >> of glue code I have. The button isn’t just a simple one though, I need to: >> - Include separator items >> - Disable (grey out) some ite

Re: NSPopupButton, bindings, and item state

2014-08-15 Thread Keary Suska
On Aug 15, 2014, at 5:23 AM, Jonathan Taylor wrote: > After being impressed with bindings for an NSTableView, I’m looking at what I > can do for a standalone NSPopupButton, in the hope of reducing the amount of > glue code I have. The button isn’t just a simple one though, I need to: > - Inclu

Re: NSPopUpButton, Bindings & separator items

2009-11-04 Thread Eric Gorr
Interesting. Don't suppose you are aware of any sample code which demonstrates how to use this? On Nov 4, 2009, at 4:45 PM, Sean McBride wrote: On 11/4/09 11:26 AM, Eric Gorr said: I found this old message, but there was no answer posted and have the same question... http://lists.apple.com

Re: NSPopUpButton, Bindings & separator items

2009-11-04 Thread Sean McBride
On 11/4/09 11:26 AM, Eric Gorr said: >I found this old message, but there was no answer posted and have the >same question... > >http://lists.apple.com/archives/cocoa-dev/2005/Jan/msg00886.html > >Is there a way to add separator Items to an NSPopUpButton using >bindings? If you need a popup with

Re: NSPopUpButton, Bindings & separator items

2009-11-04 Thread Eric Gorr
On Nov 4, 2009, at 3:38 PM, Matt Neuburg wrote: On Wed, 4 Nov 2009 11:26:16 -0500, Eric Gorr said: I found this old message, but there was no answer posted and have the same question... http://lists.apple.com/archives/cocoa-dev/2005/Jan/msg00886.html Is there a way to add separator Items t

Re: NSPopUpButton, Bindings & separator items

2009-11-04 Thread Matt Neuburg
On Wed, 4 Nov 2009 11:26:16 -0500, Eric Gorr said: >I found this old message, but there was no answer posted and have the >same question... > >http://lists.apple.com/archives/cocoa-dev/2005/Jan/msg00886.html > >Is there a way to add separator Items to an NSPopUpButton using >bindings? Here's an e

Re: NSPopUpButton, Bindings & separator items

2009-11-04 Thread Eric Gorr
Dang. Thank you. Almost certainly going to be marked as a duplicate, but I have filed a bug report - rdar://7364344 On Nov 4, 2009, at 11:41 AM, Mike Abdullah wrote: I found this old message, but there was no answer posted and have the same question... http://lists.apple.com/archives/co

Re: NSPopUpButton, Bindings & separator items

2009-11-04 Thread Mike Abdullah
No there is not. You can perhaps hack it to work by subclassing, but isn't really worth it. On 4 Nov 2009, at 16:26, Eric Gorr wrote: I found this old message, but there was no answer posted and have the same question... http://lists.apple.com/archives/cocoa-dev/2005/Jan/msg00886.html Is

Re: NSPopupButton Bindings Content Objects is disabled

2008-09-15 Thread Rick Mann
On Sep 15, 2008, at 19:16:04, Rick Mann wrote: According to the docs: http://developer.apple.com/documentation/Cocoa/Conceptual/MenuList/Articles/ManagingPopUpItems.html You typically bind the contentObjects value of the button to the arrangedObjects of an array controller, and the contentV

Re: NSPopupButton Bindings-Related Issue

2008-06-27 Thread Ken Thomases
On Jun 27, 2008, at 11:01 PM, Keary Suska wrote: Generally, my needs are simple. In this case, I need a sheet that displays an nspopupbutton populated with product names, where a user can select an item from the popup and a description of the item would appear in a designated space below the

Re: NSPopupButton Bindings

2008-04-20 Thread Keary Suska
on 4/20/08 7:27 AM, [EMAIL PROTECTED] purportedly said: > When I pass the selection of the Array Controller to my method, all I > get for the parameter in NSLog is > > victim: <_NSControllerObjectProxy: 0x1059790> for the first parameter > that was passed to the method. > > and trying to log [vic

Re: NSPopupButton Bindings

2008-04-20 Thread Johnny Lundy
As follow-up, I set the bindings of the popup to be content: Array Controller.arrangedObjects content objects: not used content values: Array Controller.arrangedObjects.name When I pass the selection of the Array Controller to my method, all I get for the parameter in NSLog is victim: <_NSCo

Re: NSPopupButton Bindings

2008-04-19 Thread Steve Weller
On Apr 19, 2008, at 5:58 PM, Johnny Lundy wrote: Good evening, I am having trouble understanding the bindings for NSPopupButton. View: NSPopupButton Controller: NSArrayController, just for the popup button Model: NSMutableArray of NSMutableDictionaries. I have the array controller bound to