> 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 PROTECTED]> 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 protected])
>
> 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:
> http://lists.apple.com/mailman/options/cocoa-dev/kenferry%40gmail.com
>
> This email sent to [EMAIL PROTECTED]
>
_______________________________________________

Cocoa-dev mailing list ([email protected])

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to