Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: PlotIconRefInContext for Dock [solved]



thanks to everyone who answered.
Yes I call EndCGContextForApplicationDockTile at the end of the code.
It might be, because it's a 4D Plugin that I have to force the drawing
by calling CGContextFlush.
In any case the old icon has to be deleted first.

Thanks again and all the best

Matthias

-----------------------------------------------
Admilon Consulting GmbH
http://www.admilon.com
iChat/AIM: MatKoyasan
Tel. +81-736-56-3905
-----------------------------------------------

Am/On Wed, 9 Nov 2005 15:37:00 -0800 schrieb/wrote David A. Lyons:

>Do you also call EndCGContextForApplicationDockTile?
>
>If you do some other drawing into the context, such as  
>CGContextSetRGBFillColor + CGContextFillRect, does it have any effect?
>
>Cheers,
>
>--Dave
>
>On Nov 9, 2005, at 2:27 AM, Schmidt Systementwicklung wrote:
>
>> Hello,
>>
>> I'm new to this group and to Carbon Mac programming as well. So please
>> excuse me, if I post some question(s), which are pretty binngers like.
>>
>> I try to set the Icon of an application during runtime in the dock by
>> using PlotIconRefInContext.
>> Somehow it doesn't want to plot or I miss something important here.
>> I get a CGContextRef by calling BeginCGContextForApplicationDockTile.
>> I'm not really sure about the CGRect, so that might be the problem,
>> becaue I just create it:
>> iconRect = CGRectMake(0, 0, 128, 128);
>> then I call PlotIconRefInContext
>> I tried to use CGContextTranslateCTM and CGContextScaleCTM as it was
>> suggested by some people on the list before, but it didn't had any  
>> effect.
>>
>> What do I miss here ?
>>
>> Thanks and all the best
>>
>> Matthias
>
>



 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Carbon-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/carbon-dev/email@hidden

This email sent to email@hidden



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.