Top "Nsobject" questions

NSObject is the root class of most Objective-C class hierarchies; it has no superclass.

How do I store an NSRange in a NSMutableArray or other container?

Here's what I want to do: NSRange r = NSMakeRange(0,5); id a = [NSMutableArray a]; [a addObject: r]; // but NSRange is not …

iphone cocoa cocoa-touch nsobject nsrange
How do copy for UILabel?

I have IBOutlet UILabel *label; and I want to do this UILabel *label = [titleLabel copy]; label.text = @"Clone"; titleLabel.text = @"…

iphone ios xcode uikit nsobject
Initialize instance variables as key/value pair from NSDictionary?

I have my NSObject subclass's public interface defined as, @interface MyObject : NSObject { NSString *_key1; NSString *_key2; NSString *_key3; } - (id)…

objective-c initialization nsdictionary nsobject kvc
NSObject to NSString Objective-C

Can someone help me to convert an NSObject to NSString? I'm trying to do something like this - NSString *address = […

objective-c nsstring nsobject
Cannot convert value of type '[String : String?]' to expected argument type '[NSObject : AnyObject]?'

When I use Parse 1.8.5 to upload data to Parse, this cloud code has compile error in "params" that I cannot …

swift parse-platform ios9 nsobject
Using a typedef enum in my object Class

I have a People class which holds various bits of into about a person. I would like to be able …

iphone objective-c ios nsobject
How to convert NSObject class object into JSON in Swift?

I have var contacts : [ContactsModel] = [] and class ContactsModel: NSObject { var contactEmail : String? var contactName : String? var contactNumber : String? var recordId : …

json swift nsobject nsjsonserialization
What is the NSObject isEqual: and hash default function?

I have a database model class that is a NSObject. I have a set of these objects in a NSMutableArray. …

objective-c nsarray nsobject
Swift 3: subclassing NSObject or not?

I have read some posts like this one about the difference between subclassing NSObject in Swift or just having its …

swift class inheritance subclass nsobject
Why subclass NSObject?

What is the purpose/use of NSObject in Objective-C? I see classes that extend NSObject like this: @interface Fraction : NSObject …

objective-c inheritance nsobject