• 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: (id) issue, passing different types during initWith:(id)type
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: (id) issue, passing different types during initWith:(id)type


  • Subject: Re: (id) issue, passing different types during initWith:(id)type
  • From: Conrad Shultz <email@hidden>
  • Date: Sat, 29 Jan 2011 08:43:26 -0800

That was my thought too. You mention that your CFAString is an NSObject subclass but do not mention what your other class is.

On a similar note, you might want to reconsider the name of CFAString. As you are probably aware, Core Foundation classes are prefixed with CF, and there is even a CFString class.

"CFAString" seems, at best, likely to be hard to see visually or, at worst, potentially conflict with a future public or private Core Foundation class.

--
Conrad Shultz
www.synthetiqsolutions.com

On Jan 29, 2011, at 8:25, Scott Ribe <email@hidden> wrote:

> On Jan 29, 2011, at 8:29 AM, Travis Kirton wrote:
>
>> warning: incompatible Objective-C types 'struct CFAString *', expected 'struct NSString *' when passing argument 1 of 'initWithString:' from distinct Objective-C type
>
> The frameworks contain plenty of initWithString: (NSString*) declarations. You might want to use a name that is more specific.
_______________________________________________

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: (id) issue, passing different types during initWith:(id)type
      • From: Travis Kirton <email@hidden>
References: 
 >(id) issue, passing different types during initWith:(id)type (From: Travis Kirton <email@hidden>)
 >Re: (id) issue, passing different types during initWith:(id)type (From: Scott Ribe <email@hidden>)

  • Prev by Date: Re: (id) issue, passing different types during initWith:(id)type
  • Next by Date: Re: Printing a View
  • Previous by thread: Re: (id) issue, passing different types during initWith:(id)type
  • Next by thread: Re: (id) issue, passing different types during initWith:(id)type
  • Index(es):
    • Date
    • Thread