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

Re: NSScrollView


  • Subject: Re: NSScrollView
  • From: Mark T <email@hidden>
  • Date: Tue, 19 Apr 2005 21:12:32 -0400

On Apr 19, 2005, at 2:39 PM, Brian O'Brien wrote:

Yes.. I think this helps.. :)
I just wanted to make sure I wasn't going down the wrong path.. (Which I've done in the past)
Right Now I have an NSView with N by M (rows/cols) subviews...
I want to be able to scroll around and see a portion of these N by M subviews...
I guess its my responsability to manage the displaying of these image based on the slider positions.. Correct?

It would be much more efficient to use NSImageCells instead of NSImageViews for the images within the main view. In your case, I'd recommend subclassing NSMatrix for your main view, putting the subclass into an NSScrollView, and using plain NSImageCells in your NSMatrix subclass. Unless you're planning to do something special with each image, then subclass NSImageCell.


_______________________________________________
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: 
 >NSScrollView (From: "Brian O'Brien" <email@hidden>)
 >Re: NSScrollView (From: Jonathon Mah <email@hidden>)
 >Re: NSScrollView (From: "Brian O'Brien" <email@hidden>)

  • Prev by Date: Re: Printing large DB reports
  • Next by Date: Re: Feature suggestions for easier debugging of Cocoa Bindings.
  • Previous by thread: Re: NSScrollView
  • Next by thread: Re: NSDocument-based architecture suiting my NSBundle-based documents case?
  • Index(es):
    • Date
    • Thread