Re: HUB Windows
Re: HUB Windows
- Subject: Re: HUB Windows
- From: "Kyle Sluder" <email@hidden>
- Date: Tue, 22 Jan 2008 16:47:10 -0500
On Jan 22, 2008 4:18 PM, Jeremy <email@hidden> 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
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden