Skip navigation.
 
mlRe: HUB Windows
FROM : Kyle Sluder
DATE : Tue Jan 22 22:47:10 2008

On Jan 22, 2008 4:18 PM, Jeremy <<email_removed>> wrote:
> I have an IBOutlet id lyricsText; which is connected to a text field
> within a HUB Panel Window. I have the HUB hidden by default within the
> MainMenu.nib file. I would like to (on command) open up the HUB
> window, change it's title, and change the text of lyricsText. Now I
> feel stupid asking, but can anyone help me out?


First, it's HUD, not HUB.  ;-)

Secondly, this is what one would typically use an NSWindowController
to do.  What you're describing is really easy to do (-[NSWindow
makeKeyAndOrderFront:], -[NSWindow setTitle:], -[NSTextField
setTitle:]), and is made even easier with an NSWindowController
subclass.

I suggest re-reading the model-view-controller conceptual
documentation, and then read about NSWindowController.

--Kyle Sluder

Related mailsAuthorDate
mlHUB Windows Jeremy Jan 22, 22:18
mlRe: HUB Windows Kyle Sluder Jan 22, 22:47