• 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: NEWBIE: NSArray toll-free-bridged with CFArray?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NEWBIE: NSArray toll-free-bridged with CFArray?


  • Subject: Re: NEWBIE: NSArray toll-free-bridged with CFArray?
  • From: ber <email@hidden>
  • Date: Sun, 8 Sep 2002 00:45:59 -0400

Thanks Andrew. Yes, casts are to be avoided. I noticed the Keychain Access app uses NSKeychain objects. Hopefully
those will be available soon and I can stay off the bridge, toll-free or otherwise.

brian

On Sunday, September 8, 2002, at 12:24 AM, Andrew Pinski wrote:


The reason the compiler will complain is because the two structs are in two different aliasing sets (aka they cannot have the same address, so the compile can optimize away some of the instructions if it wants to).

Hope this clears up some of the problems that might end up being caused with casts period (casts are bad, try using unions instead).



Thanks,
Andrew Pinski
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: NEWBIE: NSArray toll-free-bridged with CFArray?
      • From: Rosyna <email@hidden>
References: 
 >Re: NEWBIE: NSArray toll-free-bridged with CFArray? (From: Andrew Pinski <email@hidden>)

  • Prev by Date: Re: NEWBIE: NSArray toll-free-bridged with CFArray?
  • Next by Date: Re: Document Based (I'm semi lost!)
  • Previous by thread: Re: NEWBIE: NSArray toll-free-bridged with CFArray?
  • Next by thread: Re: NEWBIE: NSArray toll-free-bridged with CFArray?
  • Index(es):
    • Date
    • Thread