@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?
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.
@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...:)
thanks
findthebug 1 day ago
I just fell in love with ARC. Made my day!
RMH1565 2 weeks ago
@RMH1565 Haha, yes it makes our lives that much easier.
AppleProgramming 2 weeks ago
@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 2 weeks ago
@RMH1565 Nope, just use class method initializers or alloc init. Either way, ARC will understand how to release those objects later.
AppleProgramming 2 weeks ago
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 1 month ago
@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 1 month ago
@AppleProgramming Will you cover "Core Data Entity Relationships" in the future? I would look forward to it!
oathcomrade 1 month ago
@oathcomrade Yep, I'll definitely have en example in the future, it's on the list of to-do's ;)
AppleProgramming 1 month ago
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 1 month ago
@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 1 month ago
@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 1 month ago
@ernanimartins Thanks, computer science is definitely my path right now. I love teaching this stuff too so we'll see where it leads me.
AppleProgramming 1 month ago