Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Rez -> SysError 0?



Chris,

According to the MPW docs:

The Read statment defines a resource and reads the data fork of a file as the data for the resource.

and further...

The type of the resource being defined should be appropriate for the data being read: 'TEXT' or 'STR ' for text, 'PICT' or 'ICON' for bitmap data, and so forth.

So I think I'm using it correctly.

Cheers,
Dave

On Apr 28, 2005, at 13:31, Chris Espinosa wrote:

On Apr 28, 2005, at 9:01 AM, Dave MacLachlan wrote:

Anybody know why Rez would be giving me SysError 0? Isn't 0 normally noErr?Im trying to read a text file into a resource doing something like this:

read 'VIEW' (2001, "My View", purgeable) "MyView.txt";

and "MyView.txt" appears to be accessible via the -i args that I've given to Rez. I've used Full Paths just to make sure.

read is for reading resource files.  If you want to inject a text file into a .r file you probably want the #include directive.

Chris
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/xcode-users/email@hidden

This email sent to email@hidden

References: 
 >Rez -> SysError 0? (From: Dave MacLachlan <email@hidden>)
 >Re: Rez -> SysError 0? (From: Chris Espinosa <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.