Re: Very, Very Simple iPhone SDK Question
Re: Very, Very Simple iPhone SDK Question
- Subject: Re: Very, Very Simple iPhone SDK Question
- From: Brian Dittmer <email@hidden>
- Date: Fri, 6 Nov 2009 10:58:48 -0500
You could write pre-processor macros to handle all your NS* methods
and typedef NSPoint, etc. to their respective core graphics
implementations so you don't need to maintain two code bases.
-Brian
On Fri, Nov 6, 2009 at 10:53 AM, Matt Neuburg <email@hidden> wrote:
> 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
>
_______________________________________________
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