Re: SubViews and Events
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