Skip navigation.
 
mlRE: Resource Pain
FROM : Tobias Peciva
DATE : Wed Dec 18 14:40:01 2002

> ----------
> From:     Avi Drissman
> Subject:     Re: Resource Pain
>
> At 1:50 PM -0800 12/18/02, Avi Drissman wrote:
>
> >Switch to FSOpenResFile in Resources.h. It does data-fork resources.
>
> Nope, let me try again.
>
> Switch to FSOpenResourceFile() in Resources.h. If you pass in a null
> forkname, it will use the data fork for the resources.
>
>

Actually, FSOpenResFile seems to work fine - the file is loaded and a valid
reference number is returned.

However, it turns out that loading the resource before the .nib is not
enough to have the PICT show up in the picture control. Is there an
additional step you need to take? I'm not sure about the mechanics at work
here, not even in the (working) application case. My guess would have been
that when the .nib is loaded, the resource chain is scanned for the resource
id specified for the picture control in IB; but this doesn't seem to be the
whole story?

Thanks,
Tobias Peciva
Pharos Systems

Related mailsAuthorDate
mlResource Pain Tobias Peciva Dec 18, 13:43
mlRe: Resource Pain Avi Drissman Dec 18, 13:52
mlRe: Resource Pain Avi Drissman Dec 18, 13:59
mlRe: Resource Pain Vince DeMarco Dec 18, 14:29
mlRE: Resource Pain Tobias Peciva Dec 18, 14:40
mlRE: Resource Pain Tobias Peciva Dec 18, 14:57