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

Re: Odd binding issue


  • Subject: Re: Odd binding issue
  • From: Scott Anguish <email@hidden>
  • Date: Fri, 12 Mar 2004 03:23:53 -0500

On Mar 12, 2004, at 1:12 AM, Allan Odgaard wrote:

On 12. Mar 2004, at 4:54, T Reaves wrote:

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.

The problem is that when an object is observed, the class pointer (isa) of that object is swapped -- the new class will have all the old methods, but unfortunately a new implementation for description, which takes precedence over the old one, effectively rendering the description method useless.

Well, yes, it's implemented using isa-swizzling, but I doubt very much that is the issue here.

I think it's likely something much simpler. Otherwise it's a bug, and one I think I'd have seen before now.
_______________________________________________
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: Allan Odgaard <email@hidden>
References: 
 >Odd binding issue (From: T Reaves <email@hidden>)
 >Re: Odd binding issue (From: Allan Odgaard <email@hidden>)

  • Prev by Date: Mac OS 10.1 window loses focus
  • Next by Date: can you tell me how you imported a graphic in your button
  • Previous by thread: Re: Odd binding issue
  • Next by thread: Re: Odd binding issue
  • Index(es):
    • Date
    • Thread