• 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: [SOLVED] NSMatrix Subclassed NSScrollView viewable area width?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [SOLVED] NSMatrix Subclassed NSScrollView viewable area width?


  • Subject: Re: [SOLVED] NSMatrix Subclassed NSScrollView viewable area width?
  • From: James Andrews <email@hidden>
  • Date: Tue, 18 Jan 2005 22:10:49 -0500

OK, so inside interface builder my ImageMatrix customview had a width
almost twice the size of it's super view.  This leads to another
problem, but I will post that in another post, if I can't figure it
out on my own.

-james


On Tue, 18 Jan 2005 19:06:47 -0700, John Pannell
<email@hidden> wrote:
> Hi James-
>
> > I've created an NSMatrix subclass, that in IB I have made a subclass
> > of NSScrollView.
>
> Did you mean your NSMatrix subclass is a sub*view* of NSScrollView?  If
> so, I think I can help.  To get the width of the view containing the
> NSMatrix, you can call
>
> [[self superview] frame].size.width
>
> from any method in your NSMatrix subclass. Due to the mechanics of
> NSScrollView, the superview of the NSMatrix is actually an instance of
> NSClipView.  More details in the NSScrollView docs...
>
> Hope this helps!
>
> John
>
>
 _______________________________________________
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

References: 
 >NSMatrix Subclassed NSScrollView viewable area width? (From: James Andrews <email@hidden>)
 >Re: NSMatrix Subclassed NSScrollView viewable area width? (From: John Pannell <email@hidden>)

  • Prev by Date: Re: AddressBook card view
  • Next by Date: Re: Dragging in an NSTextView
  • Previous by thread: Re: NSMatrix Subclassed NSScrollView viewable area width?
  • Next by thread: Re: NSMatrix Subclassed NSScrollView viewable area width?
  • Index(es):
    • Date
    • Thread