Re: What's the fastest way to get icons for file/folders?
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: "Alan Smith" <email@hidden>
- Date: Fri, 18 Aug 2006 13:27:59 -0400
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.
Many thanks, Alan
--
// 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:
This email sent to email@hidden