Cocoa bindings is Apple’s implementation of the Model-View-Controller design pattern for Mac OS X applications. It provides technologies that automate the synchronisation of domain data and the user interface elements that present them.

learn more… | top users | synonyms

25
votes
4answers
4k views

Can you manually implement Cocoa bindings?

I've had a crack at implementing bindings for my own NSView subclass. It works, but there are problems with retain cycles when binding to File's Owner from a nib file. After reading into it a little, ...
1
vote
2answers
128 views

Cocoa Binding Mutable Dictionary with Search Field

In my header file, I have a property declared @property (strong) NSMutableDictionary *myContents; In my implementation, I have assigned the contents of a plist (which are dictonaries) to the ...
2
votes
4answers
2k views

What does “Controller Key” mean in Interface Builder > Inspector > Bindings?

I can't find in the Docs where they explain all those fields and what they mean. Especially "Controller Key" is not clear to me.
9
votes
5answers
3k views

Cocoa Core Data newbie how-tos

I am one of the great unwashed masses of .NET developers keen to try their hands at Mac OS X development. At the moment I am trying to figure out the various elements of Cocoa and getting a bit stuck ...
23
votes
3answers
10k views

When should I remove observers? Error about deallocating objects before removing observers

I am trying to use key-value observing in one of my classes. I register the observers in the init method and remove/deregister them in the dealloc, but I get the following error which seems to occur ...
10
votes
7answers
1k views

Should I use Cocoa bindings for my latest project?

I'm starting a project which I think would benefit from bindings (I've got a source list table, several browser views, etc), but I think it would also be quite doable, and perhaps more understandable, ...
5
votes
3answers
1k views

Is it necessary to override bind:toObject:withKeyPath:options: in an NSView subclass to implement binding?

I have an NSView subclass which has property which I want to be bindable. I've implemented the following in the subclass: myView.h: @property (readwrite, retain) NSArray *representedObjects; ...
3
votes
2answers
5k views

How to get notified of changes to models via an NSArrayController?

I have an NSView subclass which is bound to the arrangedObjects of an NSArrayController. When the array has an item inserted or removed the view is notified. How do I get it to be notified if a model ...
0
votes
3answers
567 views

Table view not updating according to bindings

This is a very newbie question, and this is something I have done many times before, but there's something I'm missing this time. In my AppDelegate.h file I declare an NSArray and set it as a ...
2
votes
1answer
537 views

Use KVO for NSTextFields that are bound together

I'm having trouble getting KVO working with text fields that are bound together in a Cocoa app. I have gotten this to work when setting strings in NSTextFields with buttons but it is not working with ...
0
votes
0answers
355 views

Is it possible to bind to a property of an NSArrayController?

Basically in IB where there are the options "arrangedObjects", "selection" etc in the "Controller Key" drop down, is it possible to create my own entry in there to bind to? If possible this would ...
21
votes
2answers
4k views

What describes objective-C and Cocoa Bindings best?

I have trouble understanding Cocoa Bindings. Can someone explain me what this is all about, in an way that is humanly perceivable?
14
votes
1answer
3k views

Is there any technical/conceptual reason why iOS does not support Cocoa Bindings? [closed]

Cocoa for Mac OS X support Cocoa Binding technology, reducing need of glue code between your views and your models. Recreating Cocoa Bindings on top of KVC on KVO seems doable with the help from ...
4
votes
1answer
1k views

Implementing parent->child drill down in Cocoa with Core Data bindings that span multiple entities

I'm trying to create a simple interface to my core data model in the style of iTunes Genre browser. I have a model setup with three entities: Genre <-->> Artist <-->> Album. I'd ...
16
votes
5answers
7k views

“[something copyWithZone:]: unrecognized selector sent to instance” when using Bindings / Core Data

(self asking and self-answering because I spent hours on the web looking for this, and most of the resources all say "I solved it in the end" without giving an explanation) I had a very simple Core ...

1 2 3 4
15 30 50 per page