Re: Open Window from Input Manager

2008-10-29 Thread Daniel
wow, now it my code looks much nicer :-) thank you very much! Daniel On Wed, Oct 29, 2008 at 5:20 PM, Douglas Davidson <[EMAIL PROTECTED]> wrote: > > On Oct 29, 2008, at 9:16 AM, Daniel wrote: > >> [NSString >> stringWithFormat:@"%@/Contents/Resources/Chooser.nib", [bundle >> bundlePath]] > > I'

Re: Open Window from Input Manager

2008-10-29 Thread Douglas Davidson
On Oct 29, 2008, at 9:16 AM, Daniel wrote: [NSString stringWithFormat:@"%@/Contents/Resources/Chooser.nib", [bundle bundlePath]] I'm afraid I missed the start of this discussion, but this snippet is wrong. It should be [bundle pathForResource:@"Chooser" ofType:@"nib"]. Douglas Davidson

Re: Open Window from Input Manager

2008-10-29 Thread Daniel
I finally got it! :-) NSBundle *bundle = [NSBundle bundleWithIdentifier: @"org.x616c.LMC"]; NSWindowController *controller = [[NSWindowController alloc] initWithWindowNibPath: [NSString stringWithFormat:@"%@/Contents/Resources/Chooser.nib", [bundle bundlePath]] owner: sel

Re: Open Window from Input Manager

2008-10-29 Thread Michael Ash
On Wed, Oct 29, 2008 at 9:29 AM, Daniel <[EMAIL PROTECTED]> wrote: > 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 bundleWithIde

Re: Open Window from Input Manager

2008-10-29 Thread Kevin Gessner
Is your spelling right? The method is "loadNibNamed:owner:"; your email says "loadNibName:owner:". AppKit should be included in your average cocoa program. Also note that it's a class method, not an instance method. Not sure what else would be causing it. -- Kevin Kevin Gessner http://www.

Re: Open Window from Input Manager

2008-10-29 Thread Daniel
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

Re: Open Window from Input Manager

2008-10-28 Thread Michael Ash
On Tue, Oct 28, 2008 at 4:59 PM, Daniel <[EMAIL PROTECTED]> 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. >

Open Window from Input Manager

2008-10-28 Thread Daniel
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 lo