Re: RS: "buttons view"
Re: RS: "buttons view"
- Subject: Re: RS: "buttons view"
- From: j o a r <email@hidden>
- Date: Tue, 17 Jul 2007 15:42:47 +0200
On Jul 17, 2007, at 3:20 PM, Roland Silver wrote:
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.
This seems like the perfect time to ask: What are you really trying to
achieve? While I will attempt to answer your question below, I have a
feeling that this probably won't be the best solution for your problem.
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.
The easiest way to do this would probably to use a table view with
button cells, instead of the standard text cells.
j o a r
_______________________________________________
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