Skip to main content
Participant
October 20, 2005
Answered

Pseudo Resources

  • October 20, 2005
  • 1 reply
  • 459 views
I'm having problems getting pseudo resources to work.

I've written a format plug-in and I'm trying to store
some text from the file header similar to the history
resource in the SimpleFormat example.

When I add the resource, I get no errors. If I check
the resource count, it shows it has been added. However,
whenever I save the file, the resource count always
returns 0.

What am I missing? I just need a place to preserve some
text from the file's header.

Thanks.

Photoshop CS2 SDK, OSX 10.4.2
This topic has been closed for replies.
Correct answer _Thomas_Lesperance_
Just in case someone has the same problem.

You have to set the imageRsrcData field in the
format record to a new handle with length 0 during
the read start in order to get any pseudo resources
to be returned in the write start.

1 reply

_Thomas_Lesperance_AuthorCorrect answer
Participant
October 25, 2005
Just in case someone has the same problem.

You have to set the imageRsrcData field in the
format record to a new handle with length 0 during
the read start in order to get any pseudo resources
to be returned in the write start.