• 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: What's the fastest way to get icons for file/folders?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: What's the fastest way to get icons for file/folders?


  • Subject: Re: What's the fastest way to get icons for file/folders?
  • From: John Stiles <email@hidden>
  • Date: Fri, 18 Aug 2006 11:14:00 -0700

Err, a Cocoa dev list really shouldn't need to explain how pointers and structs work.
Try doing some web research; this is basic C.



On Aug 18, 2006, at 11:09 AM, Alan Smith wrote:

I don't have that book. And I'd rather not wait a week for it to
arrive via Amazon or something. So if you could just tell me the
important part I would appreciate it.

Thanks again, Alan

On 8/18/06, Matt Neuburg <email@hidden> wrote:
On or about 8/18/06 10:27 AM, thus spake "Alan Smith"
<email@hidden>:

> Thanks Matt! But, I tried the stuff at the link but when I compile:
>
> NSImage* image = [[NSImage alloc] initWithSize:NSMakeSize (width,height)];
> [image lockFocus];
> PlotIconRefInContext((CGContextRef)[[NSGraphicsContext currentContext]
> graphicsPort],
> CGRectMake(0,0,width,height),
> kAlignNone,
> kTransformNone,
> NULL /*inLabelColor*/,
> kPlotIconRefNormalFlags,
> iconRef);
> [image unlockFocus];
>
> it complains and says that the second arugment to PlotIconRefInContext
> is an incompatble type, (or something like that). So I tried all kinds
> of putting '&' and '*' in front of the CGRectMake() and after andÅ 
> Suffice to say I couldn't get it to work. I can't figure out how to
> make a rect pointer.


See p. 94 of Kernighan and Ritchie (2nd edition). m.

--
matt neuburg, phd = email@hidden, http://www.tidbits.com/matt/
pantes anthropoi tou eidenai oregontai phusei
AppleScript: the Definitive Guide - Second Edition!
http://www.amazon.com/gp/product/0596102119
Take Control of Word 2004, Tiger, and more -
http://www.takecontrolbooks.com/tiger-customizing.html
Subscribe to TidBITS! It's free and smart. http://www.tidbits.com/






--
// Quotes from yours truly -------------------------
"You don't forget, you just don't remember."
"Maturity resides in the mind."
"Silence is the Universe's greatest gift."
"Don't waste your life doing things others have already done."
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
40blizzard.com


This email sent to email@hidden

_______________________________________________ Do not post admin requests to the list. They will be ignored. Cocoa-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
References: 
 >Re: What's the fastest way to get icons for file/folders? (From: "Alan Smith" <email@hidden>)
 >Re: What's the fastest way to get icons for file/folders? (From: Matt Neuburg <email@hidden>)
 >Re: What's the fastest way to get icons for file/folders? (From: "Alan Smith" <email@hidden>)

  • Prev by Date: Subclass of NSWindowController doesn't initialize correctly from initWithWindowNibName
  • Next by Date: Re: Custom NSButtonCell and NSTableColumn binding
  • Previous by thread: Re: What's the fastest way to get icons for file/folders?
  • Next by thread: Re: What's the fastest way to get icons for file/folders?
  • Index(es):
    • Date
    • Thread