Re: Getting the network Machine Icon
Re: Getting the network Machine Icon
- Subject: Re: Getting the network Machine Icon
- From: Sandro Noel <email@hidden>
- Date: Tue, 13 Jan 2009 14:51:38 -0500
Well it's not that bad of a place to put it...
there is not way to know beforehand if the servers are going to be
present
So it makes sense to ask the server what it is. when Bonjour declares
it's presence.
or when the SMB server broadcasts.
The icons for every possible mac model are local to the computer, if
you have a Mac.
/System/Library/CoreServices/CoreTypes.bundle/Contents/Resources/
I suspect that the icon in the reply from the FPGetSrvrInfo is useful
for other platforms.
because with the model number, there is pretty much no more
information needed to
associate an icon from the local resource.
The only problem I find it VERY complicated for such a simple feature.
to have to implement sockets UDP or TCP "have not gotten a reply yet".
Just to get an image to show up on screen :) is quite an overhead :)
Perhaps it would of been nice to add the model number of the machine
to a NSNetService(Bonjour) TXT record.
Instead of having to uery the host directly. IMHO
I might be wrong, what do I know :)
Sandro Noel.
On 13-Jan-09, at 12:09 PM, I. Savant wrote:
On Tue, Jan 13, 2009 at 11:32 AM, Sandro Noel <email@hidden>
wrote:
The AFP client sends the FPGetSrvrInfo command to obtain server
information.
The FPGetSrvrInfo command returns server information including the
following
server parameters: server name, machine type, AFP version strings,
UAM
strings, volume icon and mask, a bitmap of flags, and optionally, a
list of
available Open Directory names. For descriptions of server
parameters, see
FPGetSrvrInfo in the Reference section.
Neat! That seems an odd place to put that functionality, but
hopefully it'll be better-placed when all that stuff is eventually
cocoa-ized. Thanks for the follow-up. Very informative.
--
I.S.
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden