RE: NSTextView border shift
RE: NSTextView border shift
- Subject: RE: NSTextView border shift
- From: "Guy Umbright" <email@hidden>
- Date: Fri, 23 Aug 2002 11:07:17 -0500
- Thread-topic: NSTextView border shift
>
> Oops, yes, I meant NSTextField. I was hoping that I
>
wouldn't have to
>
> resort to that. Do you hack the move (ie 4 pixels up, 3 left,
>
> hardcoded)
>
> or is it possible to figure the appropriate move via accessing the
>
> class?
>
>
if you want that level of control, I would subclass NSTextField and
>
overload the draw method. Keep the text field as a bordered
>
field, and
>
fake out the draw to draw a white background when needed.
>
That way its
>
border will not shift and the text will have an offset into
>
the field. I
>
have not tried it, but I suspect it would work...
>
>
-lance
>
>
------------------------------------
>
Lance Bland
That would definitely be more elegant way to handle it. Thanks.
This electronic mail message and any attached files contain information
intended for the exclusive use of the individual or entity to whom it is
addressed and may contain information that is proprietary, privileged,
confidential and/or exempt from disclosure under applicable law. If you are
not the intended recipient, you are hereby notified that any viewing, copying,
disclosure or distribution of this information may be subject to legal
restriction or sanction. Please notify the sender, by electronic mail or
telephone, of any unintended recipients and delete the original message
without making any copies.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.