• 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: "I. Savant" <email@hidden>
  • Date: Mon, 26 Nov 2007 15:35:56 -0500

> I disagree with the previous answers.  I see no problem with 31 subviews from a performance perspective.  Things like cursor rects and event handling will be nicer and simpler if each "day" is its own view.

  I disagree with your disagreement and raise you a pedantic correction. ;-)

  First, the pedantic correction. Scott Anguish enjoyed correcting me
by saying that's not really Core Animation but layer backed views. I
countered with: "... which in turn uses Core Animation, hence
'CABasicAnimation' ..." but he has yet to recant.

  Your move, Anguish.

  < To all but Scott who knows better, that is, of course, a joke. ;-)  >

  I still tend to think of the calendar itself as a control and the
days as cells. There's nothing stopping you from using
"core-layer-animated-backed-views" ( :-P ) in the scenarios you've
suggested, but I can't disagree that it'd be easier to use a prototype
view and perhaps an NSCollectionView.

  The drag and drop scenario, however, really wouldn't be any 'easier'
just because they're separate views. It's "dragged from another view
into myself and this is the day I represent" versus "dragged from
another day's rect into this day's rect amongst the days I represent".
Either way works just fine.

--
I.S.

... who - in all seriousness - bows to the far-superior skills of
those he's currently harassing ...
_______________________________________________

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

  • Follow-Ups:
    • Re: Creating subviews programmatically ?
      • From: Scott Anguish <email@hidden>
References: 
 >Re: Creating subviews programmatically ? (From: Erik Buck <email@hidden>)

  • Prev by Date: Re: Newbie question: NSDocument and standard file formats
  • Next by Date: Core Data and RDBs
  • Previous by thread: Re: Creating subviews programmatically ?
  • Next by thread: Re: Creating subviews programmatically ?
  • Index(es):
    • Date
    • Thread