[futurebasic] Re: [FB] PLST?

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

From: Robert Purves <robert.purves@...>
Date: Fri, 20 Aug 2004 10:03:43 +1200
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.