Re: Very, Very Simple iPhone SDK Question
Re: Very, Very Simple iPhone SDK Question
- Subject: Re: Very, Very Simple iPhone SDK Question
- From: Matt Neuburg <email@hidden>
- Date: Fri, 06 Nov 2009 07:53:03 -0800
- Thread-topic: Very, Very Simple iPhone SDK Question
On Thu, 5 Nov 2009 06:56:45 -0400, Patrick William Walker
<email@hidden> said:
>Why do I get an "Expected specified-qualifier-list before NSPoint"
>when trying to port of my model classes from Cocoa to iPhone SDK?
>I've been reading through the documentation and haven't really found
>much to explain why I'm getting errors when using other things like
>NSRect and NSBezierPaths as well.
It's because none of those things exist on iPhone. You have to switch to
using stuff like CGPoint, CGRect, and CGPath (although in fact for the
latter you're likely to use the CGContext... commands and not save a path at
all). This is true of your commands as well: NSMakeRect must become
CGRectMake, and so on. You'd think a simple script would do most of it, but
I don't know of such a thing. Also, as your question quite reasonably
implies, the error message is not very helpful.
m.
--
matt neuburg, phd = email@hidden, <http://www.tidbits.com/matt/>
A fool + a tool + an autorelease pool = cool!
AppleScript: the Definitive Guide - Second Edition!
http://www.tidbits.com/matt/default.html#applescriptthings
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden