[futurebasic] Re: [FB] PLST?

Message: < previous - next > : Reply : Subscribe : Cleanse
Home   : August 2004 : Group Archive : Group : All Groups

From: tedd <tedd@...>
Date: Thu, 19 Aug 2004 18:44:30 -0400
>tedd wrote:
>
>>Okay, please excuse my ignorance, I followed you up to this point, but--
>>
>>>Minimal plst 0
>>>--------------
>>>This property-list text does one thing only: it tells the system 
>>>to look for an icns 128 resource as the app's icon. Note that the 
>>>text has exactly 8 lines; if the 2nd line gets irreversibly split 
>>>by email, paste the whole thing into a text editor and remove the 
>>>carriage return or line feed or whatever.
>>>
>>><?xml version="1.0" encoding="UTF-8"?>
>>><!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" 
>>>"http://www.apple.com/DTDs/PropertyList-1.0.dtd">
>>><plist version="1.0">
>>><dict>
>>>  	<key>CFBundleIconFile</key>
>>>  	<string>128</string>
>>></dict>
>>></plist>
>>
>>-- what do we do with this? Do we place it in our code, or what? 
>>I'm unclear. It looks like the new DOCTYPE declaration we use for 
>>web pages to conform to the new w3c standards.
>
>
>It's a replacement for the content of the plst resource that FB4 
>puts in a Carbon OS X application. I think you will get up to speed 
>most easily if you do this little exercise first.
>
>Familiarization Exercise on plst resource
>-----------------------------------------
>
>Build this FB4 program as a Carbon app:
>
>window 1
>do
>HandleEvents
>until 0
>
>and open the app in ResEdit.
>
>Alternatively, use ResEdit to open an app in the Great FB Apps 
>folder on the FB4 CD (Yet Another Mandelbrot Program, Compositor, or 
>The Window Maker).
>
>Then, still in ResEdit, open the plst 0 resource,
>   click in the right (text) pane,
>   Select All,
>   Copy.
>
>In any text-editor:
>  Paste
>  Stare with amazement at the contents
>
>Robert P.


Oh that. Why didn't you say so?

But seriously, thanks. I think I see now that the code I questioned 
above is simply the text (ASCII) that is contained in the plst 
resource within the application's resource file -- is that it? It's 
like the hex dump of it.

I wonder why it looks so much like the new css doctype statement? 
There must be some reason why they are so similar.

Also, while I don't think the critter exists, does anyone have a 
ResEdit that runs under Mac OS-X? I really hate going back to nine. 
"Once you've had ten, you don't go back again." -- hey, I just made 
that up. :-)

I have the new Resorcerer for OS-X, but I don't like it as well as ResEdit.

tedd
-- 
--------------------------------------------------------------------------------
http://sperling.com/