<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress/2.2.2" -->
<rss version="2.0" 
	xmlns:content="http://purl.org/rss/1.0/modules/content/">
<channel>
	<title>Comments on: UIKit/CoreGraphics vs. AppKit/Cocoa</title>
	<link>http://www.iphonexe.com/blog/?p=3</link>
	<description>Ramblings and musings about the iPhone</description>
	<pubDate>Fri, 10 Sep 2010 13:33:41 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.2.2</generator>

	<item>
		<title>By: user</title>
		<link>http://www.iphonexe.com/blog/?p=3#comment-3650</link>
		<author>user</author>
		<pubDate>Thu, 18 Jun 2009 12:25:05 +0000</pubDate>
		<guid>http://www.iphonexe.com/blog/?p=3#comment-3650</guid>
		<description>CGAffineTransform *cgAffineTransform = [[CGAffineTransformMakeTranslation(x, y)] retain];


is it possible?????</description>
		<content:encoded><![CDATA[<p>CGAffineTransform *cgAffineTransform = [[CGAffineTransformMakeTranslation(x, y)] retain];</p>
<p>is it possible?????</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Raj</title>
		<link>http://www.iphonexe.com/blog/?p=3#comment-3633</link>
		<author>Raj</author>
		<pubDate>Wed, 21 Jan 2009 10:01:39 +0000</pubDate>
		<guid>http://www.iphonexe.com/blog/?p=3#comment-3633</guid>
		<description>Hey nice insight :-) I have bookmarked your post at http://www.iphonekicks.com/cocoa/UIKit_CoreGraphics_vs_AppKit_Cocoa</description>
		<content:encoded><![CDATA[<p>Hey nice insight <img src='http://www.iphonexe.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> I have bookmarked your post at <a href="http://www.iphonekicks.com/cocoa/UIKit_CoreGraphics_vs_AppKit_Cocoa" rel="nofollow">http://www.iphonekicks.com/cocoa/UIKit_CoreGraphics_vs_AppKit_Cocoa</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: CGValueはないけれどNSValueが使えます &#124; iPhoneアプリ開発ブログ</title>
		<link>http://www.iphonexe.com/blog/?p=3#comment-3624</link>
		<author>CGValueはないけれどNSValueが使えます &#124; iPhoneアプリ開発ブログ</author>
		<pubDate>Wed, 03 Dec 2008 06:34:52 +0000</pubDate>
		<guid>http://www.iphonexe.com/blog/?p=3#comment-3624</guid>
		<description>[...] CGValueはないけれどNSValueが使えます 2008 年 12 月 3 日 by 田中  CGRectやCGPointといったCoreGraphicsで定義された構造体をNSArrayなどに入れる場合、直感的にはCGValueというラッパが有りそうな気がします。しかし、実際にはCGValueというクラスは存在しません。調べてみるとAppleのDeveloperForums(英語)でズバリWrapper for CGRect?というトピックを発見しました。このトピックでのやり取りを要約すると、CGRectやCGPointでもNSValueが使えるということでした。どうやら回答者もこの質問を受けて初めて存在に気がついたようです。このことを調べていて知ったのですが、CocoaにはCGRectやCGPointと同等のNSRectやNSPointといったクラスが有るそうです。ただし、これはMac OS X(App Kit)のお話でiPhoneアプリには関係ないみたいです。逆に言うとApp Kitでの開発になれた人はCoreGraphicsで定義されているこれらを使うことになれる必要が有るでしょう。 [...]</description>
		<content:encoded><![CDATA[<p>[&#8230;] CGValueはないけれどNSValueが使えます 2008 年 12 月 3 日 by 田中  CGRectやCGPointといったCoreGraphicsで定義された構造体をNSArrayなどに入れる場合、直感的にはCGValueというラッパが有りそうな気がします。しかし、実際にはCGValueというクラスは存在しません。調べてみるとAppleのDeveloperForums(英語)でズバリWrapper for CGRect?というトピックを発見しました。このトピックでのやり取りを要約すると、CGRectやCGPointでもNSValueが使えるということでした。どうやら回答者もこの質問を受けて初めて存在に気がついたようです。このことを調べていて知ったのですが、CocoaにはCGRectやCGPointと同等のNSRectやNSPointといったクラスが有るそうです。ただし、これはMac OS X(App Kit)のお話でiPhoneアプリには関係ないみたいです。逆に言うとApp Kitでの開発になれた人はCoreGraphicsで定義されているこれらを使うことになれる必要が有るでしょう。 [&#8230;]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Scott</title>
		<link>http://www.iphonexe.com/blog/?p=3#comment-3577</link>
		<author>Scott</author>
		<pubDate>Sun, 16 Nov 2008 18:47:31 +0000</pubDate>
		<guid>http://www.iphonexe.com/blog/?p=3#comment-3577</guid>
		<description>UIColor is close to NSColor so you don't need to go through a whole context setup.</description>
		<content:encoded><![CDATA[<p>UIColor is close to NSColor so you don&#8217;t need to go through a whole context setup.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: admin</title>
		<link>http://www.iphonexe.com/blog/?p=3#comment-3520</link>
		<author>admin</author>
		<pubDate>Thu, 30 Oct 2008 00:45:28 +0000</pubDate>
		<guid>http://www.iphonexe.com/blog/?p=3#comment-3520</guid>
		<description>dip:
are you waiting until awakeFromNib has been called? It may cause some issues if you haven't.
Also remember that this code is a bit outdated-it was written for the 1.1 toolchain iirc. The SDK and toolchain on 2.0 are completely different</description>
		<content:encoded><![CDATA[<p>dip:
are you waiting until awakeFromNib has been called? It may cause some issues if you haven&#8217;t.
Also remember that this code is a bit outdated-it was written for the 1.1 toolchain iirc. The SDK and toolchain on 2.0 are completely different</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: diiippp</title>
		<link>http://www.iphonexe.com/blog/?p=3#comment-3499</link>
		<author>diiippp</author>
		<pubDate>Mon, 20 Oct 2008 09:12:55 +0000</pubDate>
		<guid>http://www.iphonexe.com/blog/?p=3#comment-3499</guid>
		<description>sorry i didn't explain that it happens when i add new view in nib file and when i try to get current context of newly added view.</description>
		<content:encoded><![CDATA[<p>sorry i didn&#8217;t explain that it happens when i add new view in nib file and when i try to get current context of newly added view.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: diiippp</title>
		<link>http://www.iphonexe.com/blog/?p=3#comment-3498</link>
		<author>diiippp</author>
		<pubDate>Mon, 20 Oct 2008 05:18:13 +0000</pubDate>
		<guid>http://www.iphonexe.com/blog/?p=3#comment-3498</guid>
		<description>I am using 
CGContextRef context = UIGraphicsGetCurrentContext();

to get current context, but context variable is not getting initialized. So i am not able to display lines. I have included CoreGraphics.framework.</description>
		<content:encoded><![CDATA[<p>I am using 
CGContextRef context = UIGraphicsGetCurrentContext();</p>
<p>to get current context, but context variable is not getting initialized. So i am not able to display lines. I have included CoreGraphics.framework.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Helder da Rocha</title>
		<link>http://www.iphonexe.com/blog/?p=3#comment-3411</link>
		<author>Helder da Rocha</author>
		<pubDate>Thu, 25 Sep 2008 02:34:23 +0000</pubDate>
		<guid>http://www.iphonexe.com/blog/?p=3#comment-3411</guid>
		<description>Bezier paths in CG are called simply 'curves'.
You can create bezier paths in CG using CGContextAddCurveToPoint (two control points) and CGContextAddQuadCurveToPoint (one control point) functions. They are used inside a path, so you should use those functions after a CGContextBeginPath(context) call. They are also relative to a 'current point', so you need at least an CGContextMoveToPoint(context, x0, y0) if you start the path with it.

Using CGContextAddQuadCurveToPoint you obtain the same effect like this:

CGContextMoveToPoint(
   context, 
   ballRect.origin.x,  // start pt
   ballRect.origin.y);

CGContextAddQuadCurveToPoint(
   context, 
   ballRect.origin.x + ballRect.size.width,         // ctrl pt
   ballRect.origin.y + ballRect.size.height / 2, 
   ballRect.origin.x + ballRect.size.height,    // end pt
   ballRect.origin.x);

(I may have missed something or confused clockwise with counter-clockwise, but something like this should work). Don't forget to CGContextStrokePath() or you'll see nothing.</description>
		<content:encoded><![CDATA[<p>Bezier paths in CG are called simply &#8216;curves&#8217;.
You can create bezier paths in CG using CGContextAddCurveToPoint (two control points) and CGContextAddQuadCurveToPoint (one control point) functions. They are used inside a path, so you should use those functions after a CGContextBeginPath(context) call. They are also relative to a &#8216;current point&#8217;, so you need at least an CGContextMoveToPoint(context, x0, y0) if you start the path with it.</p>
<p>Using CGContextAddQuadCurveToPoint you obtain the same effect like this:</p>
<p>CGContextMoveToPoint(
   context, 
   ballRect.origin.x,  // start pt
   ballRect.origin.y);</p>
<p>CGContextAddQuadCurveToPoint(
   context, 
   ballRect.origin.x + ballRect.size.width,         // ctrl pt
   ballRect.origin.y + ballRect.size.height / 2, 
   ballRect.origin.x + ballRect.size.height,    // end pt
   ballRect.origin.x);</p>
<p>(I may have missed something or confused clockwise with counter-clockwise, but something like this should work). Don&#8217;t forget to CGContextStrokePath() or you&#8217;ll see nothing.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Matax</title>
		<link>http://www.iphonexe.com/blog/?p=3#comment-3334</link>
		<author>Matax</author>
		<pubDate>Tue, 02 Sep 2008 16:04:20 +0000</pubDate>
		<guid>http://www.iphonexe.com/blog/?p=3#comment-3334</guid>
		<description>ok thanks anyway.
I lear anyway a lot from your blog.
thanks</description>
		<content:encoded><![CDATA[<p>ok thanks anyway.
I lear anyway a lot from your blog.
thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: admin</title>
		<link>http://www.iphonexe.com/blog/?p=3#comment-3327</link>
		<author>admin</author>
		<pubDate>Tue, 02 Sep 2008 01:32:16 +0000</pubDate>
		<guid>http://www.iphonexe.com/blog/?p=3#comment-3327</guid>
		<description>Matax,

UIBezierPath does exist, but not in the iPhone SDK. It existed in a class-dump of the headers for the toolchain (jailbroken development). 
Unfortunately I can't post any SDK specific code or tutorials until Apple takes down their NDA (the agreement every developer is forced into if he wants to release his apps on the itunes app store).</description>
		<content:encoded><![CDATA[<p>Matax,</p>
<p>UIBezierPath does exist, but not in the iPhone SDK. It existed in a class-dump of the headers for the toolchain (jailbroken development). 
Unfortunately I can&#8217;t post any SDK specific code or tutorials until Apple takes down their NDA (the agreement every developer is forced into if he wants to release his apps on the itunes app store).</p>
]]></content:encoded>
	</item>
</channel>
</rss>
