Sketch.app / SKTText (was Re: NSTextField - dynamic resizing while editing)
Sketch.app / SKTText (was Re: NSTextField - dynamic resizing while editing)
- Subject: Sketch.app / SKTText (was Re: NSTextField - dynamic resizing while editing)
- From: Eric Gorr <email@hidden>
- Date: Mon, 9 Feb 2009 12:09:23 -0500
On Feb 9, 2009, at 10:51 AM, Erik Buck wrote:
On Feb 9, 2009, at 10:17 AM, Eric Gorr wrote:
Here is a picture of what I would to do:
http://ericgorr.net/cocoadev/outlinetable/namedparts.png
Anything outside of the green box will be clipped.
Basically, I have a NSTextField inside of a NSView which is being
used as a label for a NSImageView.
I would like to allow the user to edit the label of the image.
When the edit begins, I would like to be able to draw a focus ring
or just a black rectangle which fits exactly around the text being
edited.
During editing, I would like that focus ring (or black rectangle)
to dynamically resize itself as the user adds or removes characters.
It would be nice if the text would wrap to a second line, but that
would not be a requirement.
Has anyone played around with doing this? Any sample code out there
which shows how it could be done?
The Sketch.app example on your hard disk may provide guidance.
Thank you.
Am I correct in thinking that SKTText is essentially a complete (or
mostly complete) replacement of NSTextField?
Has anyone played around with SKTText enough to comment on what's it's
limitations are?
(And, if it is a replacement for NSTextField, out of curiosity, what
is causing the cursor to blink?)
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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:
This email sent to email@hidden