Missing Window in NSInputServiceProvider Example
Missing Window in NSInputServiceProvider Example
- Subject: Missing Window in NSInputServiceProvider Example
- From: Matthew Cook <email@hidden>
- Date: Wed, 28 Dec 2005 11:02:31 -0600
Greetings all,
I have been working at writing an input server for about a week now,
but I'm having some trouble working through the developer sample code.
I am looking at the HexInputServer example (in Developer/Examples/
AppKit). I've worked over all of the code, and I think I understand
what is going on, but I am having trouble with a palette window that
the program is trying to open, which does not appear.
The example has a nib file that contains this HexInputModePalette,
which is a subclass of NSPanel. The nib is set with another object
as File's Owner in IB, and that object is manually loading the nub
using loadNibNamed:owner:. After the palette's nib is loaded, the
Owner class displays the window with orderOut: and orderFront:.
This all seems right to me, and I have added some NSLog messages to
print the isVisible status and the windows position that report that
the window should be visible. However, it's not. The logging
messages report the following:
HexInputServer[1263] window is up
HexInputServer[1263] origin at x:676.000000 y:20.000000
HexInputServer[1263] size of w:456.000000 h:374.000000
I've tried this all using a completely clean version of the example
code as well as my version that I had already done a bit of work on.
Can anyone suggest what might be going wrong?
-Matthew Cook
_______________________________________________
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