<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd"
	xmlns:media="http://search.yahoo.com/mrss/"
	>
<channel>
	<title>Comments on: NSImage Templates</title>
	<atom:link href="http://www.proppe.org/blog/2007/12/01/nsimage-templates/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.proppe.org/blog/2007/12/01/nsimage-templates/</link>
	<description></description>
	<lastBuildDate>Mon, 21 Sep 2009 02:25:18 -0600</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.5</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Gunnar Proppé</title>
		<link>http://www.proppe.org/blog/2007/12/01/nsimage-templates/comment-page-1/#comment-1139</link>
		<dc:creator>Gunnar Proppé</dc:creator>
		<pubDate>Sat, 18 Oct 2008 17:51:04 +0000</pubDate>
		<guid isPermaLink="false">http://www.proppe.org/blog/2007/12/01/nsimage-templates/#comment-1139</guid>
		<description>@ken Thanks for the detailed info. It would be neat if a color tint could be added as an attribute to template images so you could get those more sophisticated effects on images other than black, but I understand it&#039;s part of the new(ish) aesthetic.</description>
		<content:encoded><![CDATA[<p>@ken Thanks for the detailed info. It would be neat if a color tint could be added as an attribute to template images so you could get those more sophisticated effects on images other than black, but I understand it&#8217;s part of the new(ish) aesthetic.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ken</title>
		<link>http://www.proppe.org/blog/2007/12/01/nsimage-templates/comment-page-1/#comment-1142</link>
		<dc:creator>ken</dc:creator>
		<pubDate>Sat, 18 Oct 2008 15:50:32 +0000</pubDate>
		<guid isPermaLink="false">http://www.proppe.org/blog/2007/12/01/nsimage-templates/#comment-1142</guid>
		<description>The most complete documentation at the moment is in the AppKit release notes.

http://developer.apple.com/releasenotes/Cocoa/AppKit.html#NSImageTemplate

Here&#039;s how the naming convention works (from the relnotes):

&#039;To mark an image as a template, call -[NSImage setTemplate:]. As a convenience, in applications linked on or after 10.5, any image read off of disk via -[NSImage imageNamed:] whose name ends in @&quot;Template&quot; will be marked as a template as it is created. This makes it easy to use template images in Interface Builder. Just make sure your image filenames end in &quot;Template&quot;.&#039;

and yep, a template defined to be a mask, no color.  If you want to use a red image, don&#039;t mark it as a template.

&#039;This is extended in Leopard with a new metadata property, -[NSImage isTemplate]. An image is a &#039;template&#039; if it is a black and clear mask that should not be presented to the user directly, but always processed into a final form. It&#039;s similar to a glyph in a font. If a cell is given a template image, it can perform much more sophisticated effects than usual, similar to those done with text. The image can be dark most of the time, white in a selected table view row, and engraved or embossed the same way text is.&#039;</description>
		<content:encoded><![CDATA[<p>The most complete documentation at the moment is in the AppKit release notes.</p>
<p><a href="http://developer.apple.com/releasenotes/Cocoa/AppKit.html#NSImageTemplate" rel="nofollow">http://developer.apple.com/releasenotes/Cocoa/AppKit.html#NSImageTemplate</a></p>
<p>Here&#8217;s how the naming convention works (from the relnotes):</p>
<p>&#8216;To mark an image as a template, call -[NSImage setTemplate:]. As a convenience, in applications linked on or after 10.5, any image read off of disk via -[NSImage imageNamed:] whose name ends in @&#8221;Template&#8221; will be marked as a template as it is created. This makes it easy to use template images in Interface Builder. Just make sure your image filenames end in &#8220;Template&#8221;.&#8217;</p>
<p>and yep, a template defined to be a mask, no color.  If you want to use a red image, don&#8217;t mark it as a template.</p>
<p>&#8216;This is extended in Leopard with a new metadata property, -[NSImage isTemplate]. An image is a &#8216;template&#8217; if it is a black and clear mask that should not be presented to the user directly, but always processed into a final form. It&#8217;s similar to a glyph in a font. If a cell is given a template image, it can perform much more sophisticated effects than usual, similar to those done with text. The image can be dark most of the time, white in a selected table view row, and engraved or embossed the same way text is.&#8217;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Gunnar Proppé</title>
		<link>http://www.proppe.org/blog/2007/12/01/nsimage-templates/comment-page-1/#comment-1141</link>
		<dc:creator>Gunnar Proppé</dc:creator>
		<pubDate>Sat, 18 Oct 2008 04:29:50 +0000</pubDate>
		<guid isPermaLink="false">http://www.proppe.org/blog/2007/12/01/nsimage-templates/#comment-1141</guid>
		<description>@Jordy/Jediknil Thanks for pointing that out. Coincidentally I just was looking at the NSImage docs yesterday and noticed that method.</description>
		<content:encoded><![CDATA[<p>@Jordy/Jediknil Thanks for pointing that out. Coincidentally I just was looking at the NSImage docs yesterday and noticed that method.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jordy/Jediknil</title>
		<link>http://www.proppe.org/blog/2007/12/01/nsimage-templates/comment-page-1/#comment-1140</link>
		<dc:creator>Jordy/Jediknil</dc:creator>
		<pubDate>Fri, 17 Oct 2008 16:44:55 +0000</pubDate>
		<guid isPermaLink="false">http://www.proppe.org/blog/2007/12/01/nsimage-templates/#comment-1140</guid>
		<description>The &quot;name ending in &#039;Template&#039;&quot; rule isn&#039;t the only way this works; there&#039;s also the -setTemplate: method to do this for you. However, it seems that if the name ends in &quot;Template&quot; then -setTemplate: will be called automagically.</description>
		<content:encoded><![CDATA[<p>The &#8220;name ending in &#8216;Template&#8217;&#8221; rule isn&#8217;t the only way this works; there&#8217;s also the -setTemplate: method to do this for you. However, it seems that if the name ends in &#8220;Template&#8221; then -setTemplate: will be called automagically.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
