Re: Getting reference to a window

2008-10-03 Thread Cocoader
Shawn Erickson wrote: On Fri, Oct 3, 2008 at 6:57 AM, Cocoader <[EMAIL PROTECTED]> wrote: Hi there, My NSDocument 'HF_Browser' works with a window in a XIB file. From within this HF_Browser.m file I can get a reference to the window, set it's title, etc. At runtime

Re: Getting reference to a window

2008-10-03 Thread Cocoader
On 3 Oct 2008, at 19:06, I. Savant wrote: On Fri, Oct 3, 2008 at 9:57 AM, Cocoader <[EMAIL PROTECTED]> wrote: My NSDocument 'HF_Browser' works with a window in a XIB file. From within this HF_Browser.m file I can get a reference to the window, set it's title, etc. Yes

Getting reference to a window

2008-10-03 Thread Cocoader
Hi there, My NSDocument 'HF_Browser' works with a window in a XIB file. From within this HF_Browser.m file I can get a reference to the window, set it's title, etc. In MainMenu.xib I have a menu command, 'Jump To' (invoked with Cmd-J). I dragged an Object object into MainMenu.xid and set

Passing focus to a control

2008-09-29 Thread Cocoader
I have a window of controls, a NSComboBox and some NSTextFields. I want to be able to place the cursor in the NSComboBox when the user selects Cmd-J. All of the code for managing the window is in an .h and .m file: @interface HF_Browser : NSDocument { ... When I press Cmd-J I get my functio