Creating subviews programmatically ?
Creating subviews programmatically ?
- Subject: Creating subviews programmatically ?
- From: Vince Ackerman <email@hidden>
- Date: Mon, 26 Nov 2007 08:18:51 -0800
As an Obj C Newbie, I'm having trouble understanding subviews. In a
former life I wrote (in C) a Scheduling program that displayed a
calendar of one of many possible work schedules for a month in a
window. It drew each schedule over a calendar grid straight into a
single view.
Being new to Obj C, I was thinking of re-writing this and have each
day in the calendar window "know" how to draw itself, the date, and
any schedule info for that day. I want to create subviews within the
main view for each day in the calendar, and have them remain in a grid
and redraw text and graphical info, resizing if the window is re-sized.
Is this possible or would the overhead and drawing time be
prohibited? Would I start by adding subviews to the main view ,
giving each it's own bounds rect, then resize the individual subviews
as the main view was re-sized? Is auto sizing taken care of by the
main view?
I don't know where to start with this... can anyone give me a few
hints on a practical approach?
Thanks in advance
Vince
_______________________________________________
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