• 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: Strange stretching NSView
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Strange stretching NSView
      • From: Murat Konar <email@hidden>
References: 
 >Re: Strange stretching NSView (From: Gonzalo Castro <email@hidden>)

  • Prev by Date: Re: How do I get a NSTableView to refresh.
  • Next by Date: Re: what is error -7000 when activating fonts?
  • Previous by thread: Re: Strange stretching NSView
  • Next by thread: Re: Strange stretching NSView
  • Index(es):
    • Date
    • Thread