Re: Finding windows made in Interface Builder?
Re: Finding windows made in Interface Builder?
- Subject: Re: Finding windows made in Interface Builder?
- From: "I. Savant" <email@hidden>
- Date: Wed, 11 Jul 2007 11:49:38 -0400
On 7/11/07, Kai-Mikael Jää-Aro <email@hidden> wrote:
I have created a number of windows in Interface Builder, is there any
way of finding these windows programmatically? I e, the windows
should pop up in response to clicks in various regions in a view, but
I'm not sure how to find the reference to a window so that I can tell
it to open.
You appear to have missed the basics and should read up on creating
outlets. It's best to review the Currency Converter tutorial, which
covers the basic workflow you lack:
http://developer.apple.com/documentation/Cocoa/Conceptual/ObjCTutorial/index.html
In short, you need to create an outlet in your controller and
connect it to the window. From that point on, you can send messages to
the windows via their outlets (like "[windowOne
makeKeyAndOrderFront:someSender]" and "[fooWindow
orderOut:someSender]").
--
I.S.
_______________________________________________
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