Re: Request for Guidance
Re: Request for Guidance
- Subject: Re: Request for Guidance
- From: Andrew Merenbach <email@hidden>
- Date: Thu, 5 Sep 2002 16:51:41 -0700
Hi. I think a similar, though better, approach would be to load the
views separately, then switch the window's content view whenever the
user clicks a new button. I found a good example project that even
resizes the window to the size of the new view. You can find it at:
<
http://www.macdevcenter.com/pub/a/mac/2002/02/15/cocoa.html>
Take care,
Andrew Merenbach
On Thursday, September 5, 2002, at 05:11 AM,
email@hidden wrote:
Message: 14
Date: Thu, 5 Sep 2002 12:45:42 +0100
Subject: Request for Guidance
From: Terry_Smyth <email@hidden>
To: Cocoa List <email@hidden>
Dear all,
As a newcomer to cocoa development I'd love to get some feedback on
whether I'm using the right approach for a new app I am writing.
Hopefully, his will help me avoid spending too long going down the
wrong
track. My level of cocoa experience is minimal ie "read the book, done
some tutorial examples, browsed the documentation".
The app is basically a configuration utility for viewing and changing
various bits of proprietary data (which is held in files, and accessed
independently by a separate tool). Because the data to be
configured/viewed falls neatly into a number of distinct categories, it
would seem nice to have a UI which is similar to the System
Preferences - ie a row of buttons, each of which swaps in a separate
configuration interface. This seems a logical choice to me, but feel
free to suggest alternatives.
My main question is what is the best way to implement this swapping of
panes? I'm thinking of having a number of overlayed NSViews (custom
view
from IB pallette?), only one of which is visible at a time. Clicking a
button hides the current NSView and shows the requested one (using
removeFromSuperview and addSubview), with resizing of the main window
if
required. Does this sound like a valid approach? Presumably hiding an
NSView also hides all its subviews? Does anyone know of any sample code
which does this sort of thing?
Any help/ suggestions greatly appreciated,
Thanks,
Terry Smyth
--
Andrew Merenbach
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.