NSTextField and NSTextAttachment
NSTextField and NSTextAttachment
- Subject: NSTextField and NSTextAttachment
- From: "Sean Willson" <email@hidden>
- Date: Tue, 26 Feb 2008 22:11:05 -0600
i've created a NSTextView and placed one or more NSTextAttachment
within it that wrap controls and i'm able to get the behavior of
clicking the control etc as i want. however when i place the same
NSTextAttachment in a NSTextField via:
[textField setAttributedStringValue:[NSAttributedString
attributedStringWithAttachment:attachment]];
it doesn't behave at all like the NSTextView. well let me extrapolate
.... it behaves the same as textview in that if i DON'T click into the
TextField but do click on the control it works fine. if i however
click into the textfield first, the control associated with the
attachment doesn't receive any mouse events after that and it's almost
as if it's not sitting in the same z-order as it is when it's in the
textview. i was wondering if anyone knew what was happening here? is
the FieldEditor getting placed above it when mousedown is performed in
the text field? is there any magic i can do to reorder it so that the
embedded control can get mouse events?
thanks for the help ...
sean
--
sean willson
software artist, wideasleep, llc - where ideas leap
http://www.wideasleep.com/
_______________________________________________
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