Getting notification that the pasteboard's changed?
Getting notification that the pasteboard's changed?
- Subject: Getting notification that the pasteboard's changed?
- From: Michael Norris <email@hidden>
- Date: Fri, 1 Nov 2002 13:39:29 +1300
Hi there,
Thanks to Nicholas for replying to my earlier question. I now have
another one that I can't seem to find any documentation on.
I'm building an app that displays the current contents of the
Pasteboard in an NSTextView. The (currently unsolved) problem is trying
to keep the NSTextView always reflecting the current contents of the
pasteboard, even if I switch to another application and change it there.
What I really need is some way to get notification that the
pasteboard's changed, but there doesn't seem to be any way to do this
that I can see. Did I miss something, or do I just have to set up a
timer to keep checking (something I really don't want to have to do).
When I wrote this application in OS 9, I had a kludge that only updated
the view when the process was brought to the front, but that of course
was not ideal. I'm sure in OS X there must be a more elegant way of
doing this.
-mike
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.