At 6:17 AM -0800 1/13/06, Lennox Jacob wrote:

I have an app - MyApp which has a BevelButton.

When I select MyClippingFile then MyClippingFile becomes the Caption.

What does it mean to "select" MyClippingFile?

At this point, I would like a window named MyDisplayWindow to open (So far so good, I can do that).

I would now like to display the contents of MyClippingFile in MyDisplayWindow.EditField - That I cannot get to happen.

What have you tried so far?  What do you have to start with?

I'll take a guess that you have a FolderItem which refers to MyClippingFile, and that the problem is that you don't know how to read the contents of such a file. I don't, either -- it would help greatly if you told us what platform you're running on, since "clipping file" isn't a standard file format. On classic MacOS it was actually a resource file, if I recall correctly, so you'd use the ResourceFork class to read it. On OS X, I doubt that's the case...

Hmm, or maybe it is. I just dragged some text to the desktop in OS 10.4.4, and it appears in Terminal as a 0-length file (i.e., no content at all). So maybe Apple hasn't yet moved away from resource forks for these yet.

...Yep, sure enough. I opened it with a little resource editor (I'm using one I wrote ages ago, but you might try downloading ResFool), and it contains two resources: a 'drag' resource that I believe defines the types of data involved, and a 'TEXT' resource that contains the actual text. So, I think all you'd need to do is open the resource fork of the clipping file, and read the first 'TEXT' resource.

HTH,
- Joe

--

Joseph J. Strout
[EMAIL PROTECTED]
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>

Reply via email to