Odd Crash with setFrame and plugins' view
Odd Crash with setFrame and plugins' view
- Subject: Odd Crash with setFrame and plugins' view
- From: Brad Peterson <email@hidden>
- Date: Mon, 9 May 2005 16:13:44 -0700 (PDT)
- Comment: DomainKeys? See http://antispam.yahoo.com/domainkeys
Hi all,
As the subject says, I'm getting an odd crash when i
call NSWindow's setFrame: display: animate after
adding a subview contained in a plugin to the main
window of my app.
Or, with code:
NSObject<Plugin> *plug = [pluginInstances
objectAtIndex:tag];
NSView* view = [ plug configurationView ];
NSRect frame = [ view frame ];
[expandingView setSubview: view ];
NSRect wdoFrame = NSMakeRect( [mainWindow
frame].origin.x, [mainWindow
frame].origin.y-(frame.size.height), (frame.size.width
> Width ? frame.size.width : Width),
Height+frame.size.height );
[mainWindow setFrame: wdoFrame display: YES animate:
YES];
All of the values (view, frame, wdoFrame) all appear
to contain good, valid values, and I know the
plugin(s) have worked with other apps, so I don't
think that's the problem either.
I'll include the relevant portions of the call stack
from the crash log below. (BTW, this is on 10.4. I
don't know if it does this on 10.3 as well, since this
is a 10.4-only app.)
Any thoughts would be greatly appreciated.
Thanks,
B
----
Exception: EXC_BAD_ACCESS (0x0001)
Codes: KERN_INVALID_ADDRESS (0x0001) at
0x2333c560
Thread 0 Crashed:
0 <<00000000>> 0xfffeff30 objc_msgSend_rtp + 48
1 com.apple.AppKit 0x93a6738c -[NSWindow
_resizeMetalBackground] + 204
2 com.apple.AppKit 0x9365dd4c -[NSWindow
_oldPlaceWindow:] + 1532
3 com.apple.AppKit 0x9365d4c4 -[NSWindow
_setFrameCommon:display:stashSize:] + 336
4 com.apple.AppKit 0x9365d360 -[NSWindow
setFrame:display:] + 40
5 com.apple.AppKit 0x93761db0
_NSMoveHelperTimerCallBack + 608
6 com.apple.CoreFoundation 0x9075df90
__CFRunLoopDoTimer + 184
7 com.apple.CoreFoundation 0x9074a908
__CFRunLoopRun + 1680
8 com.apple.CoreFoundation 0x90749ebc
CFRunLoopRunSpecific + 268
9 com.apple.AppKit 0x93761428
-[NSMoveHelper _doAnimation] + 460
10 com.apple.AppKit 0x93852f0c
-[NSMoveHelper _resizeWindow:toFrame:display:] + 260
11 com.apple.AppKit 0x9372bdf4 -[NSWindow
setFrame:display:animate:] + 248
12 com.festudios.rac.iSyncPlus 0x0000b094
-[Controller click:withTag:] + 1532 (Controller.m:217)
13 com.festudios.rac.iSyncPlus 0x0000d47c
-[ToolBarButton mouseDown:] + 340 (ToolBarButton.m:44)
14 com.apple.AppKit 0x936ea540
forwardMethod + 92
15 com.apple.AppKit 0x93677f08 -[NSWindow
sendEvent:] + 4616
16 com.apple.AppKit 0x9362113c
-[NSApplication sendEvent:] + 4172
17 com.apple.AppKit 0x936185d0
-[NSApplication run] + 508
18 com.apple.AppKit 0x93708e04
NSApplicationMain + 452
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
_______________________________________________
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