On Jan 27, 9:11 pm, [EMAIL PROTECTED] (Bruce Van Allen) wrote: > On Jan 27, 2008, at 10:53 AM, [EMAIL PROTECTED] wrote: > > > > > On Jan 27, 10:49 am, [EMAIL PROTECTED] (Chas. Owens) wrote:
<snip /> > >> Why choose? Write Mac::Pasteboard with all of the bells and whistles > >> and then write Mac::Clipboard using Mac::Pasteboard to expose only > >> the > >> clipboard. In the SEE ALSO section you can reference Mac::Pasteboard > >> and people who need the advanced functionality can find it. > > > Interesting thought. The straightforward implementation would be to > > have Mac::Clipboard depend on Mac::Pasteboard (since there's no > > simplified clipboard interface that I have found). But it seems un- > > parsimonious to me to use namespace for maybe a dozen lines of Perl, > > [snip] > > Maybe that's not a bad thing. And it wouldn't really limit the > potential of the namespace. Starting with your Mac::Clipboard (which > would inherit from Mac::Pasteboard) we might see: > Mac::Clipboard::Persistent - provide the ability to cache the > clipboard; > M::C::History - store clipboard values cumulatively with meta-data > (time-stamp, ...); > M::C::Multiple - provide multiple clipboards a la some GUI apps > M::C::Calculate - provide a stack for calculations with multiple > copied values > ... > All of these would work in the "functionality-space" of "The > Clipboard", which isn't quite the same as accessing other features of > the Pasteboard, from the user's POV. Persistent? I hadn't thought of that one. Though it seems to me that YAML and friends could handle most of the functionality there. Or Storable, or ... Cumulative? It seems to me that you can get that with multiple pasteboard items, though you'd have to provide your own metadata. Multiple I think is already in the pasteboard functionality. Calculations? Another that I hadn't thought of. Clipboard/pasteboard management would be interesting, since you can put things on readily enough, but the only way to remove them is to clear the sucker, and then repopulate it minus the stuff you don't want. > > Regardless of the name, thanks for alerting me and others to the > interesting capabilities of the OS X Pasteboard. > Well, to be honest I went to this forum for two purposes: 1) Make sure I wasn't re-inventing the wheel, and 2) See what people thought about the name. I've gotten a lot more feedback than I expected, and I'm not sure what I'm going to do with it all, but better this than nothing. Thanks, Tom Wyant