• 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: create custom control same as multiple monitor control that manages monitors windows
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: create custom control same as multiple monitor control that manages monitors windows


  • Subject: Re: create custom control same as multiple monitor control that manages monitors windows
  • From: "I. Savant" <email@hidden>
  • Date: Mon, 12 Jan 2009 11:32:39 -0500

On Mon, Jan 12, 2009 at 11:17 AM, Paul Bruneau
<email@hidden> wrote:

> You know, it's funny, when I first started my first Cocoa project as a total
> Cocoa newb I wanted to use controls/cells for my rectangles but I was
> strongly advised against it by very highly regarded Cocoa gurus.

  :-) I can see the argument for that in certain circumstances.

> Maybe it's because my project could have hundreds of rectangles in a single
> view and the gurus were concerned about all the overhead?

  ... this being one of them. It's probably easiest to do it with a
custom view because, to do it with cells, you have to build a more
complicated control like NSTableView. Its data cell is reused (to
avoid creating potentially astronomical numbers of cells just for
drawing).

  It really would depend on the situation and the comfort level
involved. My point, however, was that the "standard way" would be to
use the control/cell mechanism. Perhaps the Cocoa guru in question was
generalizing. :-)

--
I.S.
_______________________________________________

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: 
 >create custom control same as multiple monitor control that manages monitors windows (From: "Gami Ravi" <email@hidden>)
 >Re: create custom control same as multiple monitor control that manages monitors windows (From: Paul Bruneau <email@hidden>)
 >Re: create custom control same as multiple monitor control that manages monitors windows (From: "I. Savant" <email@hidden>)
 >Re: create custom control same as multiple monitor control that manages monitors windows (From: Paul Bruneau <email@hidden>)

  • Prev by Date: Re: debugging hard-to-locate error in NSApplication delegate
  • Next by Date: Re: Disabled button looks like enabled
  • Previous by thread: Re: create custom control same as multiple monitor control that manages monitors windows
  • Next by thread: Remove Items From NSSet (safely)
  • Index(es):
    • Date
    • Thread