• 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
Insert token at selection of NSTokenField?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Insert token at selection of NSTokenField?


  • Subject: Insert token at selection of NSTokenField?
  • From: "Vincent E." <email@hidden>
  • Date: Sun, 10 Aug 2008 18:23:45 +0200

Hi,

I'm wondering if there is any secret technique for inserting a token into an NSTokenField at the current cursor position.
I have already tried to code it myself and aborted as my code turned out to be way too unreliable.
So before I spend another day trying to get it done myself I thought I should better ask the crowd.


Getting/setting the NSEditor's selection range is fairly simple but how do I tell the NSTokenField
to not insert the new token at the very end of the NSTokenFieldbut at the current selection range?
(And replace the selection with the new token or split plaintext segments if necessary)


Any hints? Has nobody ever needed this? The web doesn't say anything helpful either.

Cheers,
Vincent
_______________________________________________

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


  • Prev by Date: Re: Core Data versioning woes
  • Next by Date: Re: KVC beginners question
  • Previous by thread: Re: CGImage failed to write Exif Auxiliary metadata to image
  • Next by thread: including a cocoa bundle in a carbon app
  • Index(es):
    • Date
    • Thread