• 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
Odd binding issue
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Odd binding issue


  • Subject: Odd binding issue
  • From: T Reaves <email@hidden>
  • Date: Thu, 11 Mar 2004 22:54:01 -0500

Hello all.

I have a simple app that uses manual bindings. It has several text fields and text views. One of the text views binds an NSTextView like so:
// bind itemDescription
[bindingOptions setObject:@"No Description" forKey:@"NSNullPlaceholder"];
[itemDescription bind:@"string" toObject:itemController withKeyPath:@"selection.description" options:bindingOptions];

This is not the only NSTextView, nor is it the first one, in this app to be bound & displayed.

What is happening, however, is that the first time that particular widget is displayed, the object is displayed in the text view, not the objects description. Here is what gets displayed: <Item: 0x358970>.

When the next object is selected - and therefore displayed - it is displayed correctly. I can also then go back to the first object and it displays correctly. It does not matter which object in the array is displayed first, always the first one - and only the first one - is displayed incorrectly.

Any ideas?
_______________________________________________
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: Odd binding issue
      • From: Scott Anguish <email@hidden>
    • Re: Odd binding issue
      • From: Allan Odgaard <email@hidden>
  • Prev by Date: Re: NSString really Unicode?
  • Next by Date: Re: [Maybe OT] Selling Source Code
  • Previous by thread: NSHomeDirectory()
  • Next by thread: Re: Odd binding issue
  • Index(es):
    • Date
    • Thread