Questions tagged [nsobjectcontroller]

NSObjectController is a Cocoa bindings-compatible controller class. Properties of the content object of instances of this class can be bound to user interface elements to access and modify their values.

NSObjectController is a Cocoa bindings-compatible controller class. Properties of the content object of instances of this class can be bound to user interface elements to access and modify their values.

By default, the content of an NSObjectController instance is an NSMutableDictionary object. This allows a single NSObjectController instance to be used to manage many different properties referenced by key-value paths. The default content object class can be changed by calling setObjectClass:, which subclasses must override. Your application should use a custom data class that is key-value compliant whenever possible.

20 questions
0
votes
3 answers

trouble with inheritance in Objective C

I am very new to Objective C, and working on a project and I am struggling with the pass-by-reference, among other things which is likely obvious in my code. If someone could break it down for me in regard to my code I would appreciate it.…
0
votes
1 answer

Do I need two NSObjectControllers?

I'm learning about Cocoa bindings. I'm having two completely different objects, each with an iVar that I want to sync with a user interface item. But since they're two different objects and I can only have on "content" outlet with one…
0
votes
2 answers

error NSObjectController invalid reference to NSManagedObjectContext addObject

Question: I seem to have bindings set without design time or build errors, but at run-time an instance of a an NSManagedObject (an Account entity) isn't found. What is my configuration mistake? Configuration: This is a basic intro project. I've…
0
votes
2 answers

protocol and delegate not accessing method

I am trying to pass some data back to my UIView, its abit of a complicated situation I will try to explain it. I have my mainViewController // request is made to RequestClass requestClass // Request is sent off to DB for data, data is returned then…
HurkNburkS
  • 5,492
  • 19
  • 100
  • 183
0
votes
1 answer

Changing value of instance variable declared as property in model class, via app delegate class

I am doing following things in my sample application: I made a model class and declared an array as property in it. @interface MyModel : NSObject @property (strong, readwrite) NSArray *charactersToDisplay; @end In my app delegate class, I…
Devarshi
  • 16,440
  • 13
  • 72
  • 125
1
2