Re: NSPopupButton in main window changes when NSUserDefaultsController adds/removes item in Preference Pane
Re: NSPopupButton in main window changes when NSUserDefaultsController adds/removes item in Preference Pane
- Subject: Re: NSPopupButton in main window changes when NSUserDefaultsController adds/removes item in Preference Pane
- From: Tony Kambourakis <email@hidden>
- Date: Tue, 3 Jul 2007 11:33:05 +1000
Hi Nicholas,
Thanks for your response.
Unfortunately it did not resolve the problem. I unselected "avoid
empty selection" ... no change. I unselected "select inserted
object"... no change.
Regards,
Tony.
On 03/07/2007, at 11:04 AM, Nicholas Brawn wrote:
In your NSArrayController, there's some settings for:
- avoid empty selection
- select inserted object
I'm thinking that's what you need to tweak.
Nick
On 7/3/07, Tony Kambourakis <email@hidden> wrote:
Hi,
I have a single window application with a seperate Preference window
via the Pref menu.
An NSTableView in the Preference window is used to add/remove items
to the NSUserDefaults (a list of items).
I have an NSPopupButton in my main application window that is bound
to an NSArrayController which in turn is bound to the Defaults
Controller (NSUserDefaultsController) point to that list of items.
I initially set the NSPopupButton to "unselect" items so that even
though it has content via the bindings to the default list of items,
it shows a blank item as nothing is selected.
As soon as I add/remove an item in the Preference window table, for
some reason the NSPopupButton selects the first item on its list. I
would rather the user make the selection. I don't know why the
NSPopupButton updates itself like that. Why would the selection of an
item in NSPopupButton be linked to the process of adding/removing an
item to the NSUserDefaultsController?
Any suggestions would be much appreciated.
Regards,
Tony.
_______________________________________________
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:
40gmail.com
This email sent to email@hidden
_______________________________________________
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