[RESOLVED] Re: Curious about copyWithZone message from NSArrayController in "GC required" project
[RESOLVED] Re: Curious about copyWithZone message from NSArrayController in "GC required" project
- Subject: [RESOLVED] Re: Curious about copyWithZone message from NSArrayController in "GC required" project
- From: Luke Evans <email@hidden>
- Date: Sun, 13 Jan 2008 15:37:21 -0800
O.K...
So, I just did this and found it wasn't being called any longer. So,
I suspect your original intuition was right - there was something
badly wrong with my code (which thankfully I have now rectified -
though its frustrating not to be able to nail the original reason now).
One change that may have had a bearing here was that I had
inadvertently commented out some code to return an
NSCollectionViewItem in a subclass of NSCollectionView that was
generating UI for the B objects. I fixed this yesterday. It's
possible that something in NSCollectionView was trying to do its best
with just the prototype item and the list of B's from the
NSArrayController. Anyway, that's pure speculation, and perfectly
well covered by your comment that "something is seriously wrong with
your code"!
I'm deleting the spurious copyWithZone now, safe in the knowledge that
it's just not something that I should need to implement until such
time as I have a real need for a copy constructor in that class.
Thanks.
-- Lwe
On 13-Jan-08, at 2:54 PM, Bill Bumgarner wrote:
You mentioned that you had implemented a -copyWithZone: on B? Can
you set a breakpoint on that and see what backtrace barfs up as a
result?
_______________________________________________
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