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 (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