Re: NSOpenPanel problem
Re: NSOpenPanel problem
- Subject: Re: NSOpenPanel problem
- From: James Spencer <email@hidden>
- Date: Sat, 19 Nov 2005 10:51:16 -0600
Corbin, I apologize; I missed your reply when you posted it and only
found it when revisiting the issue and going back through the mail
archives this morning.
It is just my app: TextEdit etc. work fine. My document icon appears
in TextEdit's browser as a thumbnail etc. and, as my file is actually
nothing more than a standard Cocoa archived plist, TextEdit will even
open it.
In a similar vein, I added a second file type to my app's plist, a
file type created by other applications other than mine. This file
type is similarly just a specialized text file (specialized in terms
of the content of the text, not formatting etc.; it is plain text)
which other apps open fine but when I click on those files, again
instant crash.
Re the delegate, I have not set one and have only been looking for
standard behavior. (BTW, is there some requirement for a delegate
and some delegate method that I must implement? I certainly didn't
think so.)
I've pasted the entire stack I get on crash as requested.
Again, thanks for replying and my apologies for overlooking your
response.
Spence
#0 0xfcfcfcfc in ??
#1 0x907b4644 in __CFAllocatorDeallocate
#2 0x9075ac54 in __CFDataDeallocate
#3 0x9073e4f4 in _CFRelease
#4 0x919763bc in _CGImageReadFinalize
#5 0x9073e4f4 in _CFRelease
#6 0x91976244 in _CGImageSourceFinalize
#7 0x9073e4f4 in _CFRelease
#8 0x9382984c in -[NSNavFBENode
_calculatePreviewThumbnailImage:allowComputingFromFullImage:]
#9 0x938294ec in -[NSNavFBENode fastGetPreviewThumbnailImage]
#10 0x9382937c in -[NSNavFBENodePreviewHelper previewThumbnailImage]
#11 0x93827b84 in -[NSNavBrowserCell
drawPreviewInteriorWithFrame:inView:]
#12 0x93815e90 in -[NSNavBrowserCell drawInteriorWithFrame:inView:]
#13 0x93814e18 in -[NSBrowserCell drawWithFrame:inView:]
#14 0x938149d4 in -[NSMatrix drawRect:]
#15 0x936b5628 in -[NSView _drawRect:clip:]
#16 0x936b4be8 in -[NSView
_recursiveDisplayAllDirtyWithLockFocus:visRect:]
#17 0x936b7930 in _recursiveDisplayInRect2
#18 0x9076d954 in CFArrayApplyFunction
#19 0x936b4cfc in -[NSView
_recursiveDisplayAllDirtyWithLockFocus:visRect:]
#20 0x936b7930 in _recursiveDisplayInRect2
#21 0x9076d954 in CFArrayApplyFunction
#22 0x936b4cfc in -[NSView
_recursiveDisplayAllDirtyWithLockFocus:visRect:]
#23 0x936b41b0 in -[NSView
_recursiveDisplayRectIfNeededIgnoringOpacity:isVisibleRect:rectIsVisible
RectForView:topView:]
#24 0x936b4778 in -[NSView
_recursiveDisplayRectIfNeededIgnoringOpacity:isVisibleRect:rectIsVisible
RectForView:topView:]
#25 0x936b4778 in -[NSView
_recursiveDisplayRectIfNeededIgnoringOpacity:isVisibleRect:rectIsVisible
RectForView:topView:]
#26 0x936b4778 in -[NSView
_recursiveDisplayRectIfNeededIgnoringOpacity:isVisibleRect:rectIsVisible
RectForView:topView:]
#27 0x936b4778 in -[NSView
_recursiveDisplayRectIfNeededIgnoringOpacity:isVisibleRect:rectIsVisible
RectForView:topView:]
#28 0x936b4778 in -[NSView
_recursiveDisplayRectIfNeededIgnoringOpacity:isVisibleRect:rectIsVisible
RectForView:topView:]
#29 0x936b4778 in -[NSView
_recursiveDisplayRectIfNeededIgnoringOpacity:isVisibleRect:rectIsVisible
RectForView:topView:]
#30 0x936b4778 in -[NSView
_recursiveDisplayRectIfNeededIgnoringOpacity:isVisibleRect:rectIsVisible
RectForView:topView:]
#31 0x936b4778 in -[NSView
_recursiveDisplayRectIfNeededIgnoringOpacity:isVisibleRect:rectIsVisible
RectForView:topView:]
#32 0x936b4778 in -[NSView
_recursiveDisplayRectIfNeededIgnoringOpacity:isVisibleRect:rectIsVisible
RectForView:topView:]
#33 0x936b4778 in -[NSView
_recursiveDisplayRectIfNeededIgnoringOpacity:isVisibleRect:rectIsVisible
RectForView:topView:]
#34 0x936b4778 in -[NSView
_recursiveDisplayRectIfNeededIgnoringOpacity:isVisibleRect:rectIsVisible
RectForView:topView:]
#35 0x936d4e14 in -[NSThemeFrame
_recursiveDisplayRectIfNeededIgnoringOpacity:isVisibleRect:rectIsVisible
RectForView:topView:]
#36 0x936ade24 in -[NSView
_displayRectIgnoringOpacity:isVisibleRect:rectIsVisibleRectForView:]
#37 0x936a3118 in -[NSView displayIfNeeded]
#38 0x936a2f88 in -[NSWindow displayIfNeeded]
#39 0x936a2e34 in _handleWindowNeedsDisplay
#40 0x9075dccc in __CFRunLoopDoObservers
#41 0x9075df6c in __CFRunLoopRun
#42 0x9075da0c in CFRunLoopRunSpecific
#43 0x931711e0 in RunCurrentEventLoopInMode
#44 0x931707ec in ReceiveNextEventCommon
#45 0x931706e0 in BlockUntilNextEventMatchingListInMode
#46 0x9366f904 in _DPSNextEvent
#47 0x9366f5c8 in -[NSApplication
nextEventMatchingMask:untilDate:inMode:dequeue:]
#48 0x9381a5e4 in -[NSApplication _realDoModalLoop:peek:]
#49 0x93810fbc in -[NSApplication runModalForWindow:]
#50 0x9380b7d8 in -[NSSavePanel(NSSavePanelRuntime)
runModalForDirectory:file:types:]
#51 0x9380b584 in -[NSDocumentController runModalOpenPanel:forTypes:]
#52 0x937ee5ec in -[NSDocumentController URLsFromRunningOpenPanel]
#53 0x939a7780 in -[NSDocumentController openDocument:]
#54 0x93710a20 in -[NSApplication sendAction:to:from:]
#55 0x9376b254 in -[NSMenu performActionForItemAtIndex:]
#56 0x9376afd8 in -[NSCarbonMenuImpl
performActionWithHighlightingForItemAtIndex:]
#57 0x93672320 in _NSHandleCarbonMenuEvent
#58 0x9366fc84 in _DPSNextEvent
#59 0x9366f5c8 in -[NSApplication
nextEventMatchingMask:untilDate:inMode:dequeue:]
#60 0x9366bb0c in -[NSApplication run]
#61 0x9375c618 in NSApplicationMain
#62 0x00012fa8 in main at main.m:13
James P. Spencer
Rochester, MN
email@hidden
"Badges?? We don't need no stinkin badges!"
On Nov 17, 2005, at 6:57 PM, Corbin Dunn wrote:
James -- a few questions.
Is it just your app, or every app?
IE: if you set TextEdit's open panel to be in Browser mode, and
browser to your file, will it also crash?
Can you paste the entire stack here?
Are you doing anything in the open/save panel delegate? if so, what?
-corbin
Am 12.11.2005 um 12:09 schrieb James Spencer:
> When my app tries to open an existing file (by calling
>
> [[NSDocumentController sharedDocumentController] openDocument:self];
>
> the app crashes as soon as the user clicks on a file in the open
> panel. I'm running out of ideas as to what to even look at to
> figure out why. The files can be opened no problem if I drop a
> file on my app or by selecting it from the Open Recent menu
> choice. The stack trace, a portion of which follows, indicates
> that Cocoa is trying to get a thumbnail for the file when it
> crashes but otherwise, I'm not seeing anything that even gives a
> clue as to what is wrong. I didn't paste the entire stack but
> there is nothing from my own code in the stack; it is all Cocoa.
> Anyone have any suggestions?
_______________________________________________
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