• 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: SubViews and Events
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: SubViews and Events


  • Subject: Re: SubViews and Events
  • From: Jerrod Fowkes <email@hidden>
  • Date: Wed, 16 Aug 2006 07:17:28 -0700 (PDT)

"I. Savant" <email@hidden> wrote:
   It's safe to say "always" call initWithFrame: versus init with
views of any kind. You should always use the designated initializer
for any class, unless you fully understand why you'd do otherwise.

--
I.S.
Makes sense. Thank you. Currently I am calculating the current frame for each of the views that I need to add to my superView with -addSubView. Which is going well, except when each of my subViews goto draw. When initWithFrame gets called for each of the subviews, they are getting called with the correct NSRect, however each of the views' rect in their respective drawRect does not correspond to the rect that it was initialized with. Which is a problem, because they keep drawing over the first subView. -Jerrod


---------------------------------
Stay in the know. Pulse on the new Yahoo.com.  Check it out.
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: SubViews and Events
      • From: Uli Kusterer <email@hidden>
References: 
 >Re: SubViews and Events (From: "I. Savant" <email@hidden>)

  • Prev by Date: Re: Lowercase key equivalents
  • Next by Date: Re: Drag and drop to an NSTextView
  • Previous by thread: Re: SubViews and Events
  • Next by thread: Re: SubViews and Events
  • Index(es):
    • Date
    • Thread