Re: Getting reference to a window

2008-10-03 Thread Cocoader
Thank you Shawn! Your explanation was very clear. I have always had doubts around what the First Responder did in a NIB/XIB. I understood that NSResponder worked its way up the chain looking for something to handle the event, I guess my knowledge is weakest when it comes to Interface Builde

Re: Getting reference to a window

2008-10-03 Thread Cocoader
You, sir, are a Super Hero! I have spent a lot (and I mean a LOT) of time over this, reading books, looking at other projects, scouring the mailing list archives. I knew from my experiments that it was something wrong with the way my project was set up, not a problem with the code itself.

Re: Getting reference to a window

2008-10-03 Thread Shawn Erickson
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 the framework (or code of your own) creates

Re: Getting reference to a window

2008-10-03 Thread I. Savant
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, because the "File's Owner" of that xib instance is your HF_Br

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