Deprecated: trim(): Passing null to parameter #1 ($string) of type string is deprecated in /var/www/html/extensions/Variables/includes/ExtVariables.php on line 198

Deprecated: trim(): Passing null to parameter #1 ($string) of type string is deprecated in /var/www/html/extensions/Variables/includes/ExtVariables.php on line 198

Deprecated: trim(): Passing null to parameter #1 ($string) of type string is deprecated in /var/www/html/extensions/Variables/includes/ExtVariables.php on line 198

Deprecated: trim(): Passing null to parameter #1 ($string) of type string is deprecated in /var/www/html/extensions/Variables/includes/ExtVariables.php on line 198
QuartzCore.framework: Difference between revisions - iPhone Development Wiki

QuartzCore.framework: Difference between revisions

From iPhone Development Wiki
No edit summary
Line 7: Line 7:


== Debugging ==
== Debugging ==
{{function signature
|signature=unsigned CAGetDebugFlags();
|firmware=2.0 –
}}
{{function signature
|signature=void CASetDebugFlags(unsigned flags);
|firmware=2.0 –
}}
Applications linked with QuartzCore will recognize the following debugging (boolean) environment variables:
Applications linked with QuartzCore will recognize the following debugging (boolean) environment variables:
* CA_COLOR_FLUSH<ref name="qdl">http://lists.apple.com/archives/Quartz-dev/2008/Oct/msg00048.html</ref>
{| class="wikitable"
* CA_COLOR_COPY
|-
* CA_COLOR_OPAQUE<ref name="qdl"/><ref name="darknoon">Darknoon Blog » Core Animation debug mode: http://darknoon.com/blog/2009/06/29/core-animation-debug-mode/</ref>
! Flag
* CA_COLOR_NO_WAIT<ref name="qdl"/>
! Environment variable
* CA_AUTO_FLUSH
|-
* CA_PRINT_TREE<ref name="qdl"/>
| 1 || CA_COLOR_FLUSH<ref name="qdl">http://lists.apple.com/archives/Quartz-dev/2008/Oct/msg00048.html</ref>
* CA_PRINT_OBJECTS
|-
* CA_LOG_IMPLICIT_TRANSACTIONS
| 2 || CA_COLOR_COPY
* CA_LOG_MEMORY_USAGE
|-
* CA_LOG_IMAGE_COPIES
| 4 || CA_COLOR_OPAQUE<ref name="qdl"/><ref name="darknoon">Darknoon Blog » Core Animation debug mode: http://darknoon.com/blog/2009/06/29/core-animation-debug-mode/</ref>
* CA_PRINT_PERF
|-
* CA_DISABLE_OCCLUSION_CULLING
| 8 || CA_COLOR_NO_WAIT<ref name="qdl"/>
* CA_DISABLE_DIRTY_REGIONS
|-
* CA_LOG_TRIPLE_BUFFERING
| 16 || CA_AUTO_FLUSH
* CA_COLOR_SUBPIXEL
|-
* CA_DISABLE_RENDER
| 32 || CA_PRINT_TREE<ref name="qdl"/>
* CA_ALWAYS_RENDER
|-
* CA_COLOR_OFFSCREEN
| 64 || CA_PRINT_OBJECTS
* CA_COLOR_DETACHED
|-
| 128 || CA_LOG_IMPLICIT_TRANSACTIONS
|-
| 256 || CA_LOG_MEMORY_USAGE
|-
| 512 || CA_LOG_IMAGE_COPIES
|-
| 1024 || CA_PRINT_PERF
|-
| 2048 || CA_DISABLE_OCCLUSION_CULLING
|-
| 4096 || CA_DISABLE_DIRTY_REGIONS
|-
| 8192 || CA_LOG_TRIPLE_BUFFERING
|-
| 16384 || CA_COLOR_SUBPIXEL
|-
| 32768 || CA_DISABLE_RENDER
|-
| 65536 || CA_ALWAYS_RENDER
|-
| 131072 || CA_COLOR_OFFSCREEN
|-
| 262144 || CA_COLOR_DETACHED
|}
Alternatively, you can use the <tt>CASetDebugFlags()</tt> to update the flags in runtime.


== References ==
== References ==

Revision as of 19:42, 15 November 2009

QuartzCore.framework
Public Framework
Availabile 2.0 – present
Class Prefix CA
Headers [headers.cynder.me]

QuartzCore, also known as Core Animation, is an Objective-C framework that creates simple animations on UI elements.

Debugging

Signature unsigned CAGetDebugFlags();
Available in 2.0 –
Signature void CASetDebugFlags(unsigned flags);
Available in 2.0 –

Applications linked with QuartzCore will recognize the following debugging (boolean) environment variables:

Flag Environment variable
1 CA_COLOR_FLUSH[1]
2 CA_COLOR_COPY
4 CA_COLOR_OPAQUE[1][2]
8 CA_COLOR_NO_WAIT[1]
16 CA_AUTO_FLUSH
32 CA_PRINT_TREE[1]
64 CA_PRINT_OBJECTS
128 CA_LOG_IMPLICIT_TRANSACTIONS
256 CA_LOG_MEMORY_USAGE
512 CA_LOG_IMAGE_COPIES
1024 CA_PRINT_PERF
2048 CA_DISABLE_OCCLUSION_CULLING
4096 CA_DISABLE_DIRTY_REGIONS
8192 CA_LOG_TRIPLE_BUFFERING
16384 CA_COLOR_SUBPIXEL
32768 CA_DISABLE_RENDER
65536 CA_ALWAYS_RENDER
131072 CA_COLOR_OFFSCREEN
262144 CA_COLOR_DETACHED

Alternatively, you can use the CASetDebugFlags() to update the flags in runtime.

References