• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Very, Very Simple iPhone SDK Question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: Very, Very Simple iPhone SDK Question
      • From: Brian Dittmer <email@hidden>
  • Prev by Date: Re: NSString's handling of Unicode extension B (and C) characters
  • Next by Date: Re: NSCoder and CGColorRef
  • Previous by thread: Re: Very, Very Simple iPhone SDK Question
  • Next by thread: Re: Very, Very Simple iPhone SDK Question
  • Index(es):
    • Date
    • Thread