Problem with NSView and subviews
Problem with NSView and subviews
- Subject: Problem with NSView and subviews
- From: email@hidden
- Date: Wed, 17 Aug 2005 14:44:10 +0200
Here is my problem : I have a subclassed NSView in a NSScrollView (whose size is
smaller than the NSScrollView in IB). When the user selects something to view in
a list, my view is resized so that it can show all the data, and I expect scroll
bars to activate when I resize to something bigger than the scroll view, but
they don't ! Actually, the data I'm drawing is just drawn smaller into the
view, and its size didn't change at all (I'm using setFrameSize). I also tried
using setBoundsSize but it doesn't work either. Any idea on this ?
Now, for testing purposes, I tried resizing the view in IB, so I made it big
enough to hold whatever I wanted to draw, and now the scroll bars activate. I
put subviews in that view to display my data (basically subclassed NSView, each
drawing an image). When I scroll the view, images are distorted on borders, so
that I have to scroll a part of the image on the center to see it clearly. This
is very weird and I didn't find anyone having the same problem out here, so any
help with that ?
Thanks
Fred
_______________________________________________
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