Hello
I need to create a custom border for the textview. This border should be
made out of an image.
I subclassed NSScrollView (since i need the border to surround scroll bars
as well as the text area) and rewrote the -drawRect method.
At the end of this method I am calling [super drawRect:dirtyRect] to get the
original textview with its scrollbars.
The problem is that I do not know how to tell the control (text view +
scroll view) to draw in an "smaller area" - so the original view and
scrollbars are not being drawn on top of my border (thus overriding it), but
instead draw them as a slightly scaled down image. How could I do that?
Thanks!
_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to