• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Creating subviews programmatically ?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >Re: Creating subviews programmatically ? (From: Vince Ackerman <email@hidden>)

  • Prev by Date: Re: [ANN] New version of RegexKit available
  • Next by Date: RE: stop pause and resume CAAnimation
  • Previous by thread: Re: Creating subviews programmatically ?
  • Next by thread: Re: Creating subviews programmatically ?
  • Index(es):
    • Date
    • Thread