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?
I have tried to get this working with a NSTextField, but have been
unable.
Thank you.
_______________________________________________
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