Questions tagged [cocoa-bindings]

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.

975 questions
0
votes
1 answer

NSValueTransformer can I add more objects to the bound array?

I'm using a value transformer to transform the content array of a table content "bound" so I can edit the values before it pass to the views and it works - (id)transformedValue:(id)value { NSArray *oldArr = value; NSMutableArray *newArr =…
AMTourky
  • 1,190
  • 13
  • 25
0
votes
1 answer

Populating Master-Detail NSPopUp from Core Data

Here is my CoreData model. The relationship is unordered. I would like to have this model populate a pair of NSPopUp buttons like this: When the team popup is selected, the player popup should populate with the applicable players of the selected…
zzyzy
  • 973
  • 6
  • 21
0
votes
1 answer

cocoa mac nstextfield not editable with array controller object

I am working on learning cocoa on the Mac. I have a little app that has a text field, which is bound to an array controller (which is in turn bound to a core data managed object). The idea is hat when the window loads, the details from the core…
0
votes
1 answer

Binding an NSPopupButton to an NSArrayContraller with NSManagedObject subclasses

There seem to be dozens of questions about binding a NSPopupButton, so I feel a little better about struggling so much with this, but none of them seem to fix my issue. I have an NSManagedObject subclass that has a one to many relationship with…
0
votes
1 answer

lost library when recompiling Obj-C project

When I recompiled an old Obj-C project (a Cocoa app), the linker couldn't find some common library modules, including sin() and sysctl(). This project had been working in the previous version of Xcode. I am now using Xcode 3.1.2 in OSX 10.5. The…
gary
  • 574
  • 3
  • 12
0
votes
1 answer

Binding NSPopupButton index to multiple boolean values

In my OSX Cocoa application, I have a data object that has two BOOL properties, call them "OptionA" and "OptionB" I need to present the user with a UI to set the values of these two booleans but for various reasons (mainly clarity and aesthetics) I…
danielv
  • 3,039
  • 25
  • 40
0
votes
2 answers

How to configure Core Plot Data Labels with Bindings

I'm attempting to set up a pie chart using core plot and bindings. I can get the chart to display properly using CPTPieChartBindingPieSliceWidthValues [pieChart bind:CPTPieChartBindingPieSliceWidthValues toObject:[self sectorAllocation] …
Cory
  • 2,302
  • 20
  • 33
0
votes
3 answers

NSTableView doesn't populate with array objects until a new object is added via the controller

I have an NSTableView and an array controller set up as shown here, using cocoa bindings:…
Luke
  • 4,908
  • 1
  • 37
  • 59
0
votes
3 answers

delete files from database permanently ios

I am Making an Audio recorder(m4a extension files). I am Giving a particular URL for the output of the recorded File(in directory). I am able to play it, save the path of the file in database and can retrieve it later. EVery thing is going Fine.…
Jasmeet
  • 1,522
  • 2
  • 22
  • 41
0
votes
1 answer

How to setup a SIMPLE viewbased NSTableView using binding? SampleCode provided

I have literally tried everything.. and im sure my problem is probably something really stupid. I have look at Apple's Doc on how to set this up, but yet it doesn't seem to be working. Can someone please tell me what i did wrong? The App has one…
Just a coder
  • 15,480
  • 16
  • 85
  • 138
0
votes
1 answer

NSArrayController setContent blocking main thread

In nib file I am binding arrayController to tableView and programmatically updating its content each time when I get array of data as arrayController.content=someRecords; But it consuming more time to set content (0.23 second for 1000 records)…
Anil Varghese
  • 42,757
  • 9
  • 93
  • 110
0
votes
2 answers

Bindings set hidden, if string value is larger than

I have a ButtonCell, which i want to hide using bindings, when the NSString value at keyPath key1.key2 is larger than 3 character, but the binding offers me only NSIsNotNil, NSIsNil,... which doesnt apply in this case
Peter Lapisu
  • 19,915
  • 16
  • 123
  • 179
0
votes
1 answer

Programmatically load an NSComboBox with keys/values (or bindings?)

I have an sqlite3 database loaded an accessed and am trying to put the contents of the following table into an NSComboBox (and then auto-select the default key bases on other operating parameters). Here is the table contents: (table)…
EchoBinary
  • 125
  • 1
  • 2
  • 9
0
votes
1 answer

NSTextField with NSNumberFormatter - not allow nil value

I have a NSTextField with a NSNumberFormatter. I set the formatter with a min of 0 (because I couldn't set it to 0.01), and the style to decimal. The NSTextField has a binding on its value with a float ivar, and the action is set to "Send On Enter…
0
votes
2 answers

IKImageView zooming controlled by an NSSlider

What's the best practice for setting zoom factor of an image within IKImageView via NSSlider? I was able to bind a slider either to zoom in OR zoom out action of an IKImageView. Obviously, what I'd rather see is a single slider controlling both…