• 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
Bound UI elements not showing 'description' as expected
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Bound UI elements not showing 'description' as expected


  • Subject: Bound UI elements not showing 'description' as expected
  • From: Rick Hoge <email@hidden>
  • Date: Wed, 28 Jul 2004 10:25:26 -0400

I have an NSPopupButton for which the 'content' attribute is bound to an NSArray of NSDocuments. The NSArray is an attribute of the nib file's owner, so the binding is implemented via an NSObjectController with a key corresponding to the array.

The documents 'description' method is overridden to return the display name, but in the popup button I get a generic object description like <MyVolume: 0x0354a3>. The weird thing is that this worked (showed the file name) when I originally implemented it, but stopped working for reasons I have been unable to identify.

Does anyone know of a possible reason why, in this usage scenario, the 'description' return value would not be propagated to the UI element?

Thanks,

Rick
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.


  • Follow-Ups:
    • Re: Bound UI elements not showing 'description' as expected
      • From: mmalcolm crawford <email@hidden>
  • Prev by Date: Re: earliest code that runs?
  • Next by Date: Re: (no subject)
  • Previous by thread: Re: Default button surrounded by black square for Panther, not Jaguar (RESOLVED)
  • Next by thread: Re: Bound UI elements not showing 'description' as expected
  • Index(es):
    • Date
    • Thread