Added: 1 month ago
From: AppleProgramming
Views: 1,240
Sort by time | Sort by thread (beta)

Link to this comment:

Share to:

All Comments (13)

Sign In or Sign Up now to post a comment!
  • thanks

  • I just fell in love with ARC. Made my day!

  • @RMH1565 Haha, yes it makes our lives that much easier.

  • @RMH1565 Does this change the way we use alloc? You said, that for example stringWithFormat would create an autoreleased NSString. What does this mean with ARC? Is it the old garbage collection or can I just use these instead of alloc?

  • @RMH1565 Nope, just use class method initializers or alloc init. Either way, ARC will understand how to release those objects later.

  • Hi AppleProgramming, yout tutorials are so helpful! Thanks! I have a question: Could you make a tutorial about coredata entities, how you can store an array in it? I try to have two tableviews where the first shows an an object and the second tableviewis depending on the first. Please could you help me?

  • @oathcomrade I just made 2 Core Data tutorials that you can probably figure out how to implement what you suggest from. They aren't too in depth but it may serve as a good starting block. What you suggest though may involve relationship which I haven't covered yet.

  • @AppleProgramming Will you cover "Core Data Entity Relationships" in the future? I would look forward to it!

  • @oathcomrade Yep, I'll definitely have en example in the future, it's on the list of to-do's ;)

  • I am almost sure the answer is Yes, since ARC is a compiler optimization, but had to ask.

    Will all compiled code be compatible with earlier versions of iOS?

    I've also seen you talking about GC.

    For OS X, there is the garbage collection, but on iOS there is not, so this is also a concern.

  • @ernanimartins ARC is compatible with iOS 4+ and Mac OS 10.6+, but you can only use weak reference in iOS 5 and Mac OS 10.7. So basically ARC is much better with newer environments, but if you need to have compatibility with older platforms, you would have to create ivars and properties using the qualifier unsafe_unretained, which is the same as the assign property we used to have.

  • @AppleProgramming Cool man! Many thanks for this info. If you aren't an apple employer already, you should be, if that is your focus, if not you could start a very nice startup with that knowledge in mind, based off on Mac and iPhone apps...:)

  • @ernanimartins Thanks, computer science is definitely my path right now. I love teaching this stuff too so we'll see where it leads me.

Loading...
Alert icon
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more