Re: Strange stretching NSView
Re: Strange stretching NSView
- Subject: Re: Strange stretching NSView
- From: Ken Tozier <email@hidden>
- Date: Thu, 1 Feb 2007 17:16:06 -0500
On Feb 1, 2007, at 4:26 PM, Gonzalo Castro wrote:
Hey Gonzalo. How you been?
It seems to me that you shouldn't be adding subviews to a view your
currently drawing into. I think this could be the reason your views
aren't
stretching the way you expect.
Well I moved it into the "setPages" method (which is where it
receives new page records) but same deal. Warped views.
Also, "KPage pageWithFrame" looks like stuff you should be doing in
your
Data classes (MVC) not in your drawing routines.
Not sure I'm following that one. Both KPageGrid and KPage are custom
view classes. Do you mean split those two classes into 4 classes?
Something like:
KPageGrid
KPageGridData
KPage
KPageData
If so, though that might be the "right" way to do it, I would then
have to create all the connections between them programatically and
it just seems like too much work (only have 3 days to finish this thing)
The really bizarre thing is that the smaller I set the view height,
the bigger the vertical stretch gets even though the containing frame
size stays exactly the same. It's some stupid math error I'm sure.
Ken
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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