4

I found a good discussion here, but I have one more question:

I know Objective-C implement reference counter through NSObject. Is ARC still supported if NSObject is not a base class?

Forge
  • 6,538
  • 6
  • 44
  • 64
Bagusflyer
  • 12,675
  • 21
  • 96
  • 179
  • 2
    I don't understand why some nasty guys don't want to help at all. What they like is to find a chance to down vote somebody else's question. Please let me know what's wrong with my question? – Bagusflyer Jul 24 '14 at 01:27
  • 1
    While it's true that people downvoting should leave comments, there is lots of info on writing good questions: [ask] – jtbandes Jul 24 '14 at 01:34
  • 1
    You know what! Somebody feel they have power when down voting other's posts.That's so ridiculous. I know sometimes the questions are not so good. That's either because we're not very good in English or we're not expert at what we're asking. If we're experts, why should we ask? That's the purpose of this website, isn't it? – Bagusflyer Jul 24 '14 at 01:41
  • 1
    There are multiple ways in which a question can be good or bad. Many people on Stack Overflow don't have English as a first language — that's fine. But to be a "good question" usually involves clarity and background research. – jtbandes Jul 24 '14 at 01:55
  • Thank you for your reminding.I was trying to ask "good question" and I'll continue to do that. – Bagusflyer Jul 24 '14 at 02:10
  • possible duplicate of [Swift native base class or NSObject](http://stackoverflow.com/questions/24057525/swift-native-base-class-or-nsobject) – jtbandes Aug 12 '14 at 02:47

1 Answers1

5

No, the Swift language has its own mechanism for automated reference counting that is not reliant on any particular base class. Check out the documentation here.

shim
  • 9,289
  • 12
  • 69
  • 108
Patrick Goley
  • 5,397
  • 22
  • 42
  • Great to know that. Thanks. That basically means I don't need to inherit from NSObject anymore if I don't want to use NSObject's methods. – Bagusflyer Jul 24 '14 at 01:08