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.
Questions tagged [cocoa-bindings]
975 questions
0
votes
1 answer
Update Selected Core Data Object from Table View
I have hit a bit of a brick wall and am looking for some help with a Cocoa OSX app i am trying to put together.
I have a single entity in core data, which is being populated from a Dictionary pulled from the net. The core data objects are then…

Gareth Jeanne
- 1,410
- 2
- 19
- 35
0
votes
1 answer
Collection Object operator for @firstObject Key-value coding KVC
I'm often required to retrieve the 1st object belonging to a Set. (Using that object as a representative of that set.)
I envision a Collection Object operator, akin to the
@unionOfObjects
BUT clearly
@firstObject
Is it possible to create such a…

Gabe Rainbow
- 3,658
- 4
- 32
- 42
0
votes
1 answer
the programmatic equivalent of binding an nsarraycontroller to a nsobjectcontroller, selection, content
i've split up my UI into various nib files.
now, i use two nswindowcontroller subclasses with nsarraycontroller and nsobjectcontroller IBOutlets. The nwwindowcontrollers are the File's Owner in their respective nibs.
the controllers are assigned in…

Gabe Rainbow
- 3,658
- 4
- 32
- 42
0
votes
2 answers
Carbon in Cocoa Crashing: EXC_BAD_ACCESS after NSAutoreleasePool is released
I'm developing a Cocoa user interface for a Photoshop CS3 plugin using Bindings. (Carbon in Cocoa, since PS is a Carbon app) I'm getting a EXC_BAD_ACCESS error when I close my modal NSWindow and the NSAutoreleasePool releases.
I believe it has…

Jess Bowers
- 2,846
- 1
- 22
- 42
0
votes
1 answer
nsobject controller linked across two nib (xib) files. declaring nib instantiation
Apple's resource programming guide (RPG) states "it is better to distribute components across multiple nib files."...
therefore,
i have an associate window nib (Nib 2) that has an nsobjectcontroller that needs to be linked (selection self) to a…

Gabe Rainbow
- 3,658
- 4
- 32
- 42
0
votes
1 answer
Modifications on objects in NSUserDefaults-bound NSArrayController not saving
In my project, I have an NSArrayController bound to save to a the application's standard defaults (NSUserDefaults). This in itself works perfectly - objects added are saved and restored as expected.
However, if I programmatically modify one of the…

John Wells
- 1,139
- 1
- 10
- 27
0
votes
1 answer
Updating Value in Core Data
I'm trying to write a simple stock check program, and I have a Table View binded to Core Data. The table has 3 columns: Model, Price and Quantity In Stock.
I have a NSTextField and a NSButton underneath this, so that the user can enter the quantity…

Michael
- 1,477
- 4
- 18
- 27
0
votes
2 answers
Fetch data by date range using Interface Builder
I have an NSTableView that is done using the typical IB and data bindings. It works well.
However I need to put in a Segmented Control to indicate date range. So for example, if user clicks on the "Last Year" segmented control button, the table…

Teo Choong Ping
- 12,512
- 18
- 64
- 91
0
votes
1 answer
Setting NotANumberSymbol to an empty string?
why NSNumberFormatter's method setNotANumberSymbol:(NSString *)string ignores the empty string as a parameter (@"")? It even ignores the string, if it contains only spaces and zeros (@" 0 0 0 ")?
Is there any way to bypass this functionality, and to…

marko
- 1,336
- 2
- 12
- 25
0
votes
1 answer
Cocoa : Refresh NSObjectController after unarchiving Data from disk
I have an Object bound to the user interface with a NSObjectController. I am able to archive the Object and unarchive it later. This works fine so far. In the Debugger I can see the object holds the data I saved in a previous session. The remaining…

TalkingCode
- 13,407
- 27
- 102
- 147
0
votes
1 answer
Bind NSTextField's editable to an NSProgressIndicator state
My form has an activity indicator and a couple text fields. I'd like to use bindings such that if the activity indicator is spinning/visible then the text field's editable flag is disabled. When it stops spinning and disappears then the text field…

Gargoyle
- 9,590
- 16
- 80
- 145
0
votes
0 answers
How to set a Core Data attribute in Entity2 via a relationship from Entity1 with Cocoa Bindings
I have two entities in my Core Data project: Entity1 and Entity2. I've setup an array controller for Entity1 which displays a table view and a few properties in text fields next to it. It's a simple app for data entry, nothing fancy - all built…

Jay Versluis
- 2,062
- 1
- 19
- 18
0
votes
1 answer
Can you pass a TreeController between views?
I have a standard Master-Detail Interface and I'm using Coredata and cocoa bindings.
The Master list uses a NSOutlineView and a NSTreeController, these items remain static but different details views are swapped in and out.
So, how do I set the…

Cory
- 2,302
- 20
- 33
0
votes
1 answer
Changing cocoa bindings value programmatically
I have an NSButton in my preferences to interact with adding the application to the LoginItems. If the adding of the login item fails, I want to uncheck the box so the user doesn't get a false sense that it was added to the login items. However,…

Bot
- 11,868
- 11
- 75
- 131
0
votes
1 answer
Get sum of values from core data attributes displayed in an outline view populated from a tree controller
I am attempting to learn more about creating apps for OS X and have run into an issue that google has not been able to provide an answer for. The example app I am creating is an RSS reader. I have Core Data Entities of Folder and Feed, with Feed…

OneTrueBob
- 3
- 2