[squeak-dev] Atltitude favicons

Levente Uzonyi leves at elte.hu
Mon Dec 17 18:51:43 UTC 2012


On Mon, 17 Dec 2012, Chris Cunnington wrote:

> I added a favicon.ico to the imageDirectory and put:
>
> locator at: (ALPath / 'favicon.ico')
>            put: (ALFileResource on: (FSLocator imageDirectory / 
> 'favicon.ico'))
>
> into #initializeLocator.
>
> The favicon.ico missing error is gone. It's replaced with FSLocator stumbling 
> on something. Did I miss a step?

You should use a link tag to specify the icon instead of placing a "file" 
named favicon.ico to the document root. See here how: 
http://en.wikipedia.org/wiki/Favicon


Levente

>
> Chris
>
>
>
>
>
> MessageNotUnderstood: FSLocator>>entry
> 17 December 2012 12:22:34.384 pm
>
> VM: Mac OS - Smalltalk
> Image: Squeak4.3 [latest update: #12292]
>
> SecurityManager state:
> Restricted: false
> FileAccess: true
> SocketAccess: true
> Working Dir /Users/chriscunnington/Desktop/Altitude
> Trusted Dir /foobar/tooBar/forSqueak/bogus/
> Untrusted Dir 
> /Users/chriscunnington/Library/Preferences/Croquet/Internet/Untrusted
>
> FSLocator(Object)>>doesNotUnderstand: #entry
>    Receiver: {imageDirectory}/favicon.ico
>    Arguments and temporary variables:
>        aMessage:     entry
>        exception:     MessageNotUnderstood: FSLocator>>entry
>        resumeValue:     nil
>    Receiver's instance variables:
>        origin:     #imageDirectory
>        path:     FSPath * 'favicon.ico'
>
> ALFileResource>>fullResponse
>    Receiver: an ALFileResource
>    Arguments and temporary variables:
>        body:     nil
>        entry:     nil
>    Receiver's instance variables:
>        reference:     {imageDirectory}/favicon.ico
>
> ALFileResource>>handleGet:locator:
>    Receiver: an ALFileResource
>    Arguments and temporary variables:
>        aRequest:     an ALRequest
>        aLocator:     an ALRestfulLocator
>    Receiver's instance variables:
>        reference:     {imageDirectory}/favicon.ico
>
> ALFileResource(ALResource)>>handleRequest:locator:
>    Receiver: an ALFileResource
>    Arguments and temporary variables:
>        aRequest:     an ALRequest
>        aLocator:     an ALRestfulLocator
>    Receiver's instance variables:
>        reference:     {imageDirectory}/favicon.ico
>
> ALTerminalRelay>>handleRequest:
>    Receiver: an ALTerminalRelay
>    Arguments and temporary variables:
>        aRequest:     an ALRequest
>    Receiver's instance variables:
>        locator:     an ALRestfulLocator
>
> ALConnection>>respondTo:
>    Receiver: an ALConnection
>    Arguments and temporary variables:
>        aRequest:     an ALRequest
>        response:     nil
>        handler:     an ALTerminalRelay
>    Receiver's instance variables:
>        process:     nil
>        application:     an ALExampleApplication
>        in:     XTExternalReadStream
> a Socket[connected]
>        queue:     an ALResourceQueue
>        timestamp:     208787
>
>
>


More information about the Squeak-dev mailing list