• 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: Repositioning a content view w/in a window
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Repositioning a content view w/in a window


  • Subject: Re: Repositioning a content view w/in a window
  • From: "Michael Ash" <email@hidden>
  • Date: Sat, 26 Jul 2008 06:15:16 -0400

On Fri, Jul 25, 2008 at 11:08 PM, Henry McGilton (Starbase)
<email@hidden> wrote:
> On Jul 25, 2008, at 6:50 PM, Michael Ash wrote:
>>
>> In fact I would go so far as to say that if you ever use
>> -setContentView:, you are very probably doing it wrong. It is, for the
>> most part, not a very useful call, and you can accomplish the same
>> thing more naturally, easily, and flexibly by adding the view as a
>> subview to the content view instead.
>
> Well, I would not go quite that far, although I agree with you
> in principle for normal everyday stuff.    I have some applications
> which create bare windows --- no borders, controls, resizers,
> shadows, and so on.    The view that replaces the default window
> content view does all the drawing.    I don't see any value in
> having a content view whose only purpose in life is to act as
> a container for my drawing view.

Might come a day that you want two views in there, or you want to move
that one view around, and suddenly the value appears. Since it's no
harder to do things the "right" way, why not?

Mike
_______________________________________________

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: Repositioning a content view w/in a window
      • From: "R.L. Grigg" <email@hidden>
References: 
 >Repositioning a content view w/in a window (From: "R.L. Grigg" <email@hidden>)
 >Re: Repositioning a content view w/in a window (From: Andrew Merenbach <email@hidden>)
 >Re: Repositioning a content view w/in a window (From: "R.L. Grigg" <email@hidden>)
 >Re: Repositioning a content view w/in a window (From: Graham Cox <email@hidden>)
 >Re: Repositioning a content view w/in a window (From: "Michael Ash" <email@hidden>)
 >Re: Repositioning a content view w/in a window (From: "Henry McGilton (Starbase)" <email@hidden>)

  • Prev by Date: unsigning NSNumber
  • Next by Date: Re: Retrieving the current -[NSShadow set]
  • Previous by thread: Re: Repositioning a content view w/in a window
  • Next by thread: Re: Repositioning a content view w/in a window
  • Index(es):
    • Date
    • Thread