Dear list,

I am facing an issue in changing the first token field color in the 
NSTokenField, which is getting populated from an array. The token field should 
allow editing, drag & drop. If the user selected any token and drag&drop at the 
first place, the dropped token field background color should get changed.

Displaying the first token with different background color is achieved through 
NSAttributedString, but while editing the token field, the  delegate method of 
NSTokenField 'tokenField:displayStringForRepresentedObject' will accepts only 
NSString value, but not the NSAttributedString value. Here if we return 
NSAttributedString, application gets crash (It crashes because there are some 
internal methods gets called on NSAttributedString, which should have been the 
NSString instead, in the Appkit framwork). This is the place where we exactly 
not able to continue.

If there is any other way to achieve this or for any suggestions, please reply 
to the same mail.

Please let me know if any more further information is required.

Thanks in advance.

Regards,
vijay

Mahindra Satyam powered IT for the 2010 FIFA World Cup(TM).
To learn more, visit: www.mahindrasatyam.com/fifa/index.asp

________________________________
DISCLAIMER:
This email (including any attachments) is intended for the sole use of the 
intended recipient/s and may contain material that is CONFIDENTIAL AND PRIVATE 
COMPANY INFORMATION. Any review or reliance by others or copying or 
distribution or forwarding of any or all of the contents in this message is 
STRICTLY PROHIBITED. If you are not the intended recipient, please contact the 
sender by email and delete all copies; your cooperation in this regard is 
appreciated.
_______________________________________________

Cocoa-dev mailing list ([email protected])

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 [email protected]

Reply via email to