• 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: NSPopupButton in main window changes when NSUserDefaultsController adds/removes item in Preference Pane
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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: "Nicholas Brawn" <email@hidden>
  • Date: Tue, 3 Jul 2007 11:04:20 +1000

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:

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


  • Follow-Ups:
    • Re: NSPopupButton in main window changes when NSUserDefaultsController adds/removes item in Preference Pane
      • From: Tony Kambourakis <email@hidden>
References: 
 >NSPopupButton in main window changes when NSUserDefaultsController adds/removes item in Preference Pane (From: Tony Kambourakis <email@hidden>)

  • Prev by Date: Re: Setting line height exactly - fails for certain unicode chars
  • Next by Date: Re: NSURLConnection Threading Behavior
  • Previous by thread: NSPopupButton in main window changes when NSUserDefaultsController adds/removes item in Preference Pane
  • Next by thread: Re: NSPopupButton in main window changes when NSUserDefaultsController adds/removes item in Preference Pane
  • Index(es):
    • Date
    • Thread