• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
NSTextField and NSTextAttachment
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: NSTextField and NSTextAttachment
      • From: Ben Lachman <email@hidden>
  • Prev by Date: Re: Can CoreData return only unique results of an attribute
  • Next by Date: Re: Animated button
  • Previous by thread: how to know current page?
  • Next by thread: Re: NSTextField and NSTextAttachment
  • Index(es):
    • Date
    • Thread