• 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: Binding NSPopupButton crashes
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Binding NSPopupButton crashes


  • Subject: Re: Binding NSPopupButton crashes
  • From: Steve Checkoway <email@hidden>
  • Date: Mon, 15 Oct 2007 11:17:19 -0700

I. Savant wrote:
I am trying to bind an NSPopupButton to the user defaults in Interface
Builder as well as programatically binding a property in another class
to the same user default value. The NSPopupButton is in the
preferences window for the application.

You're going to have to be *way* more specific. What properties of the button are you binding? To what controller and key? What code are you using when establishing the binding programatically? What does the stack trace look like? Are you really trying to establish the same binding both with Interface Builder and programmatically (or have I simply misunderstood)? If so, why do you feel that's necessary?

I've noticed that too specific gets no responses on this list. See my previous unanswered query, for an example. =) That said, here's some more information.


The part of my text you quoted says that I'm binding a property in another class to the user default value, so no, I'm not doing the same binding in both IB and programatically.

In IB, I'm binding the selected value of the popup button to the shared user defaults controller with the key path "values.foo".

Programatically, I have the following.

NSUserDefaultsController *defaultsController = [NSUserDefaultsController sharedUserDefaultsController];

[object bind:@"foo"
    toObject:defaultsController
 withKeyPath:@"values.foo"
     options:nil];

I'm afraid I can't give you the stack trace right now because that computer is sleeping and I don't have the time to recreate it this moment, but if you really think it'd be useful, I can do it when I go home in the evening.

--
Steve Checkoway


_______________________________________________

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: 
 >Binding NSPopupButton crashes (From: Steve Checkoway <email@hidden>)
 >Re: Binding NSPopupButton crashes (From: "I. Savant" <email@hidden>)

  • Prev by Date: Re: Binding NSPopupButton crashes
  • Next by Date: Re: Simple dealloc question
  • Previous by thread: Re: Binding NSPopupButton crashes
  • Next by thread: Re: Binding NSPopupButton crashes
  • Index(es):
    • Date
    • Thread