RS: "buttons view"
RS: "buttons view"
- Subject: RS: "buttons view"
- From: Roland Silver <email@hidden>
- Date: Tue, 17 Jul 2007 07:20:40 -0600
I have an NSWindow whose contentView has an NSScrollView as subview
which in turn has an NSView (actually an NSTextView) as subview.
I don't want to use the inner view to display text, but rather to
display a number of NSButtons as subviews. That way I can respond
when a line displayed as a button title is clicked, easily highlight
a selected line, etc.
My question is: if the number of buttons to be displayed varies from
time to time, how do I adjust the frame rectangle of the inner view
to accomodate them? or do I create a new view with just the right
bounds rectangle, and replace the old inner view in the scroll view
with the new one?
In either case, how do I arrange so that scrolling works properly
with the new set of buttons?
I also need to set scrolling so that the last button shows.
It would also be nice for the inner view to be flipped, so that its
origin is upper left rather than lower left.
-- Roland Silver <email@hidden>
_______________________________________________
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