• 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
NSMatrix setOrigin issue?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSMatrix setOrigin issue?


  • Subject: NSMatrix setOrigin issue?
  • From: Richard Salvatierra <email@hidden>
  • Date: Thu, 27 Jul 2006 13:17:55 -0400

How can I center the NSMatrix (vertically) within the width of an NSScrollView?

I have an NSMatrix (subclass) in a NSScrollView. I am doing a scaling routine to the cells adjusting size and spacing. I want to center the matrix within the scrollview. I can't seem to change the origin of the matrix using [self setFrameOrigin: newOrigin]. If I change the origin of the it's superview, it appears to be placed correctly, but the background of the scrollView does not fill correctly. It fills starting with the origin point.

Thanks,
Rich
_______________________________________________
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


  • Prev by Date: Re: connect() returns Refused Connection Error
  • Next by Date: Displaying an image with floating point samples
  • Previous by thread: Re: connect() returns Refused Connection Error
  • Next by thread: Re: NSMatrix setOrigin issue?
  • Index(es):
    • Date
    • Thread