Re: Computer icon on Leopard
Re: Computer icon on Leopard
- Subject: Re: Computer icon on Leopard
- From: "Ken Ferry" <email@hidden>
- Date: Sun, 5 Oct 2008 18:11:45 -0700
> Basically I need to get the icon currently associated with the user's
> computer
This is [NSImage imageNamed:NSImageNameComputer].
Check out the NSImage docs.
-Ken
On Sun, Oct 5, 2008 at 3:01 PM, Leonardo Cassarani
<email@hidden> wrote:
> Hi all
>
> I've been looking for this everywhere but couldn't find a solution.
> Basically I need to get the icon currently associated with the user's
> computer, that is the one that appears in the sidebar, or next to the "Go"
> -> "Computer" menu item in the Finder. I know where they're all stored, but
> I'm looking for a way to access the one relative to the user's computer
> model.
>
> I 've tried with both NSWorkspace and Carbon's GetIconRef() but to no avail.
> I know I could determine the computer model and manually associate it with
> the correct icon, but that would still pose a problem as there is no way to
> find out whether the user's using e.g. a black or white MacBook, whereas
> Apple does differentiate between the two.
>
> Thank you in advance.
> Leonardo Cassarani
> _______________________________________________
>
> 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
>
_______________________________________________
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