• 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: OT: View/subview setup [Was: Re: (got it) lower-right origin on NSView?]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: OT: View/subview setup [Was: Re: (got it) lower-right origin on NSView?]


  • Subject: Re: OT: View/subview setup [Was: Re: (got it) lower-right origin on NSView?]
  • From: j o a r <email@hidden>
  • Date: Sun, 28 Jul 2002 10:45:35 +0200

Could you elaborate a bit further on what you are missing with the current functionality of NSView, and what you would gain with your proposed setup? I'm not sure I get it.

You would like to be able to re-use a NSView as a subview of many superviews, or several times per superview, why?
Why do you want to allow for overlapping views, are there cases when that would be very practical or when that is the only way to solve some problem?

j o a r

On Sunday, Jul 28, 2002, at 03:57 Europe/Stockholm, Michael Gersten wrote:

Is it just me, or is the current view/subview setup less than ideal?

Right now,
A subview knows it's offset in the parent
A view only knows the array of subviews.

The ideal seems to me to be:
A subview knows itself.
A view knows the subviews and offset

At the very least, that would allow a subview to be in the parent view two or more times, at different offsets/locations (just like cells in a matrix); it would make overlaps entirely the function of the containing (parent) view. If the subviews are considered an ordered array (instead of an unordered set), then the ordering would also give a definate answer to the question of how overlapping views are > handled.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

References: 
 >OT: View/subview setup [Was: Re: (got it) lower-right origin on NSView?] (From: Michael Gersten <email@hidden>)

  • Prev by Date: Re: (no subject)
  • Next by Date: Re: Serial number verification / obfuscation (was: Re: Hiding
  • Previous by thread: OT: View/subview setup [Was: Re: (got it) lower-right origin on NSView?]
  • Next by thread: Re printing
  • Index(es):
    • Date
    • Thread