• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Computer icon on Leopard
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >Computer icon on Leopard (From: Leonardo Cassarani <email@hidden>)

  • Prev by Date: Re: NSTableView confusion
  • Next by Date: Re: premature dealloc of the datasource of a NSTableView crashes my application
  • Previous by thread: Computer icon on Leopard
  • Next by thread: Changing system volume
  • Index(es):
    • Date
    • Thread