Re: Creating subviews programmatically ?
Re: Creating subviews programmatically ?
- Subject: Re: Creating subviews programmatically ?
- From: Scott Ribe <email@hidden>
- Date: Tue, 04 Dec 2007 15:47:12 -0700
- Thread-topic: Creating subviews programmatically ?
Instead of sorting the array, just take them in the order they're provided,
and use your gridNum member to determine the frame for each. Something like,
for each subview, regardless of whether you use objectAtIndex or an
enumerator:
xpos = (subvw->gridnum % 7) * dayWidth;
ypos = (subvw->gridnum / 6) * weekHeight;
--
Scott Ribe
email@hidden
http://www.killerbytes.com/
(303) 722-0567 voice
_______________________________________________
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