• 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: Overriding -copyWithZone: the right way
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Overriding -copyWithZone: the right way


  • Subject: Re: Overriding -copyWithZone: the right way
  • From: Jean-Olivier Lanctôt <email@hidden>
  • Date: Fri, 5 Nov 2004 19:12:11 -0500

Yes well. I'm not a newbie (far from it, I'd say ;-). I already did
that... etc etc. The bug has been around since a LONG time and I
haven't been able to fix it!

It's crashing upon collapse of the LAST item in my outlineview...
here's the BT...
i'm about to just hire someone to do it for me.. I just can't see WHY
it does this.

Thread 0 Crashed:
0   com.apple.CoreFoundation    0x90190f9c CFRetain + 0x20
1   com.apple.CoreFoundation    0x9019cb2c CFDictionaryAddValue + 0x1f4
2   com.apple.CoreFoundation    0x901ae434 CFDictionaryCreate + 0x6c
3   com.apple.Foundation        0x909fbcdc -[NSPlaceholderDictionary
initWithObjects:forKeys:count:] + 0xf4
4   com.apple.Foundation        0x90a00fe0 +[NSDictionary
dictionaryWithObjectsAndKeys:] + 0x144
5   com.apple.AppKit            0x930b8388 -[NSOutlineView
_postItemDidCollapseNotification:] + 0x5c
6   com.apple.AppKit            0x930b6e48 -[NSOutlineView
_collapseItemEntry:collapseChildren:clearExpandState:recursionLevel:]
+ 0x208
7   com.apple.AppKit            0x930b6b74 -[NSOutlineView
_collapseItem:collapseChildren:clearExpandState:] + 0x158
8   com.apple.AppKit            0x930b93a0 -[NSOutlineView
collapseItem:collapseChildren:] + 0x7c
9   com.apple.AppKit            0x930b7e28 -[NSOutlineView
_doUserExpandOrCollapseOfItem:isExpand:optionKeyWasDown:] + 0x3a0
10  com.apple.AppKit            0x930b9aa0 -[NSOutlineView
mouseTracker:didStopTrackingWithEvent:] + 0x104
11  com.apple.AppKit            0x92f9db08 -[NSMouseTracker
stopTrackingWithEvent:] + 0xb8
12  com.apple.AppKit            0x92f9d1ac -[NSMouseTracker
trackWithEvent:inView:withDelegate:] + 0x164
13  com.apple.AppKit            0x92f38670 -[NSOutlineView mouseDown:] + 0x274
14  com.clichedev.burnoutmenu   0x00021b30 -[BMManagerOutlineView
mouseDown:] + 0x64 (BMManagerOutlineView.m:57)
15  com.apple.AppKit            0x92e024d4 -[NSWindow sendEvent:] + 0x10e4
16  com.apple.AppKit            0x92df4b98 -[NSApplication sendEvent:] + 0xebc
17  com.apple.AppKit            0x92dfcfb0 -[NSApplication run] + 0x240
18  com.apple.AppKit            0x92eb948c NSApplicationMain + 0x1d0
19  com.clichedev.burnoutmenu   0x00003234 main + 0x6c (main.m:23)
20  com.clichedev.burnoutmenu   0x00002cb8 _start + 0x188 (crt.c:267)
21  dyld                        0x8fe1a558 _dyld_start + 0x64


On Fri, 5 Nov 2004 15:39:30 -0800, Byron Wright
<email@hidden> wrote:
> Why don't you check the crash log or run the application in the
> debugger until it crashes. You'll get a stack trace from which will
> help you pinpoint the problem.
>
> - Byron
>
>
>
> On Nov 5, 2004, at 3:27 PM, Jean-Olivier Lanctôt wrote:
>
> > Well I just learned a new thing...
> >
> > anyway, I have this very WEIRD crash in my app (which is, BTW, the
> > ONLY bug left until I can release 1.0) that I just can't squash.
> > *Maybe* it has to do with my wrong manner of overriding copyWithZone??
> > What do you guys think.. I have something like 5 custom classes
> > implementing it and I don't do it the right way... so could that be
> > the reason for weird crashes? I'm not on my work comp. right now so I
> > can't check.
> >
>
> Byron Wright
> Software Developer
> Siemens Business Services Media
> (formerly BBC Technology)
> www.bbctechnology.com
> www.siemens.co.uk/sbs
>
> This e-mail (and any attachments) contains confidential information and
> is for the exclusive use of the addressee/s. Any views contained in
> this e-mail are not the views of Siemens Business Services Media
> Holdings Ltd unless specifically stated. If you are not the addressee,
> then any distribution, copying or use of this e-mail is prohibited. If
> received in error, please advise the sender and delete/destroy it
> immediately. We accept no liability for any loss or damage suffered by
> any person arising from use of this e-mail/fax. Please note that
> Siemens Business Services Media Holdings Ltd monitors e-mails sent or
> received. Further communication will signify your consent to this.
>
> Siemens Business Services Media Holdings Ltd
> Registered No: 04128934 England
> Registered Office: Siemens House, Oldbury, Bracknell, Berkshire, RG12
> 8FZ
>
>


--
--Olivier
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >Overriding -copyWithZone: the right way (From: Michael Becker <email@hidden>)
 >Re: Overriding -copyWithZone: the right way (From: Jean-Olivier Lanctôt <email@hidden>)
 >Re: Overriding -copyWithZone: the right way (From: Evan Schoenberg <email@hidden>)
 >Re: Overriding -copyWithZone: the right way (From: Jean-Olivier Lanctôt <email@hidden>)
 >Re: Overriding -copyWithZone: the right way (From: Byron Wright <email@hidden>)

  • Prev by Date: Re: drawRect - top to bottom text
  • Next by Date: [SOLVED] NSArrayController bound to NSUserDefaultsController
  • Previous by thread: Re: Overriding -copyWithZone: the right way
  • Next by thread: Re: Overriding -copyWithZone: the right way
  • Index(es):
    • Date
    • Thread