FROM : Mark T
DATE : Wed Apr 20 03:12:32 2005
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.
DATE : Wed Apr 20 03:12:32 2005
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.
| Related mails | Author | Date |
|---|---|---|
| Brian O'Brien | Apr 19, 19:31 | |
| Jonathon Mah | Apr 19, 20:07 | |
| Brian O'Brien | Apr 19, 20:39 | |
| Jonathon Mah | Apr 19, 20:46 | |
| Mark T | Apr 20, 03:12 |






Cocoa mail archive

