Get proxy icon

Discussion in 'Mac Programming' started by titaniumdecoy, Jan 4, 2008.

  1. titaniumdecoy macrumors member

    Joined:
    Oct 13, 2005
    #1
    Hi all,

    I need to get the (proxy) icon that appears in a document's title bar. How can I do this? Thanks.
     
  2. kainjow Moderator emeritus

    kainjow

    Joined:
    Jun 15, 2000
    #2
    Are you really just wanting the icon to the file of the document? Since this is what is displayed in the title bar of a document's window, you can use NSWorkspace's iconForFile: method and set the returned image's size to 16x16 using setSize:
     
  3. gnasher729 macrumors P6

    gnasher729

    Joined:
    Nov 25, 2005
    #3
    Type command-space, then "proxyicon". On my machine, it finds among other things "Window Manager Reference", which will tell you how to add a proxy icon to a window, how to get the icon, how to handle dragging it etc. in Carbon applications.
     
  4. titaniumdecoy thread starter macrumors member

    Joined:
    Oct 13, 2005
    #4
    Thanks. The Window Manager looks like the real deal. However, I have no experience programming in Carbon and therefore have no idea how to get a reference to the aforementioned Window Manager. I would appreciate any guidance.
     

Share This Page