Re: window swapping
Re: window swapping
- Subject: Re: window swapping
- From: Uli Kusterer <email@hidden>
- Date: Thu, 28 Jun 2007 17:02:46 +0200
On 28.06.2007, at 16:18, MTMWEB wrote:
I'm developing an application in cocoa using xcode and this is my
first time programming using this environment and language. Can
anyone tell me how to control object properties and how to get it
where when i click a button I can swap between windows.
You control object properties the usual way: Call getter methods on
the objects to read them, and setter methods on them to change them.
I'm not sure that's what you wanted to know, but it's my best guess
at what you asked.
"Swap between windows" is a little vague, too. If you mean swap out
the views of one window (many Windows programmers mix up the
distinction between a window and a view, which the Mac makes, but
Windows doesn't), then look at NSTabView. It doesn't have to have its
border or tabs visible, and can still be used to switch between its
"pages". Just call the appropriate methods on the tab view from your
button's action method.
If you actually want to close one window and open a new window,
just do that: Write an action method that calls close or orderOut: on
one window, and then opens or orderFront:s the new one. If you just
want to change from one window to the other, just orderFront: the new
one, and the old one will stay there, but in the background.
If that doesn't answer your question, I'd suggest you try to
rephrase it.
Cheers,
-- M. Uli Kusterer
http://www.zathras.de
_______________________________________________
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