Re: How to implement an "Accordion" view?
Re: How to implement an "Accordion" view?
- Subject: Re: How to implement an "Accordion" view?
- From: Gordon Apple <email@hidden>
- Date: Tue, 18 Dec 2007 13:05:44 -0600
I just posted the code and some screen shots of mine at
<www.ed4u.com/DisclosureCode>. This is for a panel window and it is the one
where I am still having a problem with redraw flash, but other than that it
works. It uses generic views for the disclosure panes. All the code is in
a controller which I use in two of my nibs (Inspector window and A/V
window). Pay attention to the comments. I did flag the disclosures buttons
with a tag so I could find them to determine their state. The panes do have
to be set to the correct width and horizontal position in the nib.
Vertically, they only have to be in the correct order -- the code will space
them properly. I had to sort the panes by original vertical position --
otherwise they would stack in the order created rather than the order I
wanted.
Instead of a panel window, you could probably do the same thing in a view
within a scrollerView.
> Message: 9
> Date: Mon, 17 Dec 2007 11:06:25 -0800
> From: "Nat Edar" <email@hidden>
> Subject: How to implement an "Accordion" view?
> To: email@hidden
> Message-ID:
> <email@hidden>
> Content-Type: text/plain; charset=ISO-8859-1
>
> I'm in need of a view that acts just like the "accordion" view in CSSEdit.
> Here's an example--the accordion is on the right hand side:
> http://macrabbit.com/cssedit/screenshots/VisualEditing.jpg
> It looks like there are a few view overlapping all inside of a NSScrollView
> (scroll bars appear when the accordion is expanded pass the height of the
> window.) Is there some direction you could point me to get started on
> building something like this? Is there an open source project that has
> something similar I could take a look at?
>
> Thanks in advance!
>
_______________________________________________
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