• 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: Casting objects in NSCountedSet
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Casting objects in NSCountedSet


  • Subject: Re: Casting objects in NSCountedSet
  • From: Koen van der Drift <email@hidden>
  • Date: Tue, 24 Sep 2013 12:26:08 -0400

On Sep 24, 2013, at 11:52 AM, Kyle Sluder <email@hidden> wrote:

> No, this doesn't make sense. Casting just tells the compiler "I know better than you and can guarantee you this expression is actually of this type". It doesn't "convert" objects from one type to another—how would it even do that?

That's interesting, I've used casting before, eg:

myClass *obj = (myClass*)[myArray objectAtIndex: index];

and never ran into this.


So besides hacking the framework, is there a way to accomplish this?

- Koen.
_______________________________________________

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: Casting objects in NSCountedSet
      • From: Kyle Sluder <email@hidden>
References: 
 >Casting objects in NSCountedSet (From: Koen van der Drift <email@hidden>)
 >Re: Casting objects in NSCountedSet (From: Kyle Sluder <email@hidden>)

  • Prev by Date: configuring Xcode to place products in different locations based on selected Architecture
  • Next by Date: Re: Casting objects in NSCountedSet
  • Previous by thread: Re: Casting objects in NSCountedSet
  • Next by thread: Re: Casting objects in NSCountedSet
  • Index(es):
    • Date
    • Thread