• 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 crash with a drawer
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Odd crash with a drawer


  • Subject: Odd crash with a drawer
  • From: Josh Anon <email@hidden>
  • Date: Thu, 13 Mar 2003 23:04:37 -0600

Hi,
I have a class which loads a nib and associates it with a window controller. The nib (10.1 style) contains an NSImageView subclass to override keyDown: and a drawer w/ a custom view and a table. The custom view creates a histogram. In other words, nothing super fancy.

In dealloc, I release everything (using accessors), and the retain counts look correct.

When I instantiate one of these, don't show the drawer, and click "close," everything works fine--running top, everything goes back to the way it was, etc.. However, if the drawer's open, the program crashes (crash log included below). Further, in top, only one of the images--the one I'm storing but not putting into the view--gets released. Interestingly, if I stick a break point in the histogram view's dealloc method, it's never called, regardless as to if the window has "release when closed" set in IB or not. I'm not manually retaining the window, and I release the window controller in dealloc.

The drawer does have some weird stuff going on--the main window in the app's textured and has a drawer, but this window isn't, yet the drawer still takes a textured appearance (filed as a bug a fairly long time ago), but I haven't seen this one before. Any ideas?

Thanks,
Josh
-- crash log --
#0 0x9068ba54 in objc_msgSend
#1 0x93114c2c in -[NSTableView rowsInRect:]
#2 0x93125704 in -[NSTableView _windowChangedKeyState]
#3 0x907e2e14 in -[NSArray makeObjectsPerformSelector:withObject:]
#4 0x930b7800 in -[NSView _windowChangedKeyState]
#5 0x907e2e14 in -[NSArray makeObjectsPerformSelector:withObject:]
#6 0x930b7800 in -[NSView _windowChangedKeyState]
#7 0x907e2e14 in -[NSArray makeObjectsPerformSelector:withObject:]
#8 0x930b7800 in -[NSView _windowChangedKeyState]
#9 0x907e2e14 in -[NSArray makeObjectsPerformSelector:withObject:]
#10 0x930b7800 in -[NSView _windowChangedKeyState]
#11 0x907e2e14 in -[NSArray makeObjectsPerformSelector:withObject:]
#12 0x930b7800 in -[NSView _windowChangedKeyState]
#13 0x907e2e14 in -[NSArray makeObjectsPerformSelector:withObject:]
#14 0x930b7800 in -[NSView _windowChangedKeyState]
#15 0x9313e778 in -[NSFrameView _windowChangedKeyState]
#16 0x931686c8 in -[NSWindow(DrawerSupportPrivate) _changeAllDrawersKeyState]
#17 0x93127514 in -[NSWindow _orderOutAndCalcKeyWithCounter:]
#18 0x930dc168 in -[NSWindow _reallyDoOrderWindow:relativeTo:findKey:forCounter:force:isModal:]
#19 0x9311e98c in -[NSWindow _close]
#20 0x93154684 in -[NSWindow close]
#21 0x930f90dc in -[NSApplication sendAction:to:from:]
#22 0x93119860 in -[NSControl sendAction:to:]
#23 0x9315dfa4 in -[NSCell _sendActionFrom:]
#24 0x930f2acc in -[NSCell trackMouse:inRect:ofView:untilMouseUp:]
#25 0x9315dbc4 in -[NSButtonCell trackMouse:inRect:ofView:untilMouseUp:]
#26 0x9312d4fc in -[NSControl mouseDown:]
#27 0x931dc224 in -[_NSThemeWidget mouseDown:]
#28 0x930c0880 in -[NSWindow sendEvent:]
#29 0x930a8780 in -[NSApplication sendEvent:]
#30 0x930b1600 in -[NSApplication run]
#31 0x9315f6b0 in NSApplicationMain
#32 0x000047a4 in main at main.m:13
#33 0x00004528 in _start at crt.c:267
#34 0x000043a8 in start

--
email@hidden || http://www.areax.net
"BASIC is the Computer Science equivalent of `Scientific Creationism'." --Fortune
_______________________________________________
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.
  • Prev by Date: Re: State of Cocoa Adoption
  • Next by Date: Re: Checking the type...
  • Previous by thread: Re: State of Cocoa adoption
  • Next by thread: Java bridge hangs app when calling method that allocates a java.awt.Rectangle
  • Index(es):
    • Date
    • Thread