Re: Open Window from Input Manager
Re: Open Window from Input Manager
- Subject: Re: Open Window from Input Manager
- From: Daniel <email@hidden>
- Date: Wed, 29 Oct 2008 14:29:59 +0100
Hi,
thank you for your reply.
Does this mean that I'm trying to loading a NIB file from the bundle
of the running application (in which the input manager has been
loaded)?
NSBundle *bundle = [NSBundle bundleWithIdentifier: @"org.x616c.LMC"];
I've found out how to find the right bundle, but I'm still stuck in
trying to load a window from a NIB file inside my bundle ... can
someone help me?
Best regards,
Daniel
On Wed, Oct 29, 2008 at 4:49 AM, <email@hidden> wrote:
>> Hi,
>>
>> I'm working on a project for inserting special characters in text
>> fields in all Cocoa apps by means of an Input Manager.
>>
>> After a given trigger/shortcut I have the need to open a window/panel,
>> but I don't get it.
>>
>> I've tried to load a NIB file, but the Console reported
>>
>> -[NSWindowController loadWindow]: failed to load window nib file 'Chooser'
>>
>> Is there another way to do it right? I've basically the need to open a
>> panel/window, change the keyboard focus from the textfield to the
>> opened panel and then continue by closing the panel.
>
> Hard to say if there's another way to do it when we don't know how
> you're doing it now.
>
> At a guess, you're telling Cocoa to look for "Chooser" in the main
> bundle, but you are not the main bundle so this is the wrong place to
> look.
>
> Mike
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden