Re: Trouble with Cocoa windows in the Finder
Re: Trouble with Cocoa windows in the Finder
- Subject: Re: Trouble with Cocoa windows in the Finder
- From: John Stiles <email@hidden>
- Date: Mon, 2 May 2005 11:56:18 -0700
Also, NSRaiseError often prints an error to the console which might
provide more info.
On May 2, 2005, at 10:30 AM, Daniel Jalkut wrote:
I don't have experience with this (sneaking Cocoa into an unsuspecting
host app), but I know that you're supposed to call NSApplicationLoad()
when you put Cocoa into your own Carbon app. Maybe you need to call it
on Finder's behalf, as well?
Daniel
On May 1, 2005, at 3:13 PM, Nicholas Shanks wrote:
Hi guys,
I am having a little difficulty displaying a Cocoa window in the
Finder.
I have a Carbon contextual menu plug-in loading a private Cocoa
bundle which has a NSWindowController subclass as it's principal
class, and just connects it's window outlet to an ordinary empty
window for now.
Trying to display the window causes the following Finder crash:
0 com.apple.Foundation 0x928912ac _NSRaiseError + 264
1 com.apple.AppKit 0x93650be0 -[NSWindow
_commonAwake] + 1248
2 com.apple.AppKit 0x93654280 -[NSWindow
_reallyDoOrderWindow:relativeTo:findKey:forCounter:force:isModal:] +
512
3 com.apple.AppKit 0x9362f99c -[NSIBObjectData
nibInstantiateWithOwner:topLevelObjects:] + 988
4 com.apple.AppKit 0x9361bcf0 loadNib + 240
5 com.apple.AppKit 0x9361b748
+[NSBundle(NSNibLoading)
_loadNibFile:nameTable:withZone:ownerBundle:] + 716
6 com.apple.AppKit 0x936729a4
+[NSBundle(NSNibLoading) loadNibFile:externalNameTable:withZone:] +
156
7 com.apple.AppKit 0x93706204
-[NSWindowController loadWindow] + 204
8 com.apple.AppKit 0x93705f28
-[NSWindowController window] + 92
9 ...kshanks.metadata.editwindow 0x0793fc44
-[EditWindowController init] + 176 (EditWindowController.m:19)
10 ...kshanks.metadata.editwindow 0x0793fb70 Init + 132
(EditWindowController.m:8)
11 com.nickshanks.metadata 0x0542b6fc
MetadataCMPluginHandleSelection + 672 (Metadata.c:311)
This is on A8420 (still waiting for apple to post 428 to ADC)
Is this a bug anyone's seen before? Does anyone know what I can do
about it?
- Nick.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
sweater.com
This email sent to email@hidden
_______________________________________________
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
_______________________________________________
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